d2 VS mermaid-cli

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

d2

D2 is a modern diagram scripting language that turns text to diagrams. (by terrastruct)

mermaid-cli

Command line tool for the Mermaid library (by mermaid-js)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
d2 mermaid-cli
92 7
15,837 2,031
3.4% 4.6%
9.8 8.6
8 days ago 4 days ago
Go JavaScript
Mozilla Public License 2.0 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.

d2

Posts with mentions or reviews of d2. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-26.

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
  • 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 as Code
    1 project | /r/coding | 28 Feb 2021
    node cli tool if java isn’t your thing. https://github.com/mermaid-js/mermaid-cli

What are some alternatives?

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

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

pom-visualizer-maven-plugin - Maven plugin to visualize the POM you are working on

C4-PlantUML - C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures

windows11 - Windows 11 in React πŸ’»πŸŒˆβš‘ [Moved to: https://github.com/blueedgetechno/win11React]

d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

Fomantic-UI - Fomantic-UI is the official community fork of Semantic-UI

Mermaid - Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.

diagrams - :art: Diagram as Code for prototyping cloud system architectures

text-to-diagram-site - Compare syntax, layouts, outputs between languages for generating diagrams with text.

plantuml - Generate diagrams from textual description

graphviz-tutorial - how do I graphviz? oh I see!