Comparison

Lucid Train compared with Mermaid.

Mermaid's advantage is that it lives in your Markdown. Its limit is that you are still authoring the diagram by hand, in text, against a layout engine that gives up early.

Download for macOS
v0.1.33 · .dmg · Apple Silicon & Intel
Download for Windows instead·Linux
$curl -fsSL https://lucidtrain.com/install.sh | sh

Lucid Train generates architecture diagrams from your codebase and lays them out with the ELK constraint solver, producing SVG that renders natively in a GitHub README just as Mermaid does. Mermaid is text you write by hand, rendered by a simpler built-in layout engine that degrades past roughly twenty to thirty nodes and cannot show real service logos. Lucid Train also runs offline against local models and can turn the diagram back into a coding specification.

Both end up in your repository, and both render on GitHub

This is worth stating plainly because it is often assumed otherwise. Lucid Train exports SVG straight into your repo, and GitHub renders SVG natively in a README, so a generated architecture diagram sits in your documentation exactly as a Mermaid block does. It also writes an Architecture section into the README as Markdown, and diagrams are stored in-repo under .lucid/diagram so they travel with the code.

A real layout solver, not a built-in one

Mermaid's layout is adequate at small sizes and produces crossing edges and awkward spacing past roughly twenty to thirty nodes, with only coarse direction hints to fight it with. Lucid Train uses ELK, a layered constraint solver with orthogonal edge routing and container-aware tier bands, which is why a diagram of forty components is still readable. That ceiling is the single most common reason people abandon a Mermaid diagram.

Real icons, and you never write the syntax

Every card carries a real bundled service logo, Postgres, Kafka, Kubernetes, Terraform and around forty-five others, rendered offline with no network. Mermaid has no equivalent, so every box looks the same. And you do not write anything: point Lucid Train at the repository and it produces the graph, where Mermaid requires you to have already worked out the diagram before you can express it.

It does things Mermaid has no concept of

Node states that mark single points of failure, per-node documentation panels, tier bands, 50 versions of history, story mode with a narrator, and converting the finished canvas into a specification that starts a coding turn. Mermaid is a rendering syntax; this is a design surface with an agent behind it.

What Mermaid is good at

It is free, universally supported, and renders inline on GitHub with no build step and no tooling. For a five-box flow that belongs beside the code it describes, nothing is more convenient, and every model can write it.

Side by side

Lucid TrainMermaid
Lives in your repositoryYes, SVG, Markdown and scene filesYes, as text
Renders on GitHubYes, as a committed SVGYes, natively inline
Layout engineELK, layered constraint solverBuilt in, simpler
Comfortable sizeDozens of componentsRoughly 20 to 30 nodes
Real service iconsYes, bundled, renders offlineNo
Generates from a codebaseYesNo, you write it
Diagram to code as a specificationYesNo
Tier bands and failure markingYesNo
Version history50 versions per diagramYour git history
ExportSVG, 2x PNG, Markdown, .excalidrawSVG, PNG via tooling
PriceCLI free and open source; desktop $3/month, 7-day trial, no cardFree
FAQ

Questions

Do Lucid Train diagrams render on GitHub like Mermaid does?

Yes. Export the SVG into your repository and GitHub renders it natively in the README. The difference is that the SVG was generated from your code and laid out by a solver, rather than written by hand.

At what size does Mermaid stop working well?

Around twenty to thirty nodes, where its layout starts producing crossing edges and uneven spacing that the available direction hints cannot fix. That is the usual point at which a diagram gets abandoned rather than improved.

Can Lucid Train export Mermaid syntax?

No. The agent can write Mermaid into a file the way any coding agent can type text, but there is no Mermaid rendering, validation or round-trip in the product. Lucid Train's own canvas uses a semantic graph with ELK layout instead.

Affiliation

Lucid Train is an independent product and is not affiliated with, endorsed by, or connected to the product described on this page. All names and trademarks belong to their respective owners. Pricing and features were checked on 19 August 2026 and change without notice; check the vendor's own site before deciding.

Related

Last updated