Pele vs Mermaid.js

Both read the same Mermaid text. Pele draws it about 100–500× faster from a bundle about 6× smaller, colours it with CSS and adapts it to phones. Mermaid.js has the reference look, click callbacks and plugins. If you render diagrams often, live or in bulk, Pele is the better fit.

Side by side

Question Pele Mermaid.js
Syntax Mermaid (12.1.0) Mermaid
Diagram types All built into Mermaid 12.1.0 Same, plus plugins (ZenUML)
Download (gzip) about 230 kB, less with pele/core about 1.6 MB
Time to draw 0.05–0.3 ms 6–82 ms
How it runs Synchronous, browser or Node Asynchronous, needs a browser
Colours CSS variables, no redraw themeVariables, redraw
Phones Changes layout Shrinks the drawing
Click callbacks Ignored (links work) Supported
Look Pele's own The reference look

Speed and size figures are from pele.run; you can check them in your own browser in the typing race and the 200-diagram page.

Choose Pele when

Keep Mermaid.js when

Moving over? See migrating from Mermaid.js.