Skip to main content
Create an editable architecture diagram from a four-component service graph. This quickstart takes you from a text file to an SVG, a local Studio edit, and an image you can commit with your code. Want an image for your README before installing? Edit a service template in your browser, export SVG and YAML, and add it to GitHub. Before starting, complete the native installation and make sure isotopo is available in your terminal. The standalone commands below assume a native installation; npx does not add isotopo to PATH. New to the product? Start with the browser quickstart.

1. Install and check

Use the native installer or npx launcher for macOS, Linux or Windows. No Go toolchain or model API key is required.
For an immediate editable example, run isotopo studio. It creates architecture.yaml only if absent and prints the local editor URL. Existing files are preserved. To follow the D2 tutorial, continue below. Go developers can instead install both binaries with go install github.com/NexusFox88/iso-topology/cmd/isotopo@latest and go install github.com/NexusFox88/iso-topology/cmd/isotopo-mcp@latest.

2. Describe a small architecture

Create a file called services.d2:
services.d2
D2 computes the layout from the graph. The renderer turns the nodes into isometric shapes and draws their connections.

3. Render it

Open out/topology.html in your browser to inspect the diagram. Use out/topology.svg wherever you need a vector image.
To inspect the same architecture from above, run isotopo render --projection top services.d2 ./out-plan.

4. Edit and preview the source

Open http://localhost:8731. Studio provides live source editing and preview. For the full canvas-editing workflow, use YAML; see Choose a format. Parseable source edits automatically save to the bound file. See the Studio guide for the supported editing operations and save behavior. Change API Gateway to Public API in the source editor and check that the label updates. You have now completed the first edit-and-render loop.

5. Check and share

Stop the server with Ctrl+C or open another terminal in the same directory. After reviewing validation results, render again to update the exported files; Studio saves your source but does not refresh an earlier ./out export.
Validation returns structured issues with paths and suggestions. Exit code 0 means clean, 2 means warnings, and 3 means errors. A diagram can render with warnings; inspect those warnings before publishing it.
Keep services.d2 in version control. Embed the generated SVG in your README:

Add groups and boundaries

Continue the tutorial with nested services and labeled containers.

Browse example sources

Start from an existing scene, then adapt it to your architecture.

Choose your next workflow

Worked architecture examples

简体中文