Repository avatar
AI Tools
v0.16.0
active

iso-topology

io.github.NexusFox88/iso-topology

Local architecture diagrams with editable YAML, SVG export, validation and repair.

Documentation

iso-topology

Architecture you can see.
Source you can keep.

Isometric architecture diagrams as code.
Built for AI agents. Refined by you.

Start with an agent · Try in your browser · Use the CLI · Explore examples · 简体中文

ClickHouse analytics architecture, rendered from editable YAML

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

Studio with a diagram, editable source, and local save status

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.

Local edits auto-save. Studio saves parseable, nonempty changes to the bound file. Keep a Git checkpoint before experimenting, and render again to refresh an existing export. Ask your agent to reread the saved file before its next edit.

Studio guide · Source and save behavior

One engine, different visual languages

DuckDB architecture with paper textures and hand-drawn stylingLakehouse and AI agent architecture with layered groups
DuckDB · Paper & ink
Explore the source →
Lakehouse · Layers & systems
Explore the source →

Compose with shapes, groups, relative placement, and automatic layouts. Style with themes, semantic roles, icons, per-face fills, and explicit connector routes. Switch to a top-down projection when a dense diagram needs a clearer view.

Browse the gallery · Choose a format · Features and limits

SVG rendering runs locally without a browser. PNG snapshots and PDF conversion need external tools. Diagnostics help improve a drawing; they do not certify the system's architecture. Inspect the result before publishing.

Build with it

You want to…Start here
Integrate rendering or editingGo API · Go reference
Automate a diagram pipelineCLI reference
Connect an agentMCP reference · Agent skills
Learn the scene formatYAML reference · Recipes

Contribute

Issues, reproducible scenes, and pull requests are welcome. Include the source, expected result, and a screenshot when reporting a visual problem. Run go test ./... before submitting code; golden SVG fixtures detect rendering changes.

Development guide · Report an issue · Documentation

Apache-2.0 · License. Third-party assets and brand marks retain their applicable terms.

MCPB
https://github.com/NexusFox88/iso-topology/releases/download/v0.16.0/iso-topology-mcp-0.16.0.mcpb
Install Command
# mcpb: https://github.com/NexusFox88/iso-topology/releases/download/v0.16.0/iso-topology-mcp-0.16.0.mcpb