Dual-persona system architecture generator. Boardroom clarity meets engineering precision.
Specweaver is an AI-powered architecture generator with two radically different UX personas:
| Mode | Persona | Aesthetic | Output |
|---|---|---|---|
| Boardroom | CEO / Manager | Minimalist Apple-white | Summary cards, executive translations, high-level diagrams |
| Engine Room | Tech Lead / Architect | Cyber-grid dark | Full schemas, API specs, flowcharts, edge case analysis |
Technical terms in every output are highlighted with dotted underlines. Hover to see a plain-English explanation — bridging the gap between engineering and business.
npm installcp .env.local.example .env.local
# Edit .env.local and add your Anthropic API keyGet your key at console.anthropic.com
npm run devspecweaver/
├── app/
│ ├── page.tsx ← Main dual-persona UI (all components inline)
│ ├── layout.tsx ← Root layout + metadata
│ ├── globals.css ← Tailwind base + custom scrollbars
│ └── api/
│ └── weaver/
│ └── route.ts ← Next.js Route Handler → Anthropic Claude
├── package.json
├── tailwind.config.js
├── tsconfig.json
└── next.config.js
Boardroom:
"Act as an Executive Tech Consultant. Deliver strategic overview. No jargon. Use glossary to bridge gaps. Return JSON with summary cards, business benefits, and Mermaid diagram."
Engine Room:
"Act as a Principal Systems Architect. Deliver production-ready specs: flowchart LR diagram, SQL DDL with indexes, full REST API spec, security analysis, edge cases."
The AI always returns a strictly-typed JSON object parsed client-side and rendered into the appropriate UI components.
- Font: DM Sans + DM Serif Display
- Colors: White, slate-50, indigo accents
- Cards: Subtle gradients, soft shadows, hover lift
- Font: Fira Code (monospace throughout)
- Background:
#0a0a0awith blue-900 grid overlay - Accents: Electric blue
#3b82f6withdrop-shadowglow - Effects: Typewriter text, glowing Mermaid diagrams, pulsing status indicators
In Boardroom mode, the "Export as PDF" button is a placeholder. To implement:
npm install jspdf html2canvasThen call html2canvas on the output container and jsPDF.addImage().
Edit app/api/weaver/route.ts — replace the Anthropic client with your preferred provider (OpenAI, Gemini, etc.) while keeping the same system prompt logic.
MIT — build something extraordinary.