Open-source, self-hostable finance automation platform for vendor management, purchase orders, and bill two-way matching, built with Django and Next.js.
open-mercato/open-mercato
A TypeScript framework on Next.js and PostgreSQL that ships ready CRM, ERP and commerce modules and rules for AI coding agents to build business apps.
Open-source alternative to:Salesforce
NetSuite
- Stars
- 1,909
- Forks
- 490
- Open issues
- 1,636
- Last commit
- 7 hours ago
What is it?
Open Mercato is an open-source TypeScript framework built on Next.js and PostgreSQL. A new app starts as a working back office with modules for customers, catalog, sales, warehouse, customer portal, workflows and more. Multi-tenancy, feature-based role permissions, domain events and field-level encryption are part of the core.
The project is designed for AI coding agents such as Claude Code, Codex and Cursor. Each generated app includes an AGENTS.md file and skills that describe where modules, data models, UI and tests belong, and specs live in .ai/specs/ so the agent plans before it implements. The companion tool Cezar can run these skills unattended as parallel tasks, but it does not merge pull requests on its own.
The core is MIT licensed with no per-seat fee; enterprise modules in packages/enterprise are licensed separately. Apps are scaffolded with npx create-mercato-app and run on Node.js 24, Docker, PostgreSQL 17 and Redis.
Key features
- 01Ready business modules for customers, catalog, sales, warehouse and customer portal
- 02Multi-tenancy with organization trees and feature-based RBAC
- 03Spec-first workflow with AGENTS.md and skills for Claude Code, Codex and Cursor
- 04Auto-generated REST APIs with OpenAPI docs
- 05Custom entities and fields managed from the admin, with field-level encryption
Use cases
- Building a B2B ordering portal or quoting system on a ready commerce backend
- Starting a CRM or ERP back office for a small business without building the basics
- Using the framework as a headless backend with a custom frontend
- Letting AI coding agents add features to a team codebase under shared architecture rules
Quick start
- 1
Scaffold a new app
npx create-mercato-app my-app - 2
Start PostgreSQL, Redis and Meilisearch
docker compose up -d - 3
Install dependencies
yarn install - 4
Migrate, seed demo data and start the dev runtime
yarn setup
Things to know
- Needs Node.js 24, Yarn via corepack and Docker installed.
- On Windows it requires WSL2.
- Enterprise modules are licensed separately from the MIT core.
- Open Mercato Cloud is a Beta hosted trial.
In collections
Topics
FAQ
- What is open-mercato?
- A TypeScript framework on Next.js and PostgreSQL that ships ready CRM, ERP and commerce modules and rules for AI coding agents to build business apps. Open Mercato is an open-source TypeScript framework built on Next.js and PostgreSQL. A new app starts as a working back office with modules for customers, catalog, sales, warehouse, customer portal, workflows and more. Multi-tenancy, feature-based role permissions, domain events and field-level encryption are part of the core.
- Is open-mercato free to use? What license does it have?
- open-mercato is open source under the MIT license. Check the license terms before using it in commercial products.
- Is open-mercato still maintained?
- Actively maintained. The last commit to open-mercato was on Nov 7, 2026.
- What can I use open-mercato for?
- Building a B2B ordering portal or quoting system on a ready commerce backend Starting a CRM or ERP back office for a small business without building the basics Using the framework as a headless backend with a custom frontend Letting AI coding agents add features to a team codebase under shared architecture rules
- How do I install open-mercato?
- Scaffold a new app: npx create-mercato-app my-app Start PostgreSQL, Redis and Meilisearch: docker compose up -d Install dependencies: yarn install Migrate, seed demo data and start the dev runtime: yarn setup
- Where can I get open-mercato?
- The source code and installation instructions are on GitHub: https://github.com/open-mercato/open-mercato
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Odoo is a web-based suite of open source business apps covering CRM, accounting, inventory, sales, HR and more, usable alone or combined into an ERP.
Open-source ERP covering accounting, inventory, manufacturing, sales, purchasing, HR and projects, built on the Frappe Framework.
Open-source PHP web ERP and CRM for managing contacts, quotes, invoices, orders, stock, accounting and HR in one app.
Apache OFBiz is an open source Java framework and suite of business applications for ERP, CRM, e-commerce, supply chain and manufacturing planning.
An open-source CRM you can extend as code, with objects, views, workflows and AI agents, built on TypeScript, React and PostgreSQL.