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 toSmoothStepEdgeSmartFloatingEdge— floating connection points (like React Flow's floating edges example)SmartEditableEdge— draggable waypoints with pathfinding between segmentscreateSmartEdge— configure presets at module scopegetSmartEdge— build fully custom smart edges
Support
Like this project? Buy me a coffee or sponsor on GitHub.
Next steps
- Quick start — wire up your first smart edge
- Edge types — compare presets with live demos
- Storybook on Chromatic — full interactive story catalog