原始内容
Baci - Agent-Native Commerce Infrastructure
"Your business, live in 3 minutes"
Baci helps African merchants create complete ecommerce storefronts in under 3 minutes and makes those storefronts ready for AI agents to discover, trust, purchase from, and monitor. It combines AI-assisted store creation with agent-readable trust contracts, safe checkout actions, and merchant-facing operational recovery.
📚 Documentation
Core Resources
- Project Blueprint: The master plan, product vision, and detailed requirements.
- Architecture Diagrams: Visual flows of the system.
- API Documentation: Auto-generated API reference for the codebase.
Developer Guides
- Testing Guide: How to run and write tests.
- Migration Guide: Database and AI migration steps.
- Domain Setup: Configuring custom domains.
Operations
- VPS Workers Runbook: Production background job schedules and manual cron fallbacks.
AI System
- AI Context: Deep dive into the AI flows.
- Google AI Setup: Configuring Gemini.
- Background Jobs: Worker architecture.
- Agent-Native Commerce Positioning: YC-facing platform thesis and roadmap focus.
Reports & Audits
🚀 Getting Started
Prerequisites
- Node.js 22+
- pnpm 10+ (
npm install -g pnpm) - Supabase CLI (for local backend)
Installation
# Install dependencies (uses pnpm workspaces)
pnpm install
# Setup environment variables
cp apps/web/.env.example apps/web/.env.local
# (Fill in your Supabase and Google AI keys)
Development
# Run the development server via Turborepo
pnpm turbo dev
# Or run just the web app
pnpm turbo dev --filter=@baci/web
Common Commands
pnpm turbo build # Build all apps
pnpm turbo lint # Lint all apps
pnpm turbo typecheck # Type check
pnpm turbo test # Run tests
pnpm format # Format code with Biome
📁 Monorepo Structure
Baci-app/
├── apps/
│ └── web/ # Main Next.js web platform (@baci/web)
├── packages/ # Shared packages (future)
├── docs/ # Documentation
├── pnpm-workspace.yaml # pnpm workspace config
├── turbo.json # Turborepo pipeline config
└── package.json # Root package.json
🛠️ Tech Stack
- Frontend: Next.js 16 (App Router), Tailwind CSS, shadcn/ui
- Backend: Supabase (Auth, Postgres, Storage)
- AI: Google Gemini 2.0/2.5 Flash + Imagen 3
- Language: TypeScript (strict mode)
- Package Manager: pnpm (workspaces)
- Build System: Turborepo