A* driving routes over a compact road graph. No routing API, ~2 ms per city route.
$ npx shadcn@latest add @highcommand/road-routerCopies the source into your project and pulls in what it needs (1 other item). First time? Add the registry to components.json.
createRoadRouter(data: RoadGraphData): RoadRouterBuilds a router from graph data. Decoding is O(size); routes are cached.
Install this free piece now; the Pro pieces drop in on top of it, in the same app. Pro is $79 once.