Skip to main content

Fyso - Agent-Native ERP

Project Vision

An ERP system designed from the ground up to be consumed by AI agents (Agent-Native). It combines:

  • Metadata-Driven Architecture: Entities and fields defined as metadata, not hardcoded
  • Multi-Tenant: Complete isolation per tenant (schema-per-tenant)
  • Auto-Generated MCP Server: Agent tools generated automatically from metadata
  • AI UI Engine: UI component generation through AI
  • Feature/Plugin System: Extensibility through installable features

Original Documentation

The original design documents can be found in /docs/original/:

FileDescription
01-simulacion-ejecucion.mdFull simulation of how the system would work with "Cafe Cosmos"
02-blueprint-arquitectonico.md3-layer architecture, DDD, EIP patterns, multi-tenancy
03-ui-engine-arquitectura.mdAI-powered UI generation system (Intent-to-Code)
04-simulacion-facturador.mdComplete example of invoice system generation
05-paper-academico.mdResearch paper on AI UI Engine
DEPLOYMENT.mdDeployment guide for MVPs

Development Plan

Development is divided into incremental phases:

PhaseNameGoal
MVPCore FoundationMinimum functional system with metadata-driven CRUD
Phase 1Multi-Tenancy & AuthTenant isolation and authentication
Phase 2MCP ServerAI agent integration
Phase 3Feature SystemPlugin/extension system
Phase 4AI UI EngineAI-powered UI generation

See details in /docs/phases/

Proposed Technology Stack

Backend

  • Runtime: Node.js / Bun
  • Framework: Hono / Express
  • Database: PostgreSQL (Supabase)
  • ORM: Drizzle / Prisma
  • Validation: Zod

Frontend

  • Framework: React 19 / Next.js 15
  • Styling: Tailwind CSS
  • Components: shadcn/ui
  • State: TanStack Query

Infrastructure

  • Hosting: Vercel / Railway
  • Database: Supabase
  • Auth: Supabase Auth / Clerk
  • Realtime: Supabase Realtime

Architectural Principles

1. AGENT-FIRST PRINCIPLE
"Every system decision optimizes for AI consumption"

2. METADATA-DRIVEN PRINCIPLE
"UI and behavior emerge from schema, never hardcoded"

3. EVENT-DRIVEN PRINCIPLE
"Loose coupling through async messaging"

4. TENANT ISOLATION PRINCIPLE
"Complete isolation at every layer"

Project Structure (Proposed)

fyso/
├── docs/ # Documentation
│ ├── original/ # Original design docs
│ ├── phases/ # Phase-by-phase plan
│ └── architecture/ # Architectural decisions
├── packages/
│ ├── core/ # Metadata engine
│ ├── api/ # REST/GraphQL API
│ ├── mcp-server/ # MCP Server
│ ├── web/ # Web frontend
│ └── shared/ # Shared types
├── features/ # Features/Plugins
└── migrations/ # Database migrations
Creado con Fyso