Example

As an example, the following DSL can be used to create a software architecture model and an associated view that describes a user using a software system.

workspace {

    model {
        u = person "User"
        ss = softwareSystem "Software System"

        u -> ss "Uses"
    }

    views {
        systemContext ss {
            include *
            autolayout lr
        }
    }
    
}

And the Structurizr browser-based renderer produces the following diagram.

Example system context diagram