Story

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

jeremyh1 Wednesday, February 04, 2026

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.

Summary
mermaid-rs-renderer is a Rust library that allows users to render Mermaid diagrams programmatically. It provides a simple interface to generate diagrams in various output formats, including SVG, PNG, and PDF.
2 0
Summary
github.com
Visit article Read on Hacker News