npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cercalia/sdk

v1.0.1

Published

Pure TypeScript SDK for Cercalia Web Services

Readme

Cercalia SDK for TypeScript

The official, type-safe TypeScript SDK for Cercalia web services. Built by Nexus Geographics, this SDK enables you to integrate powerful location-based features like geocoding, routing, and POI search into your Node.js and browser applications.

Cercalia Nexus Geographics License npm version

🌟 About Cercalia

Cercalia is a comprehensive SaaS geospatial platform developed by Nexus Geographics, a leading company in geospatial technology and innovation. Cercalia provides enterprise-grade mapping, geocoding, routing, and location intelligence services, with exceptional coverage of European markets and advanced spatial analysis capabilities.

Trusted by leading enterprises across logistics, emergency services, fleet management, and smart city solutions, Cercalia delivers the precision and reliability that mission-critical applications demand.

Why Choose Cercalia?

  • Global Coverage: Based on TomTom content, enriched with OpenStreetMap data
  • European Leadership: Unmatched data quality and coverage across all of Europe, with particular strength in Western, Central, and Southern regions—ideal for pan-European applications and businesses seeking reliable, up-to-date geospatial information
  • Live & Historical Traffic Data: Global coverage of road incidents, congestion, closures, traffic-based ETAs, and routing with live or expected traffic
  • Enterprise-Ready: Built for scale with high availability, performance SLAs, and dedicated support
  • Comprehensive Platform: 12+ geospatial services accessible through modern, type-safe SDKs
  • Innovation Leader: Powered by Nexus Geographics' 25+ years of GIS expertise

Learn More:

✨ Features

  • 🛡️ Type-Safe: Built with TypeScript strict mode—zero any types, full IntelliSense support
  • 🌐 Universal: Works seamlessly in Node.js (ESM/CommonJS) and browsers (via bundler)
  • 📦 Modern Architecture: Clean, modular design with tree-shakeable exports
  • 🔄 Comprehensive Services: Access 12+ geospatial services
  • ⚡ Resilient: Built-in retry logic and robust error handling
  • 📝 Well-Documented: Inline JSDoc comments and comprehensive examples

🚀 Installation

npm install @cercalia/sdk
# or
yarn add @cercalia/sdk
# or
pnpm add @cercalia/sdk

🔑 Getting Started

1. Get Your API Key

Register for a free Cercalia account and obtain your API key:

👉 Register here

2. Quick Example

import { setConfig, GeocodingService, RoutingService } from '@cercalia/cercalia-sdk';

// Configure the SDK
setConfig({
  cercalia: {
    apiKey: 'YOUR_API_KEY_HERE',
    baseUrl: 'https://lb.cercalia.com/services/v2/json'
  }
});

// Geocode an address
const geocoding = new GeocodingService();
const locations = await geocoding.geocode({
  street: 'Paseo de la Castellana, 1',
  locality: 'Madrid',
  countryCode: 'ESP'
});

console.log(`Found: ${locations[0].name}`);
console.log(`Coordinates: ${locations[0].coord.lat}, ${locations[0].coord.lng}`);

// Calculate a route
const routing = new RoutingService();
const route = await routing.calculateRoute(
  locations[0].coord,
  { lat: 41.387015, lng: 2.170047 } // Barcelona
);

console.log(`Distance: ${(route.distance / 1000).toFixed(2)} km`);
console.log(`Duration: ${(route.duration / 60).toFixed(0)} minutes`);

Security Note: Never expose your API key in client-side code for production applications. Use environment variables or a backend proxy to authenticate requests.

🛠️ Available Services

| Service | Description | Class | |---------|-------------|-------| | Geocoding | Convert addresses to geographic coordinates | GeocodingService | | Reverse Geocoding | Get addresses from coordinates | ReverseGeocodingService | | Routing | Calculate optimal routes with turn-by-turn directions | RoutingService | | Suggest | Autocomplete and place search suggestions | SuggestService | | POI Search | Find Points of Interest near locations | POIService | | Isochrones | Calculate reachability areas (drive time/distance) | IsochroneService | | Proximity | Distance calculations and nearest neighbor search | ProximityService | | Geofencing | Point-in-polygon and spatial boundary operations | GeofencingService | | Static Maps | Generate static map images | StaticMapsService | | Snap to Road | Match GPS traces to road network | SnapToRoadService | | Geoment | Geographic element queries and geometries | GeomentService |

📚 Documentation

🤝 Support & Community

Need help or have questions?

📄 License

This SDK is provided for use with Cercalia web services. Please refer to your Cercalia service agreement for terms of use.