Open MercatoDocsSearch docsAPI reference

Framework

Modules catalog

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.

Find a module

Install a module

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

See the module add CLI reference for multi-module packages, version selection, and ejection.

What Listed and Verified mean

Neither level is a code review of the module. The rules are on the quality page.

Eject a module

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.

Enable an already-installed module

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.

Publish and list your module

  1. Publish it. create-mercato-module turns one module of your app into an npm package, optionally with its own GitHub repository. Follow Publishing Custom Modules.
  2. List it. Open modules.openmercato.com/submit and paste the npm package name (or open 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.

Browse available modules

Visit modules.openmercato.com for the full list, the compatibility matrix of modules and Open Mercato versions, and the Built-in modules.

Compare a package with the app you have

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