d2

Modern diagram scripting language that turns text to diagrams

brewmacoslinux
Try with needOr install directly
Source

About

Modern diagram scripting language that turns text to diagrams

Commands

d2

Examples

Create a diagram from a D2 script file and output as SVG$ d2 script.d2 output.svg
Generate diagram with custom theme and watch for file changes$ d2 --theme 1 --watch script.d2 output.svg
Render D2 script to PNG format with specific layout engine$ d2 --layout elk script.d2 output.png