Ecosystem Overview
The AICR ecosystem spans 20+ projects in ~/dev, with 12 connected to Vercel for deployment. This document provides the master inventory and architecture overview.
Architecture Tiers
┌─────────────────────────────────────────────────────────────────────┐
│ SUMMIT TIER │
│ (Ports 3050-3059, Premium) │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │ Full platform capabilities, advanced governance, enterprise │ │
│ └────────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│ EDGE TIER │
│ (Ports 3030-3049, Standard) │
│ ┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐ │
│ │ SGM │ │ SDA │ │ SCM │ │ NP-Edge │ │
│ │ :3030 │ │ :3041 │ │ :3042 │ │ :3040 │ │
│ └───────────┘ └───────────┘ └───────────┘ └───────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│ STUDIO TIER │
│ (Ports 3000-3029, Development) │
│ ┌───────────┐ ┌───────────┐ ┌───────────┐ │
│ │ AICR │ │ Docs │ │ Playground│ │
│ │ :3000 │ │ :3001 │ │ :3002 │ │
│ └───────────┘ └───────────┘ └───────────┘ │
└─────────────────────────────────────────────────────────────────────┘Project Categories
Core Platform (aicr monorepo)
| Project | Port | Purpose | Status |
|---|---|---|---|
apps/aicr | 3000 | Main platform UI | Active |
apps/docs | 3001 | Documentation site | Active |
apps/playground | 3002 | API testing UI | Active |
services/agent-conductor | 3010 | AI agent orchestration | V1.1 Complete |
services/sda-api | 3041 | Document analysis API | Active |
SPARCC Ecosystem
| Project | Port | Purpose | Deployment |
|---|---|---|---|
| SGM (Sales Governance Manager) | 3030 | Policy management | Vercel |
| SDA (Sales Document Analyzer) | 3041 | Document analysis | Vercel |
| SCM (Sales Comp Manager) | 3042 | Compensation plans | Vercel |
Independent Applications
| Project | Location | Purpose | Deployment |
|---|---|---|---|
| IntelligentSPM | ~/dev/intelligentspm | SPM knowledge platform | intelligentspm.com (opens in a new tab) |
| sda-sparcc-demo | ~/dev/sda-sparcc-demo | Demo environment | Vercel |
Shared Infrastructure
Database (Neon PostgreSQL)
All environments use Neon PostgreSQL branches:
- Production:
mainbranch - Preview: Auto-created per PR
- Development:
devbranch
Features enabled:
- pgvector for embeddings
- Row-level security
- Branch-based isolation
AI Providers
| Provider | Purpose | Configuration |
|---|---|---|
| OpenAI | GPT-4o, embeddings | Via ai-router |
| Anthropic | Claude models | Via ai-router |
| Ollama | Local inference | localhost:11434 |
| Vercel AI Gateway | Production routing | ai.vercel.com |
Deployment Pipeline
Local Dev → Git Push → Vercel Preview → Production
│ │
└── Neon branch ──────┘Key Packages
@aicr/ai-router
Central AI routing with:
- Provider abstraction
- Budget management
- Response caching
- Rate limiting
@aicr/contracts
Shared TypeScript types:
- Context envelopes
- Event schemas
- Decision tokens
@aicr/orbs
Reusable AI UI components:
- AskOrb (chat interface)
- KBOrb (knowledge search)
@aicr/sda-core
Document analysis engine:
- PDF/DOCX parsing
- Gap analysis
- Coverage scoring
Environment Variable Strategy
Variables are stored in Vercel and propagated:
Vercel Project Settings
│
├── Production Environment
├── Preview Environment
└── Development EnvironmentCritical variables:
OPENAI_API_KEY- AI providerDATABASE_URL- Neon connectionNEXTAUTH_SECRET- Auth encryptionAICR_API_KEY- Gateway access