2

D2 Tour (alpha)

 1 year ago
source link: https://d2-lang.com/tour/intro
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

D2 Tour (alpha)

D2 is a domain-specific language (DSL) that stands for Declarative Diagramming. Declarative, as in, you write in text what you want diagrammed, we generate it.

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

declarative diagramming example

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.

It's currently in alpha, during which it's only housed on Terrastruct, which provides the most well-supported interface (IDE) for it. Once we have a stable v1, we'll release and continue development of it in open source and make local options available.

See future plans for more.

caution

The D2 language is experimental. Stability and backwards compatibility is not guranteed.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK