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.

  • Twenty-plus diagram types
  • Markdown-inspired text syntax
  • Themes and layout customization
TypeScriptCLIDetails →
★ 91.3k⟳ todayMIT
Open Source Alternative to:Google DrawingsVisio

Chart.js

Flexible JavaScript charting library for HTML5 canvas

Chart.js draws animated, customizable charts in the browser using JavaScript and the canvas element, aimed at designers and developers.

  • Multiple animated chart types
  • HTML5 canvas rendering
  • Responsive resize handling
JavaScriptDetails →
★ 67.9k⟳ 4 days agoMIT

xyflow

Node-based UI libraries for React, Svelte, and Vue

xyflow maintains React Flow, Svelte Flow, and Vue Flow—libraries for building customizable node-based editors and interactive diagrams in those frameworks.

  • React, Svelte, and Vue graph libraries
  • Shared @xyflow/system utilities
  • Customizable nodes and edges
TypeScriptDetails →
★ 39.3k⟳ yesterdayMIT

MPAndroidChart

Android and Compose charting library for mobile apps

MPAndroidChart is a Kotlin charting library for Android apps. It draws line, bar, pie, radar, bubble, candlestick, and related chart types in traditional views or Jetpack Compose.

  • Nine chart types with shared data model
  • Jetpack Compose module with chart state
  • Zoom, drag, highlight, and markers
KotlinAndroidDetails →
★ 38.2k⟳ 1 month agoApache-2.0

Recharts

Composable React chart library built on SVG and D3

Recharts helps React apps render charts from declarative components such as axes, grids, legends, and series. It targets native SVG output with a small D3 footprint and installs via npm, Deno, or UMD.

  • Declarative React chart components
  • SVG-based rendering
  • Lightweight D3 submodule usage
TypeScriptDetails →
★ 27.9k⟳ todayMIT

Motion Canvas

TypeScript animation library with web sync editor

Motion Canvas pairs a TypeScript animation library with a browser editor for live previews. It targets informative vector animations timed to voice-overs.

  • Generator-based animation API
  • Real-time preview in editor
  • Voice-over synchronization
TypeScriptWebDetails →
★ 20.7k⟳ 5 months agoMIT