logoalt Hacker News

Myrmornistoday at 3:21 PM4 repliesview on HN

https://d2lang.com/ is a nicer language than Mermaid with much nicer visual appearance. It would be great if it became more widely supported.


Replies

neuronexmachinatoday at 4:17 PM

I agree that it's nicer and more powerful, but it's a little concerning it hasn't had any commits in the past 6 months: https://github.com/terrastruct/d2/commits/master/

show 1 reply
erajasekartoday at 3:41 PM

I reached the same conclusion after comparing diagram-as-code tools — D2 feels cleaner and more expressive than Mermaid.

I’ve been working on an AI diagramming tool built around D2: https://aidiagrammaker.com/ You describe a system in plain English, and it generates architecture diagrams, flowcharts, and sequence diagrams in D2.

Edits can be made either directly in the D2 code or via a context-aware editor.

lugaotoday at 3:23 PM

Does it produce real svgs as opposed to foreign object html in svg mess that mermaid compilers produce?

growrowtoday at 3:23 PM

What makes it nicer?

show 1 reply