Skip to main content
Architecture diagrams as code can be readable enough for a design review and still remain editable text in Git. This guide compares three small systems in Mermaid and iso-topology, with matching graphs and colors, downloadable sources, and projects you can reopen for the next edit. You have a Mermaid diagram that explains the system. Now you need a version for a README, a design review or a presentation, with more deliberate composition and visual hierarchy. To make an isometric version, preserve the components and directed connections, re-author their placement in iso-topology YAML, then render an SVG. iso-topology does not import Mermaid syntax directly. The examples below include both source formats, so you can inspect exactly what changed and start from an editable scene. The same six-component service in Mermaid and iso-topology: Client, API, Redis, Postgres, Queue and Worker, with matching colors and six directed connections. Open the full-size comparison · Download the service YAML Written from the iso-topology project perspective. Examples prepared December 5, 2026, using Mermaid 12.4.1 and iso-topology revision 3666b20. These are illustrative architectures, not vendor deployment diagrams.

What changed between the two pictures?

The graph stays the same. The presentation changes. Both diagrams use the same SVG-units-to-pixels scale within each comparison. Mermaid has a custom theme and automatic layout. The iso-topology scenes have authored placement and ports. This is a comparison of two authored presentations, not an automatic-layout benchmark or evidence that one prompt produced the finished scene. Both sides have editable source. Mermaid also offers layout configuration. If layout alone is the problem, try its available options before changing your diagram workflow.

Example 1: show the background work around an API

A three-box Client → API → Database picture leaves out the part that often matters in a design review: what happens after a request queues some work? This service has six components and six directed connections: This small code block describes the graph. The downloadable Mermaid source includes the colors and icons used in the comparison; its icon pack and renderer configuration are in the reproduction package. Isometric service diagram with a raised mint API, a Redis branch, and an API to Queue to Worker to Postgres write path. The API is the focal point. Redis sits off the main flow. Queue and Worker form a short background path, and Worker reconnects to Postgres without a long return line around the whole scene. Arrows show dependency or data-flow direction; they do not show HTTP responses, retries or transaction guarantees. The useful design decision: place nodes around the routes you need readers to follow. Raising a box adds emphasis; shortening the write path makes the architecture easier to explain. Editable YAML · Mermaid source · Native SVG

Example 2: separate RAG ingestion from query-time retrieval

A RAG diagram needs to distinguish work that happens when documents arrive from work that happens when someone asks a question. RAG architecture in Mermaid and iso-topology, preserving seven components and six edges across document ingestion and live retrieval. The upper lane runs Documents → Chunker → Embeddings → Vector DB. The lower lane runs App → Retriever → LLM, with Retriever → Vector DB representing the retrieval dependency. The simplified graph omits response arrows and the query-embedding implementation; it is a logical overview rather than an execution trace. Isometric RAG diagram with parallel ingestion and retrieval lanes and separate connector channels to Vector DB. The two lanes share the same direction. A separate channel connects the retriever to the vector store. This keeps the storage dependency visible without making the ingestion path look like a step in every user request. The useful design decision: give different lifecycles different lanes. A reader should be able to follow ingestion without accidentally entering the request path. Editable YAML · Mermaid source · Native SVG · Full-size comparison For a different RAG template and a longer explanation, see the RAG pipeline example.

Example 3: explain a DuckDB file-analysis workflow

This DuckDB example has a different shape: files feed an engine, and the engine supports several outputs. For an overview, fan-in and fan-out are the important relationships. DuckDB file-analysis workflow in Mermaid and iso-topology, with CSV and Parquet inputs and Notebook, Dashboard and Parquet export outputs. CSV files and Parquet feed DuckDB. Notebook, Dashboard and Parquet export are the three downstream uses. The arrows summarize data movement and usage; they do not claim that DuckDB hosts a notebook or dashboard server. Isometric DuckDB workflow with an amber engine between grouped file sources and grouped exploration tools, plus a separate export route. Thin platforms mark the same two groups represented in the Mermaid source: file sources and exploration tools. The amber engine is taller than the surrounding tiles. The export route remains separate so that producing a file does not read as another interactive analysis tool. The useful design decision: use depth and grouping to explain the role of a component. Give the engine more emphasis without enlarging every object. Editable YAML · Mermaid source · Native SVG · Full-size comparison

Choose a template and keep its editable project

