Skip to content

Edges

Edges represent connections and relationships between elements — API calls, data flow, dependencies, or any other relationship.

edge from="<source-id>" to="<target-id>" [label="<text>"] [style="<style>"] [color="<hex>"]
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.
edge from="web" to="api"
edge from="web" to="api" label="HTTPS"
edge from="api" to="db" label="SQL Queries"
edge from="a" to="b" style="solid"

Use dashed edges for optional or async connections:

edge from="api" to="cache" style="dashed" label="Cache Lookup"

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"
edge from="a" to="b" color="#4ecdc4" label="CDC"
edge from="c" to="d" color="#ff6b6b" label="Error"

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"

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.