open-mercato/open-mercato

The AI-Engineering Foundation Framework for CRM/ERP and commerce: open-source TypeScript, with multi-tenancy, RBAC, events and domain modules already decided as conventions and specs, so Cursor, Claude Code and Codex build features instead of re-deciding architecture. Start with 80% done.

What it solves

Open Mercato is an AI-engineering foundation framework designed to bridge the gap between AI code assistants (like Cursor or Copilot) and professional, consistent software architecture. It prevents the fragmentation that occurs when multiple engineers use AI to generate code without a shared architectural blueprint, ensuring that new features remain consistent across large teams.

How it works

The framework provides an architecture-aware AI harness that gives agents autonomous skills to implement features, add data tables, and create design-system-coherent forms. It employs a spec-first development approach where design specifications are stored in the repository (.ai/specs/), making AI output reproducible. The system is built on a modular architecture using Next.js, TypeScript, and MikroORM, allowing developers to drop in ready-made business modules (like CRM or ERP) and extend them with custom entities and dynamic forms.

Who it’s for

It is built for CTOs and developers who want to build professional business applications and backends quickly without sacrificing architectural integrity or ownership of the code.

Highlights

  • Architecture-aware AI harness: Agents understand project structure and placement of code, not just syntax.
  • Spec-first development: Design specs ship with the repo to ensure consistency and reproducibility.
  • Ready-made business modules: Includes pre-built CRM, Sales, OMS, and ERP domain modules to accelerate development.
  • Multi-tenant by default: SaaS-ready tenancy with strict organization and tenant scoping.
  • Modular architecture: Features are isolated in modules with auto-discovery for APIs, pages, and entities.
  • Field-level encryption: Tenant-scoped encryption for PII and sensitive data.
  • Feature-based RBAC: Granular access control combining roles, user-level flags, and organization scoping.

Related

  • Project
  • Project
  • Project
  • Project
  • Project