Plugins (.orplug)
An .orplug is a ZIP archive that teaches OpenROM a new conversion route or
tool — Xbox XISO, Wii U WUA, NKit, Saturn SSP and similar. Plugins install
without rebuilding the core application.
What a plugin contains
Section titled “What a plugin contains”my-tool.orplug├── plugin.json # required manifest├── icon.png # shown in the Store and the Plugins tab├── README.md # rendered on the listing page├── LICENSE # your licence└── bin/ ├── windows/x86_64/my-tool.exe ├── linux/x86_64/my-tool └── macos/arm64/my-toolThe bin/<os>/<arch>/ layout drives the platform keys the manifest uses:
windows_x64, windows_arm64, linux_x64, linux_arm64, macos_x64,
macos_arm64.
Manifest (plugin.json)
Section titled “Manifest (plugin.json)”{ "schemaVersion": 2, "id": "my-tool", "name": "My Tool", "version": "1.0.0", "minCoreVersion": "4.1.0", "publisher": { "id": "your-publisher-id", "name": "Your Publisher Name" }, "category": "Utility", "description": "Converts MYFMT images to ISO.", "routes": [ { "from": "ISO", "to": "MYFMT" }, { "from": "MYFMT", "to": "ISO", "override": false } ], "execution": { "kind": "process", "timeoutSeconds": 0, "successExitCodes": [0], "environments": { "windows_x64": { "executable": "bin/windows/x86_64/my-tool.exe", "sha256": "…" }, "linux_x64": { "executable": "bin/linux/x86_64/my-tool", "sha256": "…" }, "macos_arm64": { "executable": "bin/macos/arm64/my-tool", "sha256": "…" } }, "args": [ { "kind": "executable" }, { "kind": "literal", "value": "convert" }, { "kind": "input" }, { "kind": "literal", "value": "--output" }, { "kind": "output" } ] }, "extensions": [ { "ext": ".myfmt", "format": "MYFMT", "platform": "Custom", "color": "#7a8a9a" } ]}Fields
Section titled “Fields”| Field | Notes |
|---|---|
schemaVersion |
2 for current builds. |
id |
Lowercase letters, digits, _ and - only. Used as the install folder name. |
version |
SemVer. |
minCoreVersion |
Oldest OpenROM that can run the plugin. |
publisher |
id and name; the Store fills in verification status. |
category |
One of Nintendo, Sega, PlayStation, Xbox, Utility, Patchers. |
routes |
Pairs of from/to format names the plugin adds. |
execution |
How to run the binary. Never a shell string. |
extensions |
File extensions the plugin claims, with a display colour. |
Argument tokens
Section titled “Argument tokens”Arguments are a structured array. Each entry resolves to a value at run time:
kind |
Resolves to |
|---|---|
executable |
Absolute path to the platform binary |
literal |
A fixed string from value |
input |
Absolute path of the input ROM |
output |
Absolute path of the output file |
outputDir |
Absolute path of the output directory |
cue |
The paired or generated CUE file, if any |
inputName |
Basename of the input |
outputName |
Basename of the output |
Nothing is passed through a shell, so quoting bugs and command injection are structurally impossible.
Build with orplug-builder
Section titled “Build with orplug-builder”The builder is built into openrom-core and mirrored in the GUI’s Plugin
Studio.
# 1. Scaffold a projectopenrom-core --plugin-init ./my-tool \ --name "My Tool" --id my-tool --category Utility
# 2. Drop your binaries into bin/<os>/<arch>/
# 3. Validate the manifest, paths and SHA-256 digestsopenrom-core --plugin-validate ./my-tool
# 4. Package (hashes binaries and writes the archive)openrom-core --plugin-pack ./my-tool --out ./my-tool-1.0.0.orplug--plugin-pack computes the SHA-256 of every binary, injects the digests into
the manifest, and validates before writing the archive. Packaging is
deterministic for identical inputs.
In the GUI, the Plugins → Create / Studio tab does the same thing: scaffold, edit the manifest, attach binaries per platform, validate, pack, and copy the marketplace entry. Projects are plain folders, so you can start in the GUI and finish on the CLI.
Security model
Section titled “Security model”.orplug archives are untrusted input. The installer and validator enforce:
| Control | Effect |
|---|---|
| No shell | Arguments are passed to Process.start as a pre-split array. |
| SHA-256 pinning | A binary whose digest does not match the manifest is refused. |
| Zip-Slip protection | Entries resolving outside the plugin folder are rejected. |
| No symlinks | Any symbolic-link entry aborts the install. |
| No null bytes in entry names. | |
| Path containment | Declared executables must stay inside the plugin root. |
| Core version gate | minCoreVersion prevents loading against an older engine. |
Install a plugin
Section titled “Install a plugin”openrom-core --install-plugin ./my-tool-1.0.0.orplugopenrom-core --list-pluginsopenrom-core --remove-plugin my-toolOr use a deep link, which opens the Store with a confirmation dialog and verifies the published SHA-256 before installing:
openrom://install/my-toolPublish
Section titled “Publish”See Marketplace for the publishing flow, including publisher accounts, review and download hosting.