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

@ingissa/navcore-mapbox

v1.0.12

Published

Mapbox GL adapter for NavCore — renderer and directions provider.

Readme

@ingissa/navcore-mapbox

Official Website

Mapbox Directions provider adapter for the NavCore navigation engine.

npm version License TypeScript


Overview

@ingissa/navcore-mapbox provides MapboxDirectionsProvider, an implementation of NavCore's DirectionsProvider interface targeting the Mapbox Directions API.

Key Capabilities

  • Direct NavCore integration: Directly compatible with createNavigationSession and createRoutePlan.
  • Automatic waypoint chunking: Transparently splits routes with more than 25 waypoints into chunks, querying each chunk and stitching geometry with the OVERLAP_1 strategy.
  • Configurable routing profiles: Supports driving, driving-traffic, cycling, and walking.

[!NOTE] @ingissa/navcore-mapbox is a routing directions provider only. It does not export a map renderer. For map rendering in React Native, use @rnmapbox/maps or react-native-maps directly in your application components by consuming state from useNavSelector().


Installation

npm install @ingissa/navcore-mapbox @ingissa/navcore-core

Peer Dependencies

  • @ingissa/navcore-core: ^1.0.9 (required)
  • @rnmapbox/maps: >=10.0.0 (optional, for React Native applications)

Quickstart

import { createNavigationSession } from '@ingissa/navcore-core';
import { MapboxDirectionsProvider } from '@ingissa/navcore-mapbox';

// Initialize Mapbox provider with your access token
const provider = new MapboxDirectionsProvider({
  accessToken: 'pk.eyJ1...',
  profile: 'driving-traffic', // 'driving' | 'driving-traffic' | 'cycling' | 'walking'
  maxWaypointsPerChunk: 25,   // Default: 25 (Mapbox API limit)
});

// Pass to a NavigationSession
const nav = createNavigationSession({
  provider,
  providerName: 'mapbox',
  engineOptions: { isDev: true },
});

// Fetch route and start navigation
const plan = await nav.navigate({
  origin: [2.3522, 48.8566],
  destination: [2.3009, 48.8741],
});

console.log(`Route loaded: ${plan.distanceM}m, duration: ${plan.durationS}s`);

Standalone Usage

import { MapboxDirectionsProvider } from '@ingissa/navcore-mapbox';

const provider = new MapboxDirectionsProvider({
  accessToken: process.env.MAPBOX_TOKEN!,
});

const result = await provider.getRoute([
  [2.3522, 48.8566],
  [2.3300, 48.8650],
  [2.3009, 48.8741],
]);

console.log('Coordinates:', result.geometry.length);
console.log('Distance in metres:', result.distance);
console.log('Duration in seconds:', result.duration);

Documentation


Licensing

Proprietary software. Copyright (c) 2026 Abdelnasser Aitabi. All rights reserved. No license is granted except by separate written agreement.