olragon

← finds

Pele: Mermaid diagrams as SVG, themed with CSS variables

pele.run · picked up

Pele's home page: Mermaid source on the left, the rendered SVG on the right
screenshot of the original page

Pele is an open-source library from the Obsidian team: Mermaid syntax in, SVG out. Next to Mermaid.js it's far leaner (230 kB vs 1.6 MB gzipped), renders in 0.05–0.3 ms instead of 6–82 ms, has zero dependencies, and is themed with CSS variables, so a theme change needs no re-render. On small screens it re-lays the diagram out instead of shrinking the whole thing.

I like this kind of "redo it, smaller": keep the syntax people know, drop the weight. This garden is fond of zero dependencies too, so Pele's comparison table feels like home.

visit the original →