How it works
-
01
Layering
Blocks are distributed into levels following link direction: sources on top, their dependencies below.
-
02
Crossing reduction
The order of blocks within each layer is adjusted to limit link crossings, then anchors are fanned out.
-
03
A server-side computation
The client sends the geometry to POST /api/layout and gets positions back: the same implementation serves the editor, import and the MCP tool.
Technical specifications
Use cases
Tidy an imported diagram without geometry
Get a readable org chart or architecture diagram instantly
Make a Claude-generated diagram presentable
Frequently asked questions
Is the result always the same?+
Yes: the algorithm is deterministic, the same diagram gives the same layout.
Can I undo the layout?+
Yes, it undoes like any other change, and history keeps the previous state.
Related features
AI generation via MCP
Chart’s HUB exposes an MCP server: Claude Code or Claude Desktop can create and extend your diagrams from a conversation.
EditingOrg charts
Place people and teams and connect them: the hierarchy realigns into levels as soon as you add or move someone.
EditingLink routing and animated flows
A link is more than a line: it recomputes itself, avoids shapes on its path and can animate to show who talks to whom.