A project contains the source and matching layout state. The SVG is the published picture. These project downloads reproduce the reviewed native SVGs; they are not screenshots embedded in an editor.

Render and edit one of these templates

First time using iso-topology? Follow the architecture diagram quickstart for the CLI setup, output files and Studio editing loop. Then use one of the matching templates below. With Go 1.25 or later installed, install the CLI and download the service source:
The render writes out/topology.svg. Studio opens at http://localhost:8731 by default. Use the downloaded YAML for visual editing; retain it alongside the exported SVG. For exact historical reproduction, build the revision recorded above rather than the evolving main branch. Start with one edit: change the API label to your service name. Render again, inspect the label and all six connections, then export the accepted revision. For the other templates, replace 01-service.yaml with 02-rag.yaml or 03-duckdb.yaml in the download URL. For installation and a first edit, follow the local quickstart. Then use the sources and commands above for these complete compositions. The README export walkthrough explains keeping the image and editable source together.

Try a second edit, then reopen it

Download the service project and open it locally:
Rename API to App in Studio and save the project. Keep the component ID api; the name a reader sees is different from the ID that keeps connections attached. Regenerate the exported picture from that saved project:
Stop the first local server before starting the second one on the same port. Check that App appears, all six connections remain, and the saved placement is present. Longer labels can change the space a node needs, so inspect your own revision at its intended display size. An agent can perform the same bounded revision. Give it the latest saved project, not an earlier source snippet:
The maintained project check exercises this rename through the actual CLI: it checks unchanged positions, retained edited source, a changed SVG, and an exact replay after reopening. This is a deterministic file-workflow check, not an LLM success-rate measurement or a recorded human editing session. The source already contains explicit placement; for manually dragged automatic layouts, follow the layout-preservation workflow. For a diagram inferred from your own application, start with code evidence and a bounded agent task. For a proposed redesign, keep current and target architecture distinct. A diagram renderer cannot establish that the architecture matches running software.

How to keep isometric connectors readable

Start with the paths, then add the depth:
  1. List every directed connection before arranging nodes. Preserve that list when changing the view.
  2. Put a sequence on one isometric axis where possible. Coaxial nodes can connect directly.
  3. Use bends along the isometric axes for cross-lane routes. Reserve a channel between lanes instead of sending an arrow across a node face.
  4. Choose ports deliberately when several edges meet one component. Check that arrowheads remain attached and distinguishable.
  5. Inspect the exported image at the width readers will actually see. Open a full-size SVG when a paired comparison becomes too small on a phone.
These examples use real renderer output. The comparison frames add headings and panel placement; exported node or connector geometry was not retouched. See connection authoring, layout controls, and preserving an existing layout during edits. The recorded checks find zero crossings, occlusions, tunnels and overlaps in these three scenes. Each report still contains an iso-route-clearance-unresolved warning for non-convex opaque body coverage. Those metrics have limited coverage and do not replace visual review. Sources, reports, graph checks and reproduction instructions are in the comparison evidence directory.

When should you keep Mermaid?

Keep Mermaid when native rendering in your documentation host is central to the workflow, the diagram is easy to follow, or a text change should be enough to update an automatically arranged graph. Check the Mermaid version and supported diagram types in the actual host. Consider an authored isometric scene when spatial grouping, visual emphasis and a reusable illustration are worth maintaining explicit layout. Isometric projection takes more space and can obscure relationships in dense graphs. A top-down view may communicate a complicated dependency map better. See choosing an architecture view and the broader open-source diagram tool guide.

Common questions

Can iso-topology convert a Mermaid file directly?

No. There is no native Mermaid importer in this workflow. Recreate the components and edges in YAML, JSON or supported D2 input. These examples provide matching Mermaid and iso-topology sources to make that re-authoring inspectable. See choosing an input format.

Do I need an AI agent to create the diagram?

No. The CLI renders locally, and the templates can be edited directly. An agent can help author or revise the source through the MCP workflow, but the finished examples here are not evidence of unattended one-prompt generation.

Can I edit the exported SVG in Studio?

Use the YAML as the working document. The SVG is the rendered output; it is not the complete editable Studio source. Commit the source and export together so the next revision remains reproducible.

Are these vendor reference architectures?

No. They are small illustrative graphs for explaining layout and presentation. Adapt their components and relationships to the system you actually run. Article prepared with AI assistance. The comparison images are generated from the linked diagram sources, not generated bitmap artwork.