mermaid-cli VS diagrams

Compare mermaid-cli vs diagrams and see what are their differences.

mermaid-cli

Command line tool for the Mermaid library (by mermaid-js)

diagrams

:art: Diagram as Code for prototyping cloud system architectures (by mingrammer)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
mermaid-cli diagrams
7 110
2,020 34,746
3.6% -
8.6 6.3
about 21 hours ago 18 days ago
JavaScript Python
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

mermaid-cli

Posts with mentions or reviews of mermaid-cli. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-02.
  • Nomnoml
    10 projects | news.ycombinator.com | 2 Oct 2023
  • The Unreasonable Effectiveness of Sequence Diagrams in MermaidJS
    12 projects | news.ycombinator.com | 24 Jul 2023
    I'm one of the maintainers of the mermaid-cli project, and unfortunately, no.

    Mermaid needs a browser's layout engine to run properly [1], but I haven't yet seen a library that will help us without puppeteer.

    And yep, NPM (or another Node.JS package manager) is still needed for installation. I was working on trying to bundle all of mermaid-cli's dependencies (aka Node.JS, puppeteer) into one massive single-file exe last weekend, but it's seems we're blocked by missing features in other packages [2].

    If anyone has any ideas on how to implement these things easily, feel free to help-out :) I'm also not a big fan of puppeteer, so I'd love to see a way to go without it.

    [1]: https://github.com/mermaid-js/mermaid/issues/3650

    [2]: https://github.com/mermaid-js/mermaid-cli/issues/467#issueco...

    12 projects | news.ycombinator.com | 24 Jul 2023
  • D2 is now open source – a new, modern language that turns text to diagrams
    24 projects | /r/programming | 22 Nov 2022
    you can use mermaid-cli to create pngs/svgs
  • Mermaid: Create diagrams and visualizations using text and code
    10 projects | news.ycombinator.com | 5 May 2022
    I come from past experiments with (py)graphviz, yed, probably a couple other forgotten things. (As well as manual diagrams in LucidChart and even Inkscape.) And am generally a non-web python guy.

    I was looking at Mermaid last weekend, since a coworker has praised it a few times and I was wanting to play with it.

    I think my expectation of how to use it was wrong? I typically expect to share my diagrams as .png files. The main documentation didn't seem to give much guidance in this usecase.

    I ended up going to https://github.com/mermaid-js/mermaid-cli ... there didn't seem to be a simple install-and-use pathway similar to `apt` or `pip`, so I ended up trying the docker image for it. I got it working to create pngs, but I thought having to mess with docker volume mounts and defining my own aliases (`alias mermaid='docker run -u $UID -it --rm -v ~/mermaid:/data minlag/mermaid-cli -i'` so I can do `mermaid blah.mmd` in my ~/mermaid folder) was a bit cumbersome...

    Just sharing to see if there's hot takes on where I went wrong, I guess. (for example, I certainly didn't extensively read the docs to understand the usage paradigm it's intended for)

  • Open Source Flowchart Generator?
    2 projects | /r/opensource | 27 Mar 2022

diagrams

Posts with mentions or reviews of diagrams. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-25.

What are some alternatives?

When comparing mermaid-cli and diagrams you can also consider the following projects:

c4-draw.io - Draw.io template/diagram containing C4 Model shapes. Drawio Diagrams.net

Graphviz - Simple Python interface for Graphviz

obsidian-excalidraw-plugin - A plugin to edit and view Excalidraw drawings in Obsidian

excalidraw - Virtual whiteboard for sketching hand-drawn like diagrams

pygraphviz - Python interface to Graphviz graph drawing package

vscode-drawio - This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.

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

plotly - The interactive graphing library for Python :sparkles: This project now includes Plotly Express!

Apache Superset - Apache Superset is a Data Visualization and Data Exploration Platform [Moved to: https://github.com/apache/superset]

PyQtGraph - Fast data visualization and GUI tools for scientific / engineering applications

matplotlib - matplotlib: plotting with Python

d2 - D2 is a modern diagram scripting language that turns text to diagrams.