Wednesday, December 21, 2022

D2 language, open source alternative to PlantUML

D2 Tour

D2 is a diagram scripting language that turns text to diagrams. It stands for Declarative Diagramming. Declarative, as in, you describe what you want diagrammed, it generates the image.

For example, you provide this input on the left, and you get back the output on the right.

declarative diagramming example

CLI example

D2 CLI

You can finish this tour in about 5-10 minutes, and at the end, there's a cheat sheet you can download and refer to. If you want just the bare essentials, Getting Started takes ~2 mins.



from Hacker News https://ift.tt/TrXkZpD

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.