No coordinate work.
Use row, column, grid, or layered ELK layout. The diagram measures and arranges itself.
React Arch Diagrams · MIT
Use row, column, grid, or layered ELK layout. The diagram measures and arranges itself.
Connect to a node, side, or named port. Paths terminate on rectangle and ellipse boundaries.
Draw paths with the included CSS. No animation framework is required.
Small, explicit API
Nodes and relationships stay reviewable. Geometry is derived. Use the headless core, React renderer, or lazy ELK adapter independently.
View exported API ↗const diagram = defineDiagram({
layout: layouts.layered({ direction: "right" }),
nodes: [
node("client", { label: "Client" }),
node("gateway", { label: "Gateway" }),
node("database", { label: "Database", shape: "ellipse" })
],
edges: [
edge("request", "client", "gateway", {
route: routes.orthogonal("horizontal"),
animated: "draw"
}),
edge("persist", "gateway", "database", {
route: routes.straight(),
animated: "draw"
})
]
});
<Diagram {...diagram} />;