Nodes
Nodes represent individual components in your architecture — services, databases, clients, or any other building block.
Syntax
Section titled “Syntax”node id="<id>" title="<title>" [icon="<url>"] [color="<hex>"] [shape="<shape>"]Or with a content block:
node id="<id>" title="<title>" [icon="<url>"] [color="<hex>"] [shape="<shape>"] { Line 1 Line 2}Attributes
Section titled “Attributes”| Attribute | Required | Description |
|---|---|---|
id |
Yes | Unique identifier. Used by edges and parent references. |
title |
Yes | Display label shown on the node. |
icon |
No | URL to an icon image (SVG recommended). |
color |
No | Border color as a hex code (e.g., #8b83e8). |
fill |
No | Node background color. |
textColor |
No | Node text color. |
borderStyle |
No | Border style: solid, dashed, dotted, or none. |
shape |
No | Node shape. Defaults to rectangle. See Shapes. |
parent |
No | ID of the group or table column to nest this node inside. |
width |
No | Node frame width in pixels (56–2000). Defaults to the shape’s compact width. |
height |
No | Node frame height in pixels (56–2000). Defaults to the shape’s compact height. |
Node Size
Section titled “Node Size”Standard rectangles start at 180 × 96. Other shapes use compact defaults suited to their outlines. Adding text never changes their dimensions. Icons and titles remain visible, with a short preview of the details; full text is available in the inspector and source.
Use Size to content in the inspector to expand a node once and save the resulting width and height. This does not enable automatic growth. Later text changes keep those dimensions until you resize or use the action again.
In Edit mode, hover or select a node and drag any corner handle. For precise dimensions, use the inspector’s compact W and H fields. Dimensions are saved in the diagram:
node id="api" title="API Server" shape="server" width=320 height=240Shape drawings keep their proportions inside the frame. Circles, gears, and hubs use square frames; if their dimensions differ, the larger value sets both sides. Right-click the node and choose Reset size to remove both attributes. Auto-arrange changes positions and preserves custom sizes. Groups and tables retain their own content layout.
Basic Node
Section titled “Basic Node”node id="api" title="API Server"Node with Icon and Shape
Section titled “Node with Icon and Shape”node id="web" title="Web App" icon="https://cdn.simpleicons.org/react" shape="browser"Node with Content Block
Section titled “Node with Content Block”Content blocks add descriptive lines below the node title:
node id="auth" title="Auth Service" icon="https://cdn.simpleicons.org/auth0" shape="shield" { OAuth 2.0 JWT Tokens Rate Limiting}Node with Color
Section titled “Node with Color”node id="cache" title="Redis Cache" color="#ffebee" shape="cylinder"Parent Reference
Section titled “Parent Reference”Instead of nesting a node inside a group block, you can use the parent attribute:
group id="backend" title="Backend Services"node id="api" title="API" parent="backend"node id="worker" title="Worker" parent="backend"This is equivalent to:
group id="backend" title="Backend Services" { node id="api" title="API" node id="worker" title="Worker"}ID Rules
Section titled “ID Rules”- IDs must be unique across the entire diagram
- IDs can contain letters, numbers, hyphens, and underscores
- IDs are case-sensitive
- Duplicate IDs will produce a parser warning