| ▲ | Show HN: Mmdr – 1000x faster Mermaid rendering in pure Rust (no browser)(github.com) | |||||||||||||||||||||||||
| 35 points by jeremyh1 a day ago | 8 comments | ||||||||||||||||||||||||||
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.
Supports 13 diagram types: flowchart, sequence, class, state, ER, pie, gantt, timeline, journey, mindmap, git graph, XY chart, and quadrant. | ||||||||||||||||||||||||||
| ▲ | letientai299 3 hours ago | parent | next [-] | |||||||||||||||||||||||||
Cool. I’ve just publish a tool md2cb to convert markdown to clipboard content (https://news.ycombinator.com/item?id=46896623) using mmdr internally. Totally unaware of this being posted just yesterday. | ||||||||||||||||||||||||||
| ▲ | tricked 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
This is really neat, i wonder if this could be made into a typst plugin now so that you can create mermaid code blocks that turn into diagrams when rendered. The original mermaid can't be added to typst sadly but i bet this could. | ||||||||||||||||||||||||||
| ▲ | jackothy 18 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
Does it make sense to create a Wasm build of this for the browser? Or is the speedup mainly due to the browser spawning step rather than execution/rendering itself? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | plankalkyl 9 hours ago | parent | prev [-] | |||||||||||||||||||||||||
Could this be used as a drop-in replacement for mermaid-cli or is the CLI different? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||