zlacker

Show HN: Mmdr – 1000x faster Mermaid rendering in pure Rust (no browser)

submitted by jeremy+(OP) on 2026-02-04 14:00:04 | 35 points 8 comments
[view article] [source] [go to bottom]

I was building a Rust-based agentic coding TUI and needed to render Mermaid diagrams. Noticed the official mermaid-cli spawns a full browser instance (Puppeteer/Chrome) just to render diagrams. Decided to fix this.

mmdr is a native Rust renderer. No browser, no Node.js.

  mermaid-cli:  ~3000ms per diagram
  mmdr:         ~3ms per diagram
Supports 13 diagram types: flowchart, sequence, class, state, ER, pie, gantt, timeline, journey, mindmap, git graph, XY chart, and quadrant.


NOTE: showing posts with links only show all posts
7. letien+CD3[view] [source] 2026-02-05 14:16:34
>>jeremy+(OP)
Cool. I’ve just publish a tool md2cb to convert markdown to clipboard content (>>46896623 ) using mmdr internally. Totally unaware of this being posted just yesterday.
◧◩
8. vablin+wK3[view] [source] [discussion] 2026-02-05 14:53:15
>>planka+QR2
I will let you make that determination

https://github.com/mermaid-js/mermaid-cli/blob/f87dcd0c9049a...

https://github.com/1jehuang/mermaid-rs-renderer/blob/9d6790b...

[go to top]