mermaid-js

    mermaid-js/mermaid

    Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown

    91.0K stars
    9.5K forks
    91.0K GitHub watchers
    Updated Nov 4, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest 1 day ago, with 366 contributors on GitHub.

    Use Cases & Benefits

    • Generate diagrams and charts from markdown-like text using a JavaScript-based renderer.
    • Enables easy creation and modification of complex diagrams as code, keeping documentation in sync with development.
    • Use for embedding flowcharts and sequence diagrams directly in markdown documentation for software projects.
    • Use for creating visual project timelines and Gantt charts to track task progress in team collaboration tools.
    • Use for designing UML class, state, and C4 architecture diagrams to communicate system design clearly.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Generate diagrams from markdown-like text.

    Try Live Editor previews of future releases: Develop | Next

    :trophy: Mermaid was nominated and won the JS Open Source Awards (2019) in the category "The most exciting use of technology"!!!

    Thanks to all involved, people committing pull requests, people answering questions! 🙏

    Mermaid is a JavaScript-based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. The main purpose of Mermaid is to help documentation catch up with development.

    Doc-Rot is a Catch-22 that Mermaid helps to solve.

    Diagramming and documentation costs precious developer time and gets outdated quickly. But not having diagrams or docs ruins productivity and hurts organizational learning.

    Mermaid addresses this problem by enabling users to create easily modifiable diagrams. It can also be made part of production scripts (and other pieces of code).

    Mermaid allows even non-programmers to easily create detailed diagrams through the Mermaid Live Editor.

    For video tutorials, visit our Tutorials page. Use Mermaid with your favorite applications, check out the list of Integrations and Usages of Mermaid.

    Excerpt from the mermaid-js/mermaid README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    9.5K+295

    Open issues

    2.1K+366

    Compared with peers in Documentation

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    mermaid-js/mermaid compared with Documentation repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    mermaid-js/mermaid91.0K—651 day ago
    hexojs/hexo41.8K—55186 days ago
    ScrapeGraphAI/Scrapegraph-ai32.4K—6426 days ago
    squidfunk/mkdocs-material27.6K—658 days ago
    MrLesk/Backlog.md7.3K—5917 days ago
    geekjourneyx/md2wechat-skill3.8K—2645 days ago
    Category median27.6K—59—

    Also by mermaid-js

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description