12 points

how does this compare to mermaid or plantuml?

permalink
report
reply
4 points

I’ve been using D2 for my diagrams for about a month now. The D2 syntax is the most natural to me, but finding online help for Mermaid and PlantUML is easier.

permalink
report
parent
reply
4 points

Mermaid is inuded by default in some markdown flavours, you can use it on github, mkdocs websites and probably others.

permalink
report
parent
reply
4 points

This feels like a more modern and feature rich version of PlantUML. Very interesting

permalink
report
reply
1 point

Can D2 do flowchart aka activity diagram in PlantUML?

permalink
report
parent
reply
4 points

Looks like it. https://d2lang.com/tour/sequence-diagrams

I’m impressed with the grid diagrams too. I’m not sure plantUML has anything equivalent.

It doesnt support all the diagram types plantUML does (for now) but it has the only two i ever used anyway. The tooling seems more robust and modern. I think I have a better chance getting my coworkers to try this one

permalink
report
parent
reply
3 points

Oops i can’t read.

Flowcharts / activity diagrams seem well supported too, though.

permalink
report
parent
reply
3 points

For VS Code users, there’s also the terrastruct.d2 extension that provides language support for .d2 files. It even let’s you use the preview feature to watch live changes!

If anyone is interested, it would be great to have a write up on d2 and the extension over at !vscode@programming.dev

permalink
report
reply
2 points

This looks crazy cool… one of those projects that I really wish I had a use for so I could try it lol

permalink
report
reply
2 points

I would love to use it to create AWS architecture diagrams.

permalink
report
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3.1K

    Monthly active users

  • 1.8K

    Posts

  • 30K

    Comments