d2
mermaid
d2 | mermaid | |
---|---|---|
96 | 147 | |
18,209 | 72,804 | |
8.0% | 1.4% | |
9.5 | 10.0 | |
14 days ago | 7 days ago | |
Go | TypeScript | |
Mozilla Public License 2.0 | MIT License |
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
- D2: Declarative Diagramming – A modern language that turns text to diagrams
- Mermaid ASCII Diagrams
- D2: A New Diagram Scripting Language That Converts Text to Diagrams Instantly
-
Exploring Goja: A Golang JavaScript Runtime
I work on the D2 project ([0]) and we switched from other Javascript runners (v8go) to Goja. Using a JS runtime with a dependency on cgo means your Go program loses the (huge) benefit of cross-compiling to different architectures, since at build time it gets linked to the architecture-specific libc.
If you're interested in some production code with Goja, this is our code for calling RoughJS [1] from Go in order to produce the hand-drawn diagram look: [2]
[0] https://github.com/terrastruct/d2
- NMAP-formatter: convert NMAP results to HTML, CSV, JSON, graphviz (dot), SQLite
- Penrose – Penrose
-
Pikchr: A PIC-like markup language for diagrams in technical documentation
While not embedded in markdown, I like d2 [1]. I can use it with org-babel to embed and view the diagrams on emacs. After using graphviz for years, the visual output seems more polished to me. With that said, I want to give pikchr a try.
[1]:https://d2lang.com/
- Ask HN: How do you build diagrams for the web?
-
Documentation as Code for Cloud - C4 Model & Structurizr
In the next post I'll deep-dive into the D2 language which also has a huge set of features. Stay tuned.
- Inkscape Cloud Architect
mermaid
-
My QA Tech Stack in 2025
Notion serves as a knowledge base and documentation hub for our whole company, and as QA we use it to document our practices and store some test data references. In particular, I love the ability to reference pages in other pages, creating a web of knowledge across all our documents - and with the native integration of Mermaid.js, creating flowcharts is fun and easy.
-
From Audio to Diagram
mindmap-to-mermaid: last agent transform the mind-map representation in a mermaid syntax ready for the visualization
-
LLM + Mermaid: How Modern Teams Create UML Diagrams Without Lucidchart
Today, tools like Mermaid and PlantUML have taken center stage, thanks to their ability to generate diagrams with text-based commands. Even better, AI-powered assistants like Claude, ChatGPT, and GitHub Copilot have made generating diagrams even easier. These tools work directly within a developer's environment, creating diagrams that are version-controlled and integrated seamlessly into workflows.
-
From Diagram to Code with Amazon Q Developer
The secret is that Q will not draw a diagram (like we would do on a piece of paper), I will ask Q to generate diagram as code with mermaid. So, my diagram will be a text that I can modify in a code editor and that I can reuse as a source for multiple tools. In this case I will use it later to rebuild my project.
-
Mermaid ASCII Diagrams
Some nits:
The "Example" buttons don't jump out at me; I found them but it took a while. Also consider labeling them with their point, e.g. "Example 3: Color"
If you change the input text to something well-formed, the graph seems to update immediately. But if you change it to something ill-formed, the graph doesn't update immediately — and then if you click "Generate" manually, it blanks the input box. Either this is a bug, or the "Generate" button doesn't do what I think it does (i.e. generate output). Again, adding a noun to the verb might help. Or just adding some usage information somewhere on the page.
For those like me who've never heard of "Mermaid," apparently it's like GraphViz's dot language but different. https://github.com/mermaid-js/mermaid
-
MySQL + Docker: Initial Setup
* Drawn by mermaid.
-
Draw Diagrams in READMEs using Mermaid
The Markdown format is a blessing for documentation. While many are aware it can create headings, tables, text styles, and lists, not many know about extensions available to the basic Markup language. Today, we'll learn about Mermaid.js. This powerful yet simple diagramming tool speaks to the aspirations of Markdown format.
-
Auth: Local-First Access Control
The diagrams in the first half of the article are made with tldraw https://www.tldraw.com/
The lower half look like the output from Mermaid https://mermaid.js.org/
-
Extending AstroJS Markdown Processing With Remark and Rehype Plugins
Lets, assume we want to add rendered Mermaid diagrams to our page by transforming the source code in fenced code blocks like the following:
- Mermaid: Diagramming and Charting Tool
What are some alternatives?
C4-PlantUML - C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
plantuml - Generate diagrams from textual description
d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
Mermaid - Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.
aws-icons-for-plantuml - PlantUML sprites, macros, and other includes for Amazon Web Services services and resources
diagrams - :art: Diagram as Code for prototyping cloud system architectures
draw.io - draw.io is a JavaScript, client-side editor for general diagramming.
excalidraw - Virtual whiteboard for sketching hand-drawn like diagrams
mermaid-cli - Command line tool for the Mermaid library
graphviz