AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 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