examples
Diagrams rendered with vhiz across three layout engines.
Microservices Architecture
$ vhiz diagram microservices.d2 --theme cool-classics
page https://vhiz.dev/diagram_7vM4M8Do
artifact https://vhiz.dev/diagram_7vM4M8Do/v/1/screen800x360@2x.png
format png size 800×360 @2x cost 1 credit balance 35
OAuth2 Token Flow
$ vhiz diagram oauth2-flow.mmd -s 550 --theme neutral
page https://vhiz.dev/diagram_7lev3ikD
artifact https://vhiz.dev/diagram_7lev3ikD/v/1/screen550x395@2x.png
format png size 550×395 @2x cost 1 credit balance 29
Git Branching Strategy
$ vhiz diagram git-branching.d2 -s 500 --theme terminal --format svg
page https://vhiz.dev/diagram_ibM6Gycf
artifact https://vhiz.dev/diagram_ibM6Gycf/v/1/diagram.svg
format svg size 500×150 cost 1 credit balance 25
CI/CD Pipeline
$ vhiz diagram ci-pipeline.mmd -s 450 --theme dark --background transparent
page https://vhiz.dev/diagram_NkXvOyiG
artifact https://vhiz.dev/diagram_NkXvOyiG/v/1/screen450x859@2x.png
format png size 450×859 @2x cost 1 credit balance 28
Kubernetes Pod Lifecycle
$ vhiz diagram k8s-lifecycle.d2 -s 450 --theme origami
page https://vhiz.dev/diagram_DJCdd8r9
artifact https://vhiz.dev/diagram_DJCdd8r9/v/1/screen450x434@2x.png
format png size 450×434 @2x cost 1 credit balance 26
Project Management Schema
$ vhiz diagram schema.mmd -s 500 --theme forest
page https://vhiz.dev/diagram_uCUUkqNh
artifact https://vhiz.dev/diagram_uCUUkqNh/v/1/screen500x630@2x.png
format png size 500×630 @2x cost 1 credit balance 27




