https://structurizr.com/ and https://github.com/structurizr/dsl
- C4 DSL Extension - syntax highlighting and validation
https://dev.to/simonbrown/getting-started-with-structurizr-lite-27d0
Install Docker image:
docker pull structurizr/lite
Preview workspace diagrams:
docker run -it --rm -p 8080:8080 -v $PWD/diagrams:/usr/local/structurizr structurizr/lite
Navigate to http://localhost:8080 to view the workspace.
https://github.com/structurizr/cli
Install Docker image:
docker pull structurizr/cli
Export DSL:
docker run -it --rm -v $PWD/:/usr/local/structurizr structurizr/cli export -workspace diagrams/workspace.dsl -format {format} -output docs
json
- structurizr JSONplantuml
plantuml/c4plantuml
Export diagrams in PNG/SVG format manually or via CLI with puppeteer.
Note: Must have Structurizr Lite running locally.
Install Docker image:
docker pull extenda/structurizr-to-png
Generate diagram image(s):
docker run --rm -it -v $PWD/:/docs extenda/structurizr-to-png --path diagrams/workspace.dsl --render-with structurizr --output ../docs
See /docs for generated images.