Pele renders Mermaid diagrams up to 500× faster than Mermaid.js
Pele – Mermaid diagrams as themeable SVG

Pele is a zero-dependency renderer that turns Mermaid syntax into themeable SVG. It supports every diagram type in Mermaid 12.1.0, ships at 230 kB gzipped versus 1.6 MB, and renders in 0.05–0.3 ms compared to Mermaid.js's 6–82 ms. Colors and fonts are set via CSS variables without re-rendering. Developed for Obsidian and open source, it adapts layouts to small screens.
Zero dependencies, 6× smaller, and up to 500× faster than Mermaid.js.
- lukeify
Anytime I try mermaid for anything more complex than a toy diagram I always end up absolutely frustrated by the arcane and topologically poor layout that is produced.
Styling seems like a trivial problem by comparison.
- dkga
Brazilian me thought it was an homage to Pelé. I’m glad the text explains the name.
- Ancapistani
> A flowchart subgraph keeps its own direction even when it links to nodes outside the subgraph.
This, in and of itself, is sufficient reason for me to switch, even if it were slower than Mermaid.js.
I’ve not even made it through the list yet and I’m sold.
- Imustaskforhelp
Is pele open source?
I tried to find the source code of it but I was unable in finding so
Edit: found it, https://github.com/obsidianmd/pele
Also folks, this is a good reminder to please have a github icon on the top of the page to easily show git/github links if the app is open source, also helps in the fact that I can star your projects and bookmark them more easily :-D
- nickmain
Does the official Mermaid library still require a full or headless browser environment in order to lay out the SVG? If so, Pele is great news for embedding Mermaid rendering in other places.