RC RANDOM CHAOS

Pele: Efficient SVG Rendering for Mermaid Diagrams

· via Hacker News

Original source

Pele – Mermaid diagrams as themeable SVG

Hacker News →

Pele is a lightweight, open-source library that converts Mermaid diagram syntax to SVG output with theming through CSS variables. The library achieves significant performance advantages: it has zero dependencies, is six times smaller than Mermaid.js, and runs up to 500 times faster. It supports every diagram type available in Mermaid 12.1.0.

The theming system uses CSS variables to control colors and fonts. Color changes apply without re-rendering the diagram. Pele was developed for Obsidian and takes its name from Pele, the goddess of volcanoes and fire.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.