Reproduce this diagram
You need Go 1.25 or later and Git. The complete source issamples/topology/microservice/input.d2.
isotopo.exe and invoke that executable. Open out-microservice/topology.html. Record the revision before adapting the source; the published SVG is regenerated from this source when the renderer or sample changes.
Make it your own
Copy the source to a separate file before editing. Use a text editor for D2 changes; Studio can preview the result.Rename a service
Change a node label while keeping its ID so its edges remain connected.Add a dependency
Add a node and an edge in D2, then render again to recompute graph layout.Inspect a different layout
Render with--layout elk and compare the resulting routes; the best arrangement depends on your graph.