Structurizr
Software architecture models as code
Structurizr builds upon “diagrams as code”, allowing you to create multiple software architecture diagrams from a single model.
There are a number of tools for creating Structurizr compatible workspaces, with the Structurizr DSL
being the recommended option for most teams.
This Structurizr DSL example creates two diagrams, based upon a single set of elements and relationships.
workspace {
model {
user = person "User"
softwareSystem = softwareSystem "Software System" {
webapp = container "Web Application" {
user -> this "Uses"
}
container "Database" {
webapp -> this "Reads from and writes to"
}
}
}
views {
systemContext softwareSystem {
include *
autolayout lr
}
container softwareSystem {
include *
autolayout lr
}
theme default
}
}