Pele vs Mermaid.js

Both read the same Mermaid text. Pele draws it faster from a smaller bundle, colours it with CSS and adapts it to narrow screens. Mermaid.js has the reference look, click callbacks and plugins.

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 demo and the 200-diagram page.

Choose Pele when

Keep Mermaid.js when

Moving over? See migrating from Mermaid.js.