AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
ArchDraw puts every Claude Code session on a live map of your codebase. One command, no account.
Translation pending
Developer toolsTypeScript · JavaScriptGitHub @hiabheeAvailability needs another checkOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗AI-assisted system architecture diagramming tool. Describe a system in plain English and get a professional React Flow diagram with auto-layout, subgraph grouping, and export.
layoutDiagramViaMermaidpipeline-shared/layout); LR / TB toggle in toolbarALLOWED_EMBED_DOMAINS)Next.js 16 / React 19 / TypeScript · React Flow v11 · Zustand v5 · Dagre (layout for the app and MCP server) · Groq · Prisma + Supabase · Upstash Redis · Tailwind CSS v4 · Framer Motion · Radix UI / shadcn/ui · Mermaid.js v11 · better-auth
cd frontend
npm install
cd ../mcp-server && npm install && cd ../frontend
cp .env.example .env.local
# Edit frontend/.env.local with your actual values
GROQ_API_KEY=your_groq_api_key
DATABASE_URL=postgresql://...
UPSTASH_REDIS_REST_URL=your_redis_url
UPSTASH_REDIS_REST_TOKEN=your_redis_token
BETTER_AUTH_SECRET=your_secret
BETTER_AUTH_URL=http://localhost:3000
# Admin Configuration (Optional)
ADMIN_PASSCODE=your_admin_passcode
ADMIN_SESSION_SECRET=your_admin_session_secret
[email protected]
# Public Configuration
[email protected]
[email protected]
# Embed Security (Optional)
ALLOWED_EMBED_DOMAINS=example.com,another.com
Only GROQ_API_KEY is required for AI generation. The app runs locally without Redis (rate limiting degrades gracefully).
See frontend/.env.example for a complete list of available environment variables.
For security configuration and best practices, see SECURITY.md.
All commands should be run from the frontend/ directory.
# Start Next.js dev server
npm run dev
# MCP server (in a separate terminal)
npm run dev:mcp
# Tests
npm test
# Lint & type check
npm run lint
npx tsc --noEmit
# Production build
npm run build
npm run start
ArchDraw/
├── frontend/ # Next.js app — the product (see frontend/lib/README.md, frontend/components/README.md)
│ ├── app/ # Routes and API route handlers (App Router)
│ ├── components/ # UI by area: canvas/, editor/, viewers/, landing/, dashboard/, tutorial/, ui/ …
│ ├── lib/ # Logic by domain: diagram/, ai/, repo-diagram/, server/, client/, theme/, icons/ …
│ ├── store/ # Zustand stores (diagram store is split into store/diagram/slices)
│ ├── hooks/ # Shared React hooks
│ ├── data/ # Templates, tutorials, component catalog (JSON/TS data)
│ ├── prisma/ # Database schema + migrations
│ └── scripts/ # Eval, perf, and maintenance scripts
├── mcp-server/ # MCP server published as @hiabhee/archdraw-mcp-server
├── plugins/archdraw/ # Claude Code + Codex plugin (skill + MCP config)
├── docs/ # Architecture notes, guides, plans (start at docs/README.md)
├── .claude-plugin/ # Claude Code marketplace manifest ┐ fixed locations the
└── .agents/plugins/ # Codex marketplace manifest ┘ agents look for
New here? Read CONTRIBUTING.md first.
6-stage pipeline in lib/ai/pipeline/mermaid-pipeline/createAiMermaidStages.ts: Concept Detection → Architecture Planning (LLM or canned conceptTemplates.ts for ≤12-word prompts) → Layout Override → Mermaid Materialize (parse → build → Dagre layout → size) → Score → Validate. Canonical relayout is layoutDiagramViaMermaid in lib/diagram/mermaid/relayout.ts (React Flow → Mermaid → Dagre → React Flow).
Repo pipeline in lib/repo-diagram/pipeline-v2.ts: Ingest → Cache Check → Analysis → Baseline → Classify → Extract → Relationships → Verify → Finalization → Cache Write.
Standalone server at mcp-server/ (self-contained node_modules), published to npm as @hiabhee/archdraw-mcp-server. Dev: npm run dev:mcp from frontend/. Tools: generate_diagram (Mermaid-first), update_diagram, validate_diagram, fix_layout, apply_template, list_templates, list_node_types, get_diagram_state, export_diagram, save_checkpoint, load_checkpoint, read_me. Layout runs through the web app's Mermaid → Dagre pipeline; diagrams come back with a preview link by default. Install it as a plugin from plugins/archdraw/.
MIT