Skip to main content
The Vintr Node.js SDK is a small wrapper around the Vintr. API — a simple way to resolve aliases from Node.js or TypeScript, with built-in type declarations for autocomplete and type checking.

Installation

Create a client

Keep your secret key on your server. Never expose it in browser or client-side code.

Resolve an alias

Response

  • Address — available under location.address
  • Coordinates — available under location.geo, including precision_meters. altitude can be null when unavailable.
  • Instructions — available under location.instructions:
    • general — accessing the location
    • delivery — for deliveries
    • autonomous — for autonomous systems

TypeScript

Other exported types: Location, Address, Geo, Instructions.

Error handling

Complete example

Keep your API key private

Load your secret key from an environment variable rather than hardcoding it:
Never commit your secret key to a public repository or expose it to users.

API alternative

The SDK is optional. If you’re not using Node.js, or prefer raw HTTP requests, see the Quickstart for the API integration guide. The SDK is intentionally minimal: install it, create a client, resolve an alias.