open-mercato/open-mercato

AI-Engineering Foundation Framework built with AI and designed for AI. Hundreds of architectural and domain decisions (multi-tenancy, RBAC, event flow, pricing, sales pipeline,CRM/ERP processes) are already made conventions and specs so agents (Cursor, Claude Code, Codex) arch. decisions without reinventing. Ship production grade with AI Agents.

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 software architecture. While AI can write code, it often lacks the context of where that code should be placed or how to maintain consistency across large engineering teams. Open Mercato provides an architecture-aware harness that ensures AI-generated code follows a consistent project structure and design system.

How it works

The framework uses a modular architecture where features are isolated into modules containing their own APIs, frontend pages, and database entities. It employs a "spec-first" development approach, where design specifications are stored in the repository to make AI output reproducible. The system includes an AI harness with autonomous skills for tasks like adding data tables or implementing features with tests. It also provides ready-made business domain modules (CRM, ERP, Sales) to accelerate development, allowing teams to start with a significant portion of the application already built.

Who it’s for

It is built for CTOs and developers who need to build professional, multi-tenant business applications and backends without sacrificing architectural integrity or facing vendor lock-in.

Highlights

  • Architecture-aware AI harness: Agents understand project structure and can autonomously implement features and tests.
  • Spec-first development: Design specs are shipped with the repo to ensure consistency and reproducibility.
  • Modular architecture: Features can be dropped in as isolated modules with auto-discovery.
  • Multi-tenant by default: Built-in SaaS-ready tenancy with strict organization and tenant scoping.
  • Ready-made business modules: Includes pre-built components for CRM, ERP, and Commerce.
  • Field-level encryption: Tenant-scoped encryption for PII and sensitive data via ORM hooks.
  • Feature-based RBAC: Role- and user-level visibility controls combined with feature flags.