> ## Documentation Index
> Fetch the complete documentation index at: https://iso-topology.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect nodes, ports, and routes

> Choose connector routing, add labels and ports, and understand explicit waypoint constraints.

A connector records a relationship between stable part IDs. Add an arrow when direction matters, and use a short label to explain the traffic.

## Add a connection

Start from the [starter YAML](../assets/first-diagram.yaml). Its connector list includes:

```yaml theme={null}
connectors:
  - from: api
    to: db
    label: query
    routing: orthogonal
    arrow: triangle
```

This is a fragment inside `nodes.scene`. Render the full document to inspect the line and label together.

## Choose the route

| Routing | Use it for | Check afterwards |
| - | - | - |
| `straight` | A direct connection with an open path | Does it pass through another body? |
| `orthogonal` | Legs aligned to the isometric ground axes | Are the elbow and label clear? |
| `orthogonal2` | Obstacle-aware routing around nearby objects | Does the full result remain readable? |
| `bezier` | An intentionally curved relationship | Does the curve communicate direction clearly? |

For asynchronous traffic, add `stroke: {dash: "6 4"}` to the connector. Keep this convention consistent within a diagram.

## Pick a port in Studio

Open a YAML scene with `isotopo serve input.yaml`. Hover a node, drag one displayed port to a port on another node, and release. The edit writes an explicit port reference and uses `orthogonal2` routing.

Port connections work in isometric and plan views. Segment dragging is supported in isometric view; plan segment dragging is not yet supported.

## Move a segment deliberately

Drag an unambiguous visible segment in the isometric view. Release commits the preview and creates an undo step. Escape cancels the gesture. Explicit `waypoints3d` preserve the chosen world-space path, so later automatic repair may leave it unchanged.

Manual paths can still intersect bodies. After moving nodes or groups, inspect authored waypoints and run [quality checks](https://iso-topology.mintlify.site/guides/quality.md). Full fields are in the [YAML reference](https://iso-topology.mintlify.site/reference/dsl-yaml.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.