d2

Install command:
brew install d2

Modern diagram scripting language that turns text to diagrams

https://d2lang.com/

License: MPL-2.0

Formula JSON API: /api/formula/d2.json

Formula code: d2.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
ventura
macOS on
Intel
sonoma
ventura
Linux ARM64
x86_64

Current versions:

stable 0.7.1
head ⚡️ HEAD

Depends on when building from source:

go 1.25.4 Open source programming language to build simple/reliable/efficient software

Analytics:

Installs (30 days)
d2 411
d2 --HEAD 2
Installs on Request (30 days)
d2 407
d2 --HEAD 2
Build Errors (30 days)
d2 1
Installs (90 days)
d2 7,270
d2 --HEAD 8
Installs on Request (90 days)
d2 7,264
d2 --HEAD 8
Installs (365 days)
d2 49,832
d2 --HEAD 57
Installs on Request (365 days)
d2 49,809
d2 --HEAD 57