MicroBuilder's architecture is designed for reliability, scalability, and deterministic app generation. This document explains the core systems and design decisions.
┌─────────────────────────────────────────────────────────────┐
│ User Interface │
│ (Next.js 15 App Router + React + Tailwind) │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────────────┴────────────────────────────────────┐
│ API Layer (Express) │
│ • Authentication • Build Management │
│ • Integration APIs • Webhook Handlers │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────────────┴────────────────────────────────────┐
│ AI Planning & Routing │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Planner │ │ Capability │ │ Validator │ │
│ │ (Claude, T=0)│ │ Matrix │ │ (Claude) │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────────────┴────────────────────────────────────┐
│ Deterministic Build Engine │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ Component Registry (Verified Modules) │ │
│ │ • Backend Components (T=0) │ │
│ │ • Frontend Components (T=0.5-0.8 for styling) │ │
│ │ • Integration Modules (Cryptographically Signed) │ │
│ └──────────────────────────────────────────────────────┘ │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────────────┴────────────────────────────────────┐
│ Assembly & Generation │
│ • Database Schema • API Endpoints │
│ • Auth Flows • UI Components │
│ • Integration Wiring • Testing │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────────────┴────────────────────────────────────┐
│ Infrastructure Layer │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │PostgreSQL│ │ Supabase│ │ Vercel │ │ CDN │ │
│ │(Supabase)│ │ Storage │ │ Edge │ │ │ │
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
└─────────────────────────────────────────────────────────────┘
Purpose: Analyze user requirements and create build specifications
Models Used:
Process:
Output: Structured JSON specification for deterministic assembly
Purpose: Smart routing and integration selection
How It Works:
interface CapabilityMatrix {
integrations: Map<Integration, Capability[]>;
requirements: Requirement[];
select(): {
primary: Integration[],
fallback: Integration[],
unsupported: Requirement[]
}
}
Features:
Example:
User wants: "Send emails with attachments"
Matrix evaluates:
- Resend: ✅ Email, ❌ Attachments
- Twilio SendGrid: ✅ Email, ✅ Attachments
- SMTP: ✅ Email, ✅ Attachments
Selection: Twilio SendGrid (full support)
Fallback: SMTP (if SendGrid fails)
Purpose: Pre-built, verified components for deterministic assembly
Structure:
components/
├── auth/
│ ├── supabase-oauth.ts (Google + GitHub)
│ ├── session-management.ts
│ └── protected-routes.ts
├── database/
│ ├── user-schema.ts
│ ├── migrations/
│ └── queries/
├── integrations/
│ ├── stripe-checkout.ts
│ ├── openai-chat.ts
│ └── twilio-sms.ts
└── ui/
├── dashboard.tsx
├── forms.tsx
└── tables.tsx
Verification:
Purpose: Generate consistent, production-ready code
Temperature Settings:
Why Deterministic?
Purpose: Handle partial feature support gracefully
Modes:
Example:
User wants: Analytics dashboard with charts
Full Mode:
- Use Chart.js for visualization
- Real-time data updates
- Export to PDF
Partial Mode:
- Use simple tables instead of charts
- Manual data refresh
- Export to CSV (not PDF)
Degraded Mode:
- Display data in lists
- No exports
- Clear "upgrade to Pro" messaging
1. User Input
"Build a task management app with Slack notifications"
2. AI Planning
→ Parse requirements
→ Identify: Database, Auth, Slack integration
→ Plan architecture
3. Capability Matrix
→ Check Slack integration available
→ Verify database setup possible
→ Confirm auth providers configured
4. Component Selection
→ Select: PostgreSQL schema templates
→ Select: Supabase auth components
→ Select: Slack notification module
5. Deterministic Assembly
→ Generate database schema (T=0)
→ Create API endpoints (T=0)
→ Build UI components (T=0.6 for styling)
→ Wire Slack integration
6. Testing & Validation
→ Run integration tests
→ Verify database migrations
→ Check API connectivity
7. Deployment
→ Build optimized bundle
→ Deploy to Vercel Edge
→ Configure CDN
→ Enable monitoring
1. User Request
"Change the dashboard theme to purple"
2. Contextual Analysis
→ Load current app state
→ Identify affected components
→ Check theme system
3. Incremental Update
→ Update Tailwind config
→ Modify component styles
→ Preserve functionality
4. Hot Reload
→ Apply changes instantly
→ No full rebuild needed
→ Maintain user session
Layer 1: Network Security
Layer 2: Application Security
Layer 3: Authentication
Layer 4: Authorization
Layer 5: Data Security
Layer 6: Code Security
Stateless Architecture:
Auto-Scaling:
Strategies:
Targets:
Questions? Contact Support