finds.dev

maplibre/maplibre-gl-directions

A plugin to show routing directions on a MapLibre GL JS map

View on GitHubHomepage ↗

★ 155TypeScriptMITupdated Jun 2026

// the take

A MapLibre plugin that adds interactive routing directions to maps, supporting OSRM and Mapbox Directions API backends. Fills the gap left when mapbox-gl-directions became proprietary — if you're building on MapLibre, this is the obvious first thing to reach for when you need waypoint-based routing.

Full TypeScript with shipped types, so IDE autocomplete works and you're not guessing at the API. The multi-profile routing hack (walk + bus + walk in one request) is genuinely clever workaround for a real backend limitation. Interaction model is complete out of the box: click to add, drag to move, drag the route line to insert waypoints. Actively maintained under the maplibre org, which means it tracks MapLibre GL JS releases.

155 stars and 19 forks after several years is a sign this is a niche tool with a small community — bugs you hit may stay open. The README itself says 'write tests' is a future plan, meaning there's no test suite right now; adopt this and you're trusting the demos. Only two controls exist (loading indicator and bearings) despite promises of more. No server-side routing — you still need to stand up or pay for OSRM/Mapbox/Valhalla yourself, which is the actual hard part for most projects.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
155
Forks
19
Language
TypeScript
License
MIT
Last commit
13 Jun 2026

// nearby

If maplibre-gl-directions isn't quite it.

All repos →