Introduction
Custom edges for React Flow that never intersect with other nodes, using grid-based A* pathfinding.

Install
With npm:
npm install @tisoap/react-flow-smart-edge
With yarn:
yarn add @tisoap/react-flow-smart-edge
This package requires React Flow v12+ (@xyflow/react).
What you get
SmartBezierEdge: smart equivalent to React Flow'sBezierEdgeSmartStraightEdge: smart equivalent toStraightEdgeSmartStepEdge: smart equivalent toStepEdgeSmartSmoothStepEdge: smart equivalent toSmoothStepEdgeSmartSimpleBezierEdge: smart equivalent toSimpleBezierEdgeSmartFloatingEdge: floating edges example with obstacle routingSmartEditableEdge: editable edge example with pathfinding between segmentsSmartCheckpointEdge: fixed waypoints fromedge.data.checkpoints(library-only; no React Flow example)createSmartEdge: configure presets at module scopegetSmartEdge: build fully custom smart edgesSmartEdgeBatchRoutingProvideranduseSmartEdgeRoute: route large graphs off the main thread on a Web Worker
Support
Like this project? Buy me a coffee or sponsor on GitHub.
Next steps
- Quick start to wire up your first smart edge
- Edge types to compare presets with live demos
- Storybook on Chromatic for the full interactive story catalog