What is Open Mercato?
Open Mercato is built on an observation about AI-assisted teams: code assistants generate code fine, but someone still has to decide where it goes. The framework ships those decisions - module layout, multi-tenancy, RBAC, event flow, CRM/ERP/commerce domain models - as conventions and specs checked into the repo, so agents (and juniors) extend it without reinventing architecture.
Practically, you get business-app building blocks at "80% done": CRM entities, sales pipeline, order management, dynamic forms, organization trees, feature-flag RBAC - on a modern stack (Next.js, TypeScript, MikroORM) with Postgres+pgvector, a Valkey cache, and Meilisearch behind it.
This template mirrors the official full-app topology. Upstream publishes no images yet, so the app builds from the official repo on deploy - which is also why this one wears the experimental badge: pre-1.0, moving fast, and very much worth watching.
What you get
- CRM/ERP/commerce domain modules: customers, pipeline, orders, CPQ
- Multi-tenant with organization trees and feature-based RBAC
- Dynamic entities and forms managed live from the admin
- AI-agent-ready repo: specs and skills ship with the code
- Postgres + pgvector, Valkey cache, Meilisearch wired in
- MIT licensed - no per-seat pricing trap by design
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
app | Next.js app + admin at /backend (:5000) | yes |
db | Postgres + pgvector (extension required - not the managed Postgres) | no |
cache | Valkey, bounded LRU cache | no |
search | Meilisearch v1.11 | no |
Before you deploy
JWT_SECRET / MEILISEARCH_MASTER_KEY / TENANT_DATA_ENCRYPTION_KEYcore secrets (openssl one-liners in the template)
OM_INIT_SUPERADMIN_EMAIL / OM_INIT_SUPERADMIN_PASSWORDsuperadmin created on first init
APP_URLset to the app’s https domain after first deploy
Sizing and billing
The Next.js app wants real heap (2.5 GB allocated); first deploy builds the monorepo from source, so expect a long initial build. Pin a commit in compose.yaml for reproducible deploys.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 19.63 GiB of volumes cost $0.15 per GiB a month ($2.94/mo) for as long as they exist. One workspace can use both. See pricing
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Is Open Mercato a shop, a CRM, or a framework?
A foundation framework with domain modules: you assemble CRM, ERP, B2B-portal, or commerce-backend apps from ready pieces and extend them - ideally with AI agents, which the repo structure is explicitly designed for. If you want a turnkey storefront, PrestaShop in this catalogue is that; Open Mercato is what agencies build bespoke systems on.
Why does it build from source?
Upstream publishes no container images yet (pre-1.0). The template uses a git build context against the official repo with their own Dockerfile, so deploys track upstream. Pin a tag or commit in compose.yaml once you go to production.
Why not the managed Postgres?
Open Mercato uses pgvector for its hybrid indexing and AI features, and managed Postgres offerings do not ship the extension - so the template runs the pgvector image as a private container with its own volume.
Who is behind it?
Catch The Tornado - the team of Piotr and Tomasz Karwatka, previously of Divante and Vue Storefront. MIT-licensed, launched 2025, moving quickly; treat version pins seriously and read upstream release notes before redeploying.