Flowgraph Studio vs draw.io: What survives the next Mermaid edit?

draw.io and Flowgraph Studio both let you edit Mermaid visually. The difference shows on the second edit: what happens to your labels, styles and layout when the source changes.

Comparisons · · 4 min read

Flowgraph Studio is our product. We've tried to describe the other tools fairly, from their own documentation as of November 2026.

Importing a Mermaid diagram is easy to demonstrate. Keeping it right after someone changes the picture is a better test.

Imagine a webhook pipeline. A sender posts an event, the receiver validates it, accepted events are stored, and a worker processes them. Temporary failures go to a retry queue; permanent ones go to an exception log. A reviewer moves the retry queue, renames a step, and asks for a dead-letter destination. Then the next developer edits the Mermaid. What should happen to those visual changes?

Flowgraph Studio and draw.io both deserve a close look here. The difference is more specific than "code editor versus drawing tool".

A Mermaid source file leads to a visual edit and then a source revision, with a reminder to check labels and layout after regeneration.
The useful comparison is the second edit: do the source, the labels and the positions still agree?

The example

Here's the pipeline as Mermaid. Paste it into either tool to follow along:

flowchart TD
  S[Sender] --> V{Validate event}
  V -->|Valid| Q[(Accepted events)]
  V -->|Invalid| E[Reject request]
  Q --> W[Process event]
  W --> O{Outcome}
  O -->|Temporary| T[Retry queue]
  O -->|Permanent| L[Exception log]

draw.io keeps more Mermaid than you might expect

The draw.io Mermaid documentation describes two ways to insert Mermaid. The default, Diagram, turns the source into draw.io shapes and connectors inside a Mermaid container group. Image inserts a single SVG that can't be edited, and you can't switch between the two after inserting.

In a container, draw.io keeps the Mermaid source, so you can reopen it, edit it and regenerate the diagram. Style and label changes you make to the shapes override the source and survive regeneration. Positions and sizes are reset, and connector routes are recalculated by the layout.

That's a useful capability with a particular maintenance model: the source and some of your visual changes live together, while hand-placed geometry doesn't survive the same way. In the webhook example, a carefully routed exception arrow needs checking after every source change. And a label on the canvas may be an override, not the wording you'd find in the source.

Flowgraph Studio keeps the code and the canvas in step

Flowgraph Studio's Manual mode edits the Mermaid itself. Rename a node on the canvas and the code changes; change the code and the canvas redraws. The code panel stays open while you work, for flowcharts, state, sequence, ER and class diagrams.

Mermaid has no syntax for positions, so Flowgraph Studio saves your arrangement in one comment line at the end of the code, keyed by node id. Delete the line and the diagram goes back to automatic layout.

Flowgraph Studio in Manual mode with the webhook pipeline: the Mermaid code on the left, and on the canvas the sender, the validation decision, accepted events, processing, and the outcome decision with its retry queue and exception log.
The webhook pipeline in Manual mode. Temporary failures go to the retry queue and permanent failures go to the exception log.

That's the appeal when the Mermaid file in the repository is what you maintain. You change the process and its arrangement in one session, then read the resulting source before you commit it.

The layout line isn't a Mermaid standard, though. Other renderers draw the graph and ignore the saved positions. Flowgraph's exports, API and shared links keep them, so use a Flowgraph-rendered image when the exact layout matters on the published page.

Try the same three changes in both

Three revisions tell you more than a long feature list:

  1. Rename "Process event" to "Deliver event".
  2. Add a dead-letter destination in the source, for events whose retries run out.
  3. Move the exception branch so it doesn't cross the main route.

Save, reopen the file you'd maintain, and make one more change in the source. Does the label in the source match the one on the canvas? Does the exception branch still sit where you put it?

This is an exercise to run yourself, not a benchmark either tool passed. Your result depends on your diagram and how you work.

If a change goes wrong in Flowgraph Studio, version history keeps earlier versions of every saved diagram, and Compare with current marks what changed.

Let the destination guide the choice

If the team works mainly in draw.io documents, its native shapes, styling and wider drawing tools may make it the sensible home. The Mermaid container lets authors go back to the code, as long as everyone understands what regeneration resets.

If the deliverable is a Mermaid file beside the runbook, Flowgraph Studio lets you edit it visually while the file stays the source of truth. Save the rendered image with the source when readers need the exact composition.

The best choice is the one that makes the next maintainer's job predictable. For a fair trial, open Flowgraph Studio, paste the webhook flow from above, make the same three changes, and compare the files you'd actually hand over. If your team works in Markdown hosts instead, see Flowgraph Studio vs GitHub Mermaid.

More from the blog

Follow the blog by RSS