qmetrics.net

Pele

Lightweight Mermaid-to-SVG renderer with CSS theming

Pele screenshot

Pele turns Mermaid diagram text into SVG in the browser or Node, with no runtime dependencies and styling through CSS variables.

Overview

Pele is a small library that parses Mermaid diagram syntax and renders the result as SVG. It targets the same diagram vocabulary as Mermaid 12.1.0 while providing its own layout and visual style.

The design emphasizes synchronous rendering, zero declared runtime dependencies, and theming via CSS variables for colors and fonts. Chart series can use named CSS variables, and theme changes can apply without re-rendering the diagram. A mount API fits browser use by adapting layout to container width and reading fonts from CSS.

Consumers can install via npm and import a main entry that includes all diagram types, or register diagram types individually to reduce bundle size. Documentation and a playground are published separately. Security-related behavior includes escaping diagram text, filtering links and styles, and limiting source and output size for untrusted input.

Compared to Mermaid.js in benchmarks described in the project materials, Pele reports smaller gzipped bundles and lower render times on the same diagrams, with layout that adapts on small screens rather than only scaling the graphic.

Key features

  • Mermaid syntax to SVG
  • CSS variable theming
  • Synchronous rendering
  • No runtime dependencies
  • All Mermaid 12.1.0 diagram types
  • On-demand diagram type loading
  • Untrusted diagram safeguards
  • Browser mount API

Use cases

  • In-app Mermaid diagrams
  • Themeable documentation charts
  • Low-latency diagram previews
  • Obsidian-style diagram rendering
  • CDN or npm front-end embeds

Tags

Similar software

Mermaid

Text-defined diagrams from Markdown-like syntax

Mermaid turns plain-text diagram definitions into flowcharts, sequence charts, Gantt charts, and many other diagram types. It renders in browsers, documentation tools, and GitHub Markdown.

★ 91.3k⟳ 5 days agoMIT

PlantUML

Text-to-diagram tool for UML and related charts

PlantUML turns textual descriptions into UML and many other diagram types, with PNG, SVG, LaTeX, and EPS output options.

★ 13.4k⟳ todayLGPL-3.0

Excalidraw

Open-source collaborative whiteboard for hand-drawn style diagrams

Excalidraw is a virtual whiteboard for sketching diagrams and wireframes in a hand-drawn style. It offers an infinite canvas, real-time collaboration with end-to-end encryption, and is also published as an npm package for embedding.

★ 136.4k⟳ todayMIT
Open Source Alternative to:Miro

three.js

Cross-browser JavaScript library for 3D graphics

Three.js is a lightweight JavaScript 3D library for browsers. Default builds target WebGL and WebGPU, with optional SVG and CSS3D renderers as add-ons.

★ 119.5k⟳ todayMIT
Design & VisualizationDesktop/CLI app

Archify

Agent skill for interactive HTML diagrams and explainers

Archify is an open-source agent skill that turns descriptions, plans, or repositories into validated, self-contained interactive HTML maps and one-page explainers for Claude Code, Codex, Cursor, OpenCode, and Copilot.

★ 100.9k⟳ 2 days agoApache-2.0

Manim

Programmatic animation engine for explanatory math videos

ManimGL drives precise programmatic animations for explanatory math videos. The 3Blue1Brown variant installs via the manimgl package

★ 97k⟳ 2 months agoMIT
Frameworks & PlatformsDesktop/CLI app