Pele renders Mermaid diagram syntax to SVG, and it comes from the Obsidian team. It is synchronous, has no runtime dependencies, uses CSS variables for colors and fonts, and supports every diagram type built into Mermaid 12.1.0. You can import only the diagram types you need or lazy-load them, which is the whole point versus shipping the full Mermaid bundle. It also escapes text and limits source and output size for untrusted input. The tradeoff: it has its own layout engine and visual style, so diagrams will not look pixel-identical to Mermaid.js, and it tracks a specific Mermaid version rather than the latest syntax. MIT, about 4.7k stars, 400+ commits.
You render Mermaid in docs, a chat UI or a notes app and the Mermaid.js bundle size or async rendering is hurting you.
You need exact visual parity with Mermaid.js output or the newest Mermaid syntax the day it ships.
# Clone + explore: git clone https://github.com/obsidianmd/pele cd pele # Then read the README below for setup steps.
Inferred from package · always double-check against the official README below.