ors-client
TypeScript
// Overview
Modern, type-safe wrapper for the OpenRouteService API with zero runtime dependencies. Provides comprehensive coverage of routing, geocoding, distance matrices, and optimization services. Features automatic throttling, detailed error handling, and full TypeScript support for all ORS services.
// 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.