iso-topology

Architecture you can see.
Source you can keep.

Open-source architecture diagrams as code.
Isometric or top-down. Editable by agents and you.

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

[![ClickHouse analytics architecture, rendered from editable YAML](docs/assets/clickhouse-hub.svg)](samples/topology/clickhouse-hub/input.yaml)

ClickHouse analytics · Rendered by iso-topology · Complete source

**iso-topology is an open-source architecture diagram tool that turns D2, YAML, or JSON into isometric and top-down SVG.** Write the source yourself or with an agent, refine YAML in local Studio, and commit it alongside your code. A Go CLI, library, browser playground and 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. [Watch the 65-second source handoff](https://iso-topology.mintlify.site/guides/edit-ai-generated-diagrams) — actual agent runs and browser captures, with all four YAML stages to download. ## Choose a starting point | What you want to do | Start here | | --- | --- | | Try a diagram without installing | [Browser playground](https://nexusfox88.github.io/iso-topology/) — edit a starter and download YAML + SVG; no account or model API key | | Choose an architecture diagram tool | [Workflow-based selection guide](https://iso-topology.mintlify.site/guides/open-source-architecture-diagram-tools) — canvases, text diagrams and C4 models | | Build a diagram from repository evidence | [Code-to-diagram guide](https://iso-topology.mintlify.site/guides/architecture-diagrams-from-code) — separate code analysis from rendering | | Keep a README diagram current | [Working CI example](https://github.com/NexusFox88/iso-topology-diagrams-example) — source changes produce a reviewable SVG | The browser playground supports YAML up to 40 nodes / 64 KiB and downloads an approximately 9 MB compressed engine on first use. For broader editing use local Studio. [Local rendering and data boundaries](https://iso-topology.mintlify.site/guides/local-rendering-and-data). ## Install and open Studio Use the [native installer or version-pinned npx package](https://iso-topology.mintlify.site/getting-started/01-install). No Go toolchain or model API key required. ```bash isotopo doctor isotopo studio ``` Studio creates a starter only if `architecture.yaml` is absent. Open the printed local URL; accepted edits save to that file. CLI, Studio, MCP and the desktop bundle are built from the same release. Go developers can still use `go install ...@latest`. ## Start with your agent Use an MCP-capable client and either the [prebuilt CLI/MCP binaries](https://iso-topology.mintlify.site/getting-started/01-install#prebuilt-cli-and-mcp-server-no-go-required) (no Go required), or install the stable release with **Go 1.25+**: ```bash go install github.com/NexusFox88/iso-topology/cmd/isotopo@latest go install github.com/NexusFox88/iso-topology/cmd/isotopo-mcp@latest ``` For Claude Code: ```bash 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](https://iso-topology.mintlify.site/getting-started/00-onboarding) · [Seven-tool workflow](https://iso-topology.mintlify.site/agent/workflow) · [Measured workflow evidence](https://iso-topology.mintlify.site/agent/evaluation) · [Documentation index for agents](https://iso-topology.mintlify.site/llms.txt) ## Or start with five lines Save as `scene.d2`: ```d2 user: User { shape: person } api: API Gateway db: Database { shape: cylinder } user -> api: HTTPS api -> db: query ``` With the CLI installed above: ```bash 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. [Installation and PATH help](https://iso-topology.mintlify.site/getting-started/01-install). ## The last mile, in Studio ```bash isotopo serve diagrams/architecture/input.yaml ``` ![Studio with a diagram, editable source, and local save status](docs/assets/studio.png) 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](https://iso-topology.mintlify.site/guides/studio) · [Source and save behavior](https://iso-topology.mintlify.site/concepts/source-and-layout) ## One engine, different visual languages
DuckDB architecture with paper textures and hand-drawn styling Lakehouse 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](https://iso-topology.mintlify.site/gallery) · [Choose a format](https://iso-topology.mintlify.site/guides/choose-format) · [Features and limits](https://iso-topology.mintlify.site/concepts/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 editing | [Go API](https://iso-topology.mintlify.site/reference/api) · [Go reference](https://pkg.go.dev/github.com/NexusFox88/iso-topology) | | Automate a diagram pipeline | [CLI reference](https://iso-topology.mintlify.site/reference/cli) | | Connect an agent | [MCP reference](https://iso-topology.mintlify.site/agent/MCP) · [Agent skills](skills/README.md) | | Learn the scene format | [YAML reference](https://iso-topology.mintlify.site/reference/dsl-yaml) · [Recipes](https://iso-topology.mintlify.site/agent/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](CONTRIBUTING.md) · [Report an issue](https://github.com/NexusFox88/iso-topology/issues) · [Documentation](https://iso-topology.mintlify.site/) Apache-2.0 · [License](LICENSE). Third-party assets and brand marks retain their applicable terms.