Software architecture

5.14'23

Structurizr DSL

基于 C4 model,使用文本化的领域特定语言(DSL),创建可视化的软件架构模型。

Example

workspace {

    model {
        user = person "User"
        softwareSystem = softwareSystem "Software System"

        user -> softwareSystem "Uses"
    }

    views {
        systemContext softwareSystem {
            include *
            autolayout
        }

        theme default
    }
    
}

Result

https://structurizr.com/dsl?example=getting-started

Other examples

📖