lukilabs/beautiful-mermaid

Beautiful-mermaid is a TypeScript library that renders Mermaid diagrams as beautiful SVGs or ASCII art with full theming support.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 53 minutes ago
Added to GitGenius on September 1st, 2026
Created on January 28th, 2026
Open Issues & Pull Requests: 84 (+0)
GitHub issues: Enabled
Number of forks: 394
Total Stargazers: 11,044 (+0)
Total Subscribers: 28 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 9.6 days
Mean response time: 37.4 days
90th percentile: 156.0 days
Tracked items: 49

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 51% of tracked open issues have had no activity in three months. Only 6% of issues opened in the past year have been closed. Three people close 81% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 47
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 130 days
Stale 30+ days: 28
Stale 90+ days: 21

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Beautiful-mermaid is a TypeScript library that renders Mermaid diagrams as beautiful SVGs or ASCII art with full theming support.

The tool addresses limitations in Mermaid's default renderer: diagrams often lack visual polish, theming requires wrestling with CSS classes, terminal output is unavailable, and the renderer carries heavy dependencies. Beautiful-mermaid solves this by providing a lightweight, fully synchronous rendering engine that outputs either SVG for rich interfaces or ASCII for terminal environments. The rendering happens synchronously without async operations, enabling integration with React's useMemo for zero-flash diagram updates. The theming system centers on a two-color foundation—background and foreground—from which the entire diagram is automatically derived using CSS color-mix functions, allowing live theme switching through CSS custom properties without re-rendering.

The tool supports six diagram types: flowcharts, state machines, sequence diagrams, class diagrams, entity-relationship diagrams, and XY charts. It includes fifteen built-in themes and full compatibility with any VS Code theme through Shiki. The project suits developers building AI-assisted programming tools, terminal-based interfaces, or applications requiring diagram visualization without heavy dependencies. It works everywhere TypeScript runs, with no DOM requirements. The synchronous rendering model distinguishes it from standard Mermaid, making it particularly valuable for chat interfaces and CLI tools where immediate visual feedback matters.

The project maintains a substantial base of adopters who report real-world use cases through open issues. Response times to issues and pull requests typically range from one to two weeks.