Home | D2 Documentation
d2lang.com
external-link
D2 is a modern DSL that turns text to diagrams.

Doesn’t look too bad, I doubt it will dislodge graphviz/dot any time soon, though :)

@dabe@programming.dev
link
fedilink
English
21Y

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

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

Can D2 do flowchart aka activity diagram in PlantUML?

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

Oops i can’t read.

Flowcharts / activity diagrams seem well supported too, though.

@lowleveldata@programming.dev
link
fedilink
English
1
edit-2
1Y

Does it? I looked through the document and didn’t find it. It seems to be more focus on state diagram / component diagram.

Might just be my ignorance- if it has boxes connected with directional arrows it does everything I need a flow chart to do

@realz@lemmy.world
link
fedilink
English
11Y

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

how does this compare to mermaid or plantuml?

@afruitpie@lemmy.world
creator
link
fedilink
English
21Y

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.

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

That’s text in the sense that html is text.

Create a 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



  • 1 user online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1.11K users / 6 months
  • 1 subscriber
  • 1.21K Posts
  • 17.8K Comments
  • Modlog