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

@tomtom-org/maps-sdk

v0.47.0

Published

TomTom Maps for JavaScript

Downloads

3,605

Readme

TomTom Maps SDK for JavaScript

🎮 Examples | 📖 Documentation | 📋 API Reference | 🐙 GitHub

NPM Version

SDK Examples Collage

TomTom Maps SDK for JavaScript is a JavaScript library for building applications using TomTom location maps and services.

It leverages the power of MapLibre GL JS and GeoJSON to seamlessly integrate TomTom maps and services with convenient out-of-the-box support, while staying highly customizable and extensible.

⚠️ Public Preview Notice

We have released some capabilities in the Maps SDK under Public Preview to collect feedback from the community.

  • While our goal is to keep the design of the interface stable, breaking changes will occur, particularly in the earlier versions.
  • The versions will follow a 0.MAJOR.MINOR pattern for the time being.
  • Stay tuned with our release CHANGELOG.md files.

🚀 Getting Started

npm i @tomtom-org/maps-sdk

🤖 AI Coding Agent Skill

Install the SDK skill for AI coding agents (Claude Code, Cursor, GitHub Copilot, Windsurf, and many more) to get SDK-specific assistance in your coding agent:

npx skills add tomtom-international/maps-sdk-js --skill tomtom-maps-sdk-js

How it works

The SDK is split into three cooperating bundles — Map, Services, and Core. Services call TomTom APIs and return typed GeoJSON that Map modules consume directly. Core provides the shared config and types that bridge them. See How the SDK Works for a deeper dive.

import { TomTomConfig } from '@tomtom-org/maps-sdk/core';
import { TomTomMap, PlacesModule, RoutingModule } from '@tomtom-org/maps-sdk/map';
import { search, calculateRoute } from '@tomtom-org/maps-sdk/services';

// Configure once — all services and the map use this key
TomTomConfig.instance.put({ apiKey: 'YOUR_API_KEY' });

const map = new TomTomMap({ mapLibre: { container: 'map', center: [4.9, 52.4], zoom: 12 } });

// Services return GeoJSON — map modules consume it directly
const places = await PlacesModule.get(map);
places.show(await search({ query: 'coffee' }));

const routing = await RoutingModule.get(map);
routing.showRoutes(await calculateRoute({ locations: [[4.9, 52.4], [13.4, 52.5]] }));

📚 Documentation & Examples

📦 Bundles

| Bundle | Import path | Platforms | |--------|-------------|-----------| | Map — interactive maps in styles, with POIs, traffic, places, routes and geometries | @tomtom-org/maps-sdk/map | web | | ServicesGeoJSON services for places, routing, geocoding and more | @tomtom-org/maps-sdk/services | web, Node.js, React Native | | Core — shared config, types and utilities; no separate install needed | @tomtom-org/maps-sdk/core | web, Node.js, React Native |

📄 License

This repository uses a dual-licensing model.

SDK Packages and plugins - Proprietary License

The SDK packages (@tomtom-org/maps-sdk/* - core, services, map) and plugins (@tomtom-org/maps-sdk-plugin-*) are distributed under a proprietary license.

📜 LICENSE.txt - Full license terms

These packages require a TomTom API key and agreement to our terms of service.

Examples - Apache V2.0 License

All example code in the examples/ directory is open-source under the Apache V2.0 License.

📜 examples/LICENSE - Apache V2.0 License

The examples can be freely copied, modified, and used in your projects.

Source-Available Repository

This repository is source-available for transparency and learning. This is a read-only mirror - see CONTRIBUTING.md for how to provide feedback through issues and discussions.