AI-Powered Architecture, PRD & Vibe Coding Suite
Arch Advisor is a full-stack AI toolkit built with Next.js 16, OpenRouter AI, and Tailwind CSS. Designed for vibe coders, founders, and solutions architects to go from a raw app concept all the way to a production-grade AWS cloud architecture — in minutes.
Paste any PRD document and generate a non-linear, branching Mermaid flowchart with clickable nodes. Each node opens a modal containing an ultra-detailed AI prompt tailored for Cursor, Claude, Windsurf, or any AI coding assistant — ready to copy and paste.
A 4-step guided wizard (App Concept → MVP Features → Tech Stack → SaaS & Services) that produces a GitHub-ready PRD markdown document. The output can be directly piped into the Vibe Roadmap generator.
A 6-step wizard that analyzes workload type, traffic patterns, data requirements, SLA targets, security sensitivity, and budget constraints to generate:
- AWS architecture diagrams rendered via Mermaid.js
- AWS Well-Architected Framework (WAF) scores across 6 pillars with radar charts and security checklists
- Estimated monthly costs broken down per AWS service
| Layer | Technology |
|---|---|
| Framework | Next.js 16.3.5 — App Router, Route Handlers |
| Language | TypeScript 5 |
| AI Engine | OpenRouter (openrouter/free) via @openrouter/ai-sdk-provider + ai |
| Styling | Tailwind CSS v4, Framer Motion, Lucide React |
| Diagrams & Charts | Mermaid.js, Recharts |
| Validation | Zod v3, React Hook Form + @hookform/resolvers |
| Runtime | React 19.2, React DOM 19.2 |
- Node.js
v18.xor higher - npm / yarn / pnpm / bun
- An OpenRouter API Key
git clone https://github.com/AZWALUWU/arch-advisor.git
cd arch-advisornpm installCopy the sample environment file and fill in your credentials:
cp .env.example .envEdit .env:
# OpenRouter AI
OPENROUTER_API_KEY=your-openrouter-api-key
OPENROUTER_MODEL=openrouter/freenpm run devOpen http://localhost:3000.
src/
├── app/ # Next.js App Router
│ ├── page.tsx # Landing page
│ ├── layout.tsx # Root layout with fonts & metadata
│ ├── globals.css # Global Tailwind CSS styles
│ ├── icon.svg # SVG favicon
│ ├── roadmap/ # Interactive Vibe Roadmap page
│ ├── prd/ # MVP PRD Generator page
│ ├── assess/ # Architecture Assessment wizard page
│ └── api/
│ ├── assess/ # Architecture analysis endpoint
│ ├── prd/generate/ # PRD generation endpoint
│ └── roadmap/generate/ # Roadmap flowchart generation endpoint
├── components/
│ ├── ui/ # Header, MermaidDiagram renderer
│ ├── landing/ # Hero, StatsBar, FeatureShowcase, CtaBanner
│ ├── wizard/ # Steps 1-6 for architecture assessment
│ ├── prd/ # 4-step PRD builder + result view
│ ├── roadmap/ # Interactive flowchart, node modal, roadmap view
│ └── result/ # WAF radar chart, cost chart, architecture detail
├── lib/
│ ├── engine/
│ │ ├── openrouter.ts # OpenRouter provider instance & model config
│ │ ├── architect.ts # OpenRouter AI — architecture analysis
│ │ ├── prd-generator.ts # OpenRouter AI — PRD generation
│ │ ├── roadmap-generator.ts # OpenRouter AI — branching roadmap flowchart
│ │ ├── cost-estimator.ts # AWS cost estimation engine
│ │ └── waf-scorer.ts # WAF pillar scoring engine
│ └── validations/ # Zod schemas for all three flows
└── types/
└── database.ts # TypeScript types for AI output & API payloads
For a comprehensive per-file breakdown, see srcExplain.md.
flowchart LR
A["PRD Text Input"] --> B["POST /api/roadmap/generate"]
B --> C["OpenRouter AI — Branching Flowchart + Node Prompts"]
C --> D["Interactive Mermaid Graph"]
D --> E["Click Node — PromptNodeModal"]
E --> F["Copy AI Prompt to Cursor / Claude / Windsurf"]
flowchart LR
A["4-Step Wizard"] --> B["Zod Validation"]
B --> C["POST /api/prd/generate"]
C --> D["OpenRouter AI — Structured PRD JSON"]
D --> E["PRD Result View + Export Markdown"]
E -->|Optional| F["Open in Vibe Roadmap"]
flowchart LR
A["6-Step Wizard"] --> B["Zod Validation"]
B --> C["POST /api/assess"]
C --> D["OpenRouter AI + Cost Estimator + WAF Scorer"]
D --> E["Results Returned to Client"]
E --> F["Inline Result Display"]
We welcome contributions! Please read our Contributing Guide for details on:
- Fork & clone setup
- Branching strategy (
feature→develop→main) - Development workflow
- Code style & conventions
- Commit message format
- Pull request guidelines