ors-client
TypeScript
// Overview
Type-safe wrapper for the OpenRouteService API with no runtime dependencies. Covers routing, geocoding, distance matrices and optimisation.
// Built with
TypeScriptNode.jsBunrouting
// The problem
Calling the OpenRouteService API directly means hand-rolling request shapes, error handling and rate limiting for every endpoint, with no type safety.
// Approach
- A fully typed wrapper covering routing, geocoding, distance matrix and optimisation.
- Automatic throttling and detailed error handling built in.
- Zero runtime dependencies, so it stays light wherever it is dropped.
// Engineering challenges
- Typing every ORS endpoint accurately without leaking the API's quirks.
- Handling rate limits transparently so callers do not have to.
- Staying dependency-free while still ergonomic.