Mermaid

JavaScript tool that renders diagrams and charts from Markdown-like text definitions.

Commenters use it to keep diagrams as code inside Markdown documentation123, partly because it renders natively on GitHub with little setup,4 and often have LLMs or coding agents write it for them.5678 The most common complaint is ugly default rendering and weak layouts91011, with others citing a heavy renderer, CVEs and an unwelcome push to monetize.121314
The HN verdict, written from 14 cited comments
7recommend
5warn against
Nov 4, 2025first mention
Oct 18, 2026latest mention
Nov 25 – Oct 26
Used forfor documentationfor AI-assisted workflowsfor GitHub collaborationfor static sites and blogsfor threat modelingdiagramsarchitecture diagrams

Why people recommend it

LLM-friendly · 3

Commenters routinely have LLMs and coding agents generate Mermaid diagrams, including from handwritten notes.

“diagrams-as-code ideas like Mermaid, all of which LLMs seem to "get" well”

“convert any diagrams that I might have to mermaidjs style”

Show 1 more

“I've had it create diagrams with both the mermaid syntax and AWSDAC (Diagram-as-Code).”

Markdown docs · 3

Pairs well with Markdown for documentation, blog posts and Confluence pages.

LioJan 29, 2026recommends

“I love Mermaid and Markdown as a combination for documentation.”

Show 1 more

“we mostly render mermaid in confluence documents with a macro that renders it from the source in the document”

Available everywhere · 2

Simple syntax that renders on GitHub and needs less setup than PlantUML.

“mermaid requires a lot less explanation or help with setup.”

Architecture diagrams · 2

Used to explain code architecture and to maintain attack trees during security reviews.

“Mermaid when I want my code architecture to be explained”

“I've been using mermaid to create attack trees”

Caveats and dissent

Ugly rendering · 2

Default output looks poor, and some users fall back to hand-made SVG instead.

“I find Mermaid diagram rendering is quite ugly by default.”

Layout engines · 1

One user switched to D2 after ELK was removed from the base package and Dagre layouts fell short.

“after they removed ELK from the base. Dagre just doesn’t work for me.”

Heavy renderer · 1

Server-side rendering to SVG needs a full Chromium instance.

“I used mermaidjs for this but it is very heavy for this purpose”

Security · 1

Commenters point to CVEs and an Obsidian warning about potentially unsafe diagrams.

“has a questionable safety record (see CVEs)”

Monetization · 2

Some dislike the move toward a commercial mermaid.ai offering.

“Trying to monetize Mermaid was disgusting”

“has a questionable safety record (see CVEs)”

Agent output · 2

Some users struggle to get AI agents to produce good Mermaid diagrams.

“I love mermaid but have struggled to get my agents to be any good at it.”

Often compared with

Who recommends it in their own words

All comments 22

“I used mermaidjs for this but it is very heavy for this purpose”

“has a questionable safety record (see CVEs)”

“mermaid requires a lot less explanation or help with setup.”

“some simple custom Mermaid format, which the agent can write as artifact files”

“I've been using mermaid to create attack trees”

“after they removed ELK from the base. Dagre just doesn’t work for me.”

“we mostly render mermaid in confluence documents with a macro that renders it from the source in the document”

“Mermaid when I want my code architecture to be explained”

“convert any diagrams that I might have to mermaidjs style”

“Trying to monetize Mermaid was disgusting”

“I love mermaid but have struggled to get my agents to be any good at it.”

“I use a few such as excalidraw/mermaid etc.”

“diagrams-as-code ideas like Mermaid, all of which LLMs seem to "get" well”

“might be great as a library or a lightweight alternative to Mermaid”

“I find Mermaid diagram rendering is quite ugly by default.”

“using ChatGPT for diagrams made me pay for Mermaid.”

“I've had it create diagrams with both the mermaid syntax and AWSDAC (Diagram-as-Code).”

LioJan 29, 2026recommends

“I love Mermaid and Markdown as a combination for documentation.”

Threads where it came up

Data: mermaid.json. Quotes are verbatim; the verdict and theme labels are written by a model from these comments, and every clause links to its sources.

Keyboard shortcuts
j / kNext / previous item
o or EnterOpen selected item
/Search
g hHome
g tTop
g rRising
g cCategories
tToggle dark mode
?This help