Edges are the connections between nodes in a JSON Canvas file. They are stored in the top-levelDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/kepano/obsidian-skills/llms.txt
Use this file to discover all available pages before exploring further.
edges array and reference two existing nodes by their id values: a source (fromNode) and a target (toNode). Every edge must have a unique id, and the two node references are required. All other attributes — side anchors, arrow ends, color, and label — are optional and control the visual appearance of the connection.
Edge Attributes
| Attribute | Required | Type | Default | Description |
|---|---|---|---|---|
id | Yes | string | — | Unique identifier |
fromNode | Yes | string | — | Source node ID |
fromSide | No | string | — | top, right, bottom, or left |
fromEnd | No | string | none | none or arrow |
toNode | Yes | string | — | Target node ID |
toSide | No | string | — | top, right, bottom, or left |
toEnd | No | string | arrow | none or arrow |
color | No | canvasColor | — | Line color |
label | No | string | — | Text label on the edge |
Side Anchors
ThefromSide and toSide attributes control which face of a node an edge attaches to. When omitted, the application determines the closest anchor point automatically.
| Value | Description |
|---|---|
top | Attaches to the top edge of the node |
right | Attaches to the right edge of the node |
bottom | Attaches to the bottom edge of the node |
left | Attaches to the left edge of the node |
fromSide: "right" and toSide: "left").
Arrow Ends
ThefromEnd and toEnd attributes control whether an arrowhead appears at each end of the edge.
| Attribute | Default | Possible Values | Description |
|---|---|---|---|
fromEnd | none | none, arrow | Arrowhead at the source end |
toEnd | arrow | none, arrow | Arrowhead at the target end |
toEnd defaults to arrow so the edge points toward the target node, while fromEnd defaults to none. Set both to arrow for bidirectional edges, or set toEnd to none for an undirected line.
JSON Example
Validation
Workflow: Connecting Two Nodes
Identify the source and target node IDs
Read the existing canvas and locate the
id of the node you want to connect from and the node you want to connect to.Generate a unique edge ID
Create a new 16-character lowercase hex string that does not collide with any existing node or edge ID in the file.
Optionally set sides and label
Add
fromSide and toSide to anchor the edge to specific faces of each node. Add a label string for descriptive text displayed along the edge.