Software architecture

8.13

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

Other examples

📖