Edges
Edges represent connections and relationships between elements — API calls, data flow, dependencies, or any other relationship.
Syntax
Section titled “Syntax”edge from="<source-id>" to="<target-id>" [label="<text>"] [style="<style>"] [color="<hex>"]Attributes
Section titled “Attributes”| Attribute | Required | Description |
|---|---|---|
from |
Yes | ID of the source node, group, or table column. |
to |
Yes | ID of the target node, group, or table column. |
label |
No | Text label displayed along the edge. |
style |
No | Line style: solid (default), dashed, or animated. |
color |
No | Edge color as a hex code. |
Basic Edge
Section titled “Basic Edge”edge from="web" to="api"Labeled Edge
Section titled “Labeled Edge”edge from="web" to="api" label="HTTPS"edge from="api" to="db" label="SQL Queries"Edge Styles
Section titled “Edge Styles”Solid (default)
Section titled “Solid (default)”edge from="a" to="b" style="solid"Dashed
Section titled “Dashed”Use dashed edges for optional or async connections:
edge from="api" to="cache" style="dashed" label="Cache Lookup"Animated
Section titled “Animated”Use animated edges for active data flow or streaming:
edge from="producer" to="kafka" style="animated" label="Events"edge from="kafka" to="consumer" style="animated" label="Stream"Colored Edges
Section titled “Colored Edges”edge from="a" to="b" color="#4ecdc4" label="CDC"edge from="c" to="d" color="#ff6b6b" label="Error"Edges to Table Columns
Section titled “Edges to Table Columns”Use dot notation to connect to a specific table column:
table id="api" { column id="users" title="Users API" { ... } column id="orders" title="Orders API" { ... }}
edge from="user-service" to="api.users"edge from="order-service" to="api.orders"Edge Validation
Section titled “Edge Validation”The parser validates that both from and to IDs reference existing elements. If an ID doesn’t exist, you’ll see a warning in the editor.