Credentials. The API key you enter is kept only in server memory, but uploaded files, read file snippets, and the architecture structure are sent to the model service you configure, so do not upload confidential material to a service you have not approved.
Who it is forA tech lead or architect who has a requirements document, spreadsheet, or PDF and needs a first architecture diagram to discuss with the team.
The problemDrawing the first architecture diagram from a long spec by hand is slow, and each change request means redrawing parts of it.
The outcomeAn editable architecture diagram generated from your uploaded materials, with later changes proposed, confirmed, and kept in the same canvas, exported as SVG or PNG.
What you need first
- Python 3.10+, Node.js 22.12+, and npm installed on your machine
- A model service with a Chat Completions compatible API that supports tool calling, plus its API key, for chat, generation, and document understanding
- A vision-capable model if you want to send images to the assistant
Steps
- Run
git clone https://github.com/weike-zhang/architecture-canvas.gitand thencd architecture-canvas. - Run
python3 start.pyand open http://127.0.0.1:5093 in your browser. - Click 模型设置 in the lower left corner and enter a tool-calling model URL, model name, and API key.
- Upload your requirements file (TXT, Markdown, DOCX, XLSX, PPTX, or PDF) and ask the assistant to draft the architecture.
- Review the proposed changes, click 应用修改 to apply them, drag or edit nodes on the canvas, then export SVG or PNG.
Prompt for your agent
Using the architecture-canvas repo at https://github.com/weike-zhang/architecture-canvas, start the local workspace with python3 start.py, upload the document at <path-to-requirements-doc>, and ask the assistant to generate a layered architecture diagram. Expected output: an exported SVG or PNG of the diagram. Verify that the component count is 22 or fewer and that the component list matches the document.
Caveat. Generation is limited to layered architecture, business module, and simple deployment overviews, usually 22 components or fewer, and the README says model output needs manual review.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for weike-zhang/architecture-canvas and "Turn a requirements document into an editable architecture diagram"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer