mermaid-js/mermaid-cli

Command line tool for the Mermaid library

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 27 minutes ago
Type:CLI ToolCategory(s):Documentation ToolsDeveloper Tools
Added to GitGenius on September 13th, 2026
Created on May 18th, 2020
Open Issues & Pull Requests: 87 (+0)
GitHub issues: Enabled
Number of forks: 387
Total Stargazers: 5,018 (+0)
Total Subscribers: 42 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.2 days
Mean response time: 59.1 days
90th percentile: 140.4 days
Tracked items: 69

Most active contributors

Sign in to see contributor activity.

How this project is maintained

100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 75% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 59
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 640 days
Stale 30+ days: 58
Stale 90+ days: 53

Recent activity

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

Top labels

  • blocked (2)
  • enhancement (2)
  • wontfix (2)
  • help-wanted (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

mermaid-cli is a command-line tool that converts Mermaid diagram definitions into SVG, PNG, and PDF output files.

The tool solves the problem of rendering Mermaid diagrams outside of interactive environments by accepting mermaid definition files as input and generating static image files. It also provides basic support for processing mermaid code blocks embedded within Markdown files, transforming the markdown itself to reference the generated diagram files. Users can customize output through options like theme selection, transparent backgrounds, and inline CSS for animations.

The tool suits developers and documentation authors who need to generate diagrams programmatically or as part of build pipelines. It works well for projects that maintain diagram definitions in version control and want to produce rendered outputs automatically. Installation is available through multiple methods including npm, Docker, Podman, and direct Node.js API usage, giving flexibility depending on the deployment environment.

The project shows consistent maintenance with regular updates addressing user-reported issues and feature requests. Development activity includes ongoing refinement of output quality and expansion of supported diagram types. The maintainers actively respond to bug reports and incorporate community feedback into releases. Documentation is kept current with examples covering common use cases like dark themes, animated SVGs, and markdown transformation workflows.