pretty-mermaid

Installation
Summary

Render Mermaid diagrams as SVG or ASCII with 15+ themes and 5 diagram types.

  • Supports five diagram types: flowchart, sequence, state, class, and ER diagrams for workflows, APIs, databases, and object models
  • Offers 15 built-in themes (tokyo-night, dracula, github-dark, nord, catppuccin, and more) with light and dark variants
  • Generates SVG output for web and documentation, or ASCII art for terminals and plain-text files
  • Batch rendering with parallel processing (--workers flag) for multiple diagrams, plus custom styling options (colors, fonts, transparency)
  • Includes example templates and a workflow decision tree to help identify the right diagram type for any use case
SKILL.md

Pretty Mermaid

Render stunning, professionally-styled Mermaid diagrams with one command. Supports SVG for web/docs and ASCII for terminals.

Quick Start

Render a Single Diagram

From a file:

node scripts/render.mjs \
  --input diagram.mmd \
  --output diagram.svg \
  --format svg \
  --theme tokyo-night

From user-provided Mermaid code:

  1. Save the code to a .mmd file
Installs
2.6K
GitHub Stars
701
First Seen
Jan 30, 2026