Skip to main content
Start with the question closest to your task. Each answer links to the maintained guide or contract.

Can an AI agent draw the diagram for me?

Yes. Connect the local MCP server or let a shell-capable agent use the CLI. The engine exposes supported fields and structured feedback. AI quickstart.

D2, YAML, or JSON?

D2 is a compact graph input. YAML is recommended for repair and Studio visual edits. JSON serves programmatic composition. Choose a format.

How do I group services or add replicas?

Use nested parts in a group, or a stack for repeated instances. Groups · Replicas.

Do I need coordinates?

Usually you can start with automatic layouts or relative placement. Explicit offsets remain available for deliberate control. Arrange nodes.

Why did automatic layout stop after a drag?

The visual edit freezes relevant positions into offsets. Undo or restore the source layout declarations to return to declarative placement. Source and layout.

Does Studio save automatically?

In serve mode, nonempty parseable edits sync to the bound file. Static HTML has different behavior. Saving model.

Why do lines or labels overlap?

Projection adds depth and occlusion. Inspect quality feedback, increase spacing or revise the route, then review the image. Quality workflow.

Why does SVG work but PNG fail?

Core SVG rendering runs in Go; PNG snapshots require an external rasterizer. Export guide.

Why is a documented feature missing after installing latest?

These docs follow main; @latest selects the newest tagged release. Installation and versions.

Is the exported SVG an interactive editor?

No. It is a static image. Use local Studio for source and canvas adjustments. Features and limits.

Can I embed the engine in my application?

Use the Go package for parsing, rendering and source edits. Go library.