Publish a mod
Publish a mod.
Publish a mod to npm with the omd-mod keyword and a valid mod.json to list it on the mods page after the next daily rebuild.
1Build the mod
The author CLI scaffolds a typed mod with a /hello command and offline tests:
omd-mod-author create ./my_mod my_mod
cd my_mod
pnpm testTests never call a real model. To try it live, pnpm watch STORE reloads the mod in codex on every save, using a practice store from omd-mod init. Full walkthrough.
2Add the keyword
This site uses the keyword to find community mods. OMD itself doesn’t need it.
Add omd-mod to keywords in package.json, and publish mod.json at the package root:
{
"name": "@you/my-mod",
"version": "0.1.0",
"keywords": ["omd-mod"],
"files": ["mod.json", "index.ts"]
}The site reads the mod’s ID, API version, permissions and settings from mod.json, and its description, license and author from npm. Set the same version in mod.json and package.json, remove "private": true from package.json, and set license and provenance in mod.json.
- Leave
dependenciesempty. The scaffold installs the mod SDK (@oh-my-diff/mod-api) from the OMD release’smod-api.tgz; keep it a peer or dev dependency. - npm install scripts never run. The tarball can be at most 4 MiB packed, 16 MiB unpacked.
3Publish
pnpm check && pnpm test && pnpm publish --access publicpnpm check type-checks; add TypeScript once with pnpm add -D typescript@5.9.3.
Your mod appears after the next daily rebuild. People install it with omd install npm:@you/my-mod, or pin a version with @0.1.0. Git works too.
Listing rules
- Mod IDs that start with
omd_and the@oh-my-diffnpm scope are reserved for first-party mods. - The site skips packages without a valid
mod.jsonat the package root. - Community mods are not reviewed. The site labels each one as community and lists the permissions it requests.
- A mod that is malicious, impersonates another, or breaks npm’s terms is removed after a report.
Want a mod to ship with OMD+? Suggest it in an issue.