Skip to content

[Feat] Disclosure for Native Libraries #7631

Description

@MCJEModder2026

Please confirm the following.

What parts of Modrinth is your feature request related too?

Modrinth App, Modrinth.com website, Modrinth API for developers

Is your suggested feature related to a problem? Please describe.

Problems:

  • JNI natives and other native libraries in projects may not support all platforms and architectures (or in the case of linux, even the right arch may still have issues)
  • In the case of client side anti tamper systems, I would prefer to be informed that I am running a potentially obfuscated native executable. (yes, someone did that)

Due to the lack of a disclosure, I am forced to manually audit mods I wish to use for native libraries and verify their compatibility, quality, and safety.

Describe the solution you'd like

A disclosure (preferably per uploaded artifact) of contained JNI natives/native libraries and their architectures, and if they are required for the function of the project or, are manditory or optional to enhance performance or facilitate specific features.

Potential Approaches:

  • Manual Disclosure:
    Common platforms1 should be easily selectable, and uncommon platforms1 can be specified as well.
  • Automatic Detection:
    Automatic jar scanning on modrinth servers for JNI natives/native libraries (maybe integrate into antivirus?)

A check could also be added to the modrinth app that compares the supported platforms of an artifact to the current platform for mod filtering, or warning the user that a mod contains incompatible natives.

Footnotes
1.
  • Some common platform combinations:
    • Windows
      • x86_64
      • arm64
    • MacOS
      • arm64
      • x86_64
    • Linux
      • x86_64
      • arm64
  • Some less common platform combinations include (but not limited to):
    • Windows
      • x86 (32 bit)
    • Linux
      • x86 (32 bit)
      • armv7 (32 bit)
    • iOS/iPadOS (pojav launcher)
      Some MacOS arm64 natives may work on iOS arm64, but not all of them
      • arm64

Describe alternatives you've considered

Continuing to manually audit mods I wish to use to verify the quality, safety, and compatibility of their native libraries.

Additional context

This is my first issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions