finds.dev← search

// the find

maplibre/maplibre-gl-directions

★ 155 · TypeScript · MIT · updated Jun 2026

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

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.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →