Skip to content

Groups

Groups are visual containers that organize related nodes together. They render as labeled boxes on the canvas and can be collapsed to hide their contents.

group id="<id>" title="<title>" [icon="<url>"] [color="<hex>"] {
# child nodes, groups, or tables
}
Attribute Required Description
id Yes Unique identifier.
title No Label displayed on the group header.
icon No URL to an icon image.
color No Border color as a hex code.
group id="backend" title="Backend Services" {
node id="api" title="API Server"
node id="worker" title="Background Worker"
}
group id="frontend" title="Client Apps" icon="https://cdn.simpleicons.org/googlechrome" {
node id="web" title="Web App" shape="browser"
node id="mobile" title="Mobile App" shape="mobile"
}

Groups can contain other groups for multi-level organization:

group id="platform" title="Platform" {
group id="services" title="Microservices" {
node id="users" title="User Service"
node id="orders" title="Order Service"
}
group id="data" title="Data Layer" {
node id="postgres" title="PostgreSQL" shape="cylinder"
node id="redis" title="Redis" shape="cylinder"
}
}

On the interactive canvas, groups can be collapsed by clicking the collapse toggle on the group header. This hides all child elements and shrinks the group to a compact representation, useful for managing complex diagrams.

Edges can connect nodes inside groups to nodes outside or inside other groups. The layout engine routes edges around group boundaries automatically.

group id="frontend" title="Frontend" {
node id="web" title="Web App"
}
group id="backend" title="Backend" {
node id="api" title="API"
}
edge from="web" to="api" label="HTTPS"