Start with an agent · Try in your browser · Use the CLI · Explore examples · 简体中文
ClickHouse analytics · Rendered by iso-topology · Complete source
iso-topology turns D2, YAML, or JSON into isometric SVG diagrams. Describe a system with your agent, refine it in local Studio, and commit the source alongside your code. A Go CLI, library, and seven MCP tools share the same rendering engine.
- A source you own. Text files, local SVG rendering, and reviewable changes in Git.
- An agent that can inspect its work. Discoverable capabilities, structured diagnostics, source repair, and visual previews.
- Room to refine. Automatic layout for a first draft; groups, themes, routing, and visual editing when details matter.
Start with your agent
Use an MCP-capable client and either the prebuilt CLI/MCP binaries (no Go required), or build the current documented version with Go 1.25+:
go install github.com/MarkovWangRR/iso-topology/cmd/isotopo@main
go install github.com/MarkovWangRR/iso-topology/cmd/isotopo-mcp@main
For Claude Code:
claude mcp add isotopo -- isotopo-mcp
Then give your agent a concrete first task:
Draw User → API Gateway → Database in a light theme using YAML. Read iso_capabilities, validate the source, and inspect the result. Save the source as diagrams/architecture/input.yaml and render into diagrams/architecture. Return the SVG and source paths, along with any unresolved issues.
Continue with “Add a cache beside the gateway.” The agent edits the same source, checks the result, and renders again. YAML supports automatic repair; after a repair, the agent continues with the returned source.
Client setup and first diagram · Seven-tool workflow · Measured workflow evidence · Documentation index for agents
Or start with five lines
Save as scene.d2:
user: User { shape: person }
api: API Gateway
db: Database { shape: cylinder }
user -> api: HTTPS
api -> db: query
With the CLI installed above:
isotopo render scene.d2 ./out
isotopo serve scene.d2
Open out/topology.svg for the result, or the local URL printed by serve to
edit the source and preview changes. D2 is a concise starting point; choose YAML
for the full visual-editing and repair workflow.
The README and docs follow main; @latest selects the newest tag and may lag.
Pin a tested revision for repeatable builds. The Go module retains
github.com/MarkovWangRR/iso-topology. Installation and PATH help.
The last mile, in Studio
isotopo serve diagrams/architecture/input.yaml

Move nodes, edit labels and styles, adjust connections, and compare isometric and top-down views. The source remains the document you take back to your agent.
Comments
Sign in to join the conversation.
No comments yet. Start the conversation.