Mermaid is a domain specific language (DSL) that is used to generate graphs an diagrams. Mermaid is modular, portable and efficient.
Learning a little bit of mermaid is perhaps the highest ROI learning activity I've done in years. Easier, quicker communication about technical ideas - for me it's been a game changer that has made it much easier to get buy in on ideas.
- hamandcheese (HN)
Mermaid's single biggest value prop for me is its ability to connect nodes "well enough" without me needing to fiddle with it. Sometimes I want to ("if I were doing it by hand, I'd put that over there", etc), but I love that it just works. Also that I can encode diagrams in text, so I get all of the tooling that we've developed around text. Feels so obvious in hindsight.
- xavdid (HN)
graph TD A[Client] --> B[Load Balancer] B --> C[Server1] B --> D[Server2]
Syntax:
graph TD
A[Client] --> B[Load Balancer]
B --> C[Server1]
B --> D[Server2]
And here is another:
graph TD A[Client] -->|tcp_123| B B(Load Balancer) B -->|tcp_456| C[Server1] B -->|tcp_456| D[Server2]
A pie chart:
pie title PIE "Pie" : 75 "Not Pie" : 25
More examples at mermaid.js.org