Framework
Search by the business capability before writing a new module. Inspect the catalog entry for the package name, license, release compatibility and install command. Then check whether the app already has the module enabled.
Open Mercato Modules lists the modules you can add to an app without forking the platform: official @open-mercato/* packages and community and third-party packages. Every entry is read from the published package. Its page shows what the module adds (pages, API routes, entities, events, environment variables), its license, the Open Mercato versions it was built for, and the result of a nightly install in a fresh app.
Before you build a feature, check whether it already exists. Modules that ship inside @open-mercato/core are listed under Built-in. Many of them are already on in a new app; the module's page says when you need module enable.
ksef, exchange rates, or when a deal is won.om-find-module skill, and the plain-text files agents can read.Each module page has an install box with the exact command for the version the catalog recommends, for example:
yarn mercato module add @fastwhitecat/[email protected] --allow-third-party
# Apply any new migrations introduced by the module
yarn db:migrate
@open-mercato/* need --allow-third-party. The flag is an explicit opt-in; the package must still pass the module-structure validation.npmMinimalAgeGate: 5d in .yarnrc.yml). The module page shows the date a fresh release becomes installable as Installable from. Until then the catalog keeps recommending the previous version.See the module add CLI reference for multi-module packages, version selection, and ejection.
src/modules/<id>/ and dist/modules/<id>/; tools and libraries are listed too), the license is shown (or shown as unknown), and there is no known malware or open critical advisory. Checked by machine.VERIFIED · 0.9): within the last 14 days the catalog installed the newest installable stable version in a fresh app of the latest Open Mercato line, with a green baseline, and the app generated, built, and started. The package must also fit the latest line statically and pass the supply chain, hygiene, and source checks. Granted and removed automatically. The module page shows the install result on each line separately. A release that is still waiting for Installable from does not remove the level from the previous version.Neither level is a code review of the module. The rules are on the quality page.
If you need full control over a module's source code, eject it into your app:
yarn mercato module add @open-mercato/<module-name> --eject
The source is copied to src/modules/<moduleId>/ and loaded locally. You can edit it freely; the framework treats it as an app-level module from that point on. See the eject CLI reference for details.
If the package is already in node_modules (for example added as a dependency by another package), register it without reinstalling:
yarn mercato module enable @open-mercato/<module-name>
See the module enable CLI reference for details.
create-mercato-module turns one module of your app into an npm package, optionally with its own GitHub repository. Follow Publishing Custom Modules.https://modules.openmercato.com/submit?npm=<your-package>). The page checks the package, its license, and the Installable from date, builds the catalog entry, and opens GitHub with the file filled in; commit it and open the pull request.After the pull request is merged, the module is read from its published source within minutes and installed in the next nightly run. To request an OM Quality review, follow the steps on the quality page.
Contributors who still work on the legacy official-modules repository from inside this monorepo can find the git-submodule workflow in Developing Official Modules.
Visit modules.openmercato.com for the full list, the compatibility matrix of modules and Open Mercato versions, and the Built-in modules.
From the app root, use yarn mercato module search warehouse to discover candidates and yarn mercato module info wms to inspect one. Check the reported version compatibility and whether it is already enabled before applying the suggested installation command.
Previous: Developing Official Modules · Next: Module overrides