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

@scoova/maps

v1.1.2

Published

Scoova map SDK for the web — Web map renderer with Scoova tile/style defaults, route overlays, marker helpers, and static-map URL builders.

Readme

@scoova/maps

Scoova map SDK for the web. Two things in one package:

  1. A thin wrapper around MapLibre GL JS (ScoovaMap) with Scoova tile/style URLs baked in, plus addRoute() / addMarker() helpers for the two things every Scoova app does.
  2. Standalone static-map and style URL builders (staticMapUrl, staticMap, styleUrl) that don't require constructing a ScoovaMap — drop them into <img> tags, OG share images, email templates, PDF receipts, or server-side renders.

Install

npm install @scoova/maps maplibre-gl

maplibre-gl is only needed if you use the live ScoovaMap wrapper. The static-map / style URL helpers are pure functions with no peer deps.

Interactive map

import maplibregl from 'maplibre-gl';
import 'maplibre-gl/dist/maplibre-gl.css';
import { ScoovaMap } from '@scoova/maps';

const map = new ScoovaMap({
  container: 'map',
  MapLibre: maplibregl,
  // Defaults: center Cairo, zoom 12, Scoova default style.
  locale: 'fr',  // optional — localises place labels via ?locale=fr
});

map.addRoute({ coords: [[31.24, 30.04], [31.25, 30.05], [31.26, 30.06]] });
map.addMarker({ position: { lat: 30.04, lon: 31.24 } });
map.flyTo({ lat: 30.06, lon: 31.25 }, 14);

Static map URL (no MapLibre needed)

import { staticMapUrl } from '@scoova/maps';

const url = staticMapUrl({
  apiKey: 'sk_live_…',
  style: 'scoova-light',
  width: 600,
  height: 400,
  center: { lat: 30.0444, lon: 31.2357 },
  zoom: 13,
  markers: [
    { lat: 30.0444, lon: 31.2357, color: '#FF6A00' },
  ],
  paths: [
    { coordinates: [
        { lat: 30.04, lon: 31.24 },
        { lat: 30.05, lon: 31.25 },
        { lat: 30.06, lon: 31.26 },
      ], stroke: '#0EA5E9', width: 4 },
  ],
  locale: 'fr',
});

// <img src={url} width="600" height="400" />

Style URL (live MapLibre map without ScoovaMap)

import maplibregl from 'maplibre-gl';
import { styleUrl } from '@scoova/maps';

new maplibregl.Map({
  container: 'map',
  style: styleUrl('scoova-dark', { apiKey: 'sk_live_…', locale: 'es' }),
});

API

Live map

  • new ScoovaMap({ container, MapLibre, center?, zoom?, style?, locale? })
  • addRoute({ coords, color?, casingColor?, alternate? })
  • removeRoute(id?)
  • addMarker({ position, color?, radius? })
  • removeMarker(id?)
  • flyTo(point, zoom?)
  • fitBounds(points, padding?)

Static + style helpers

  • staticMapUrl({ style, width, height, center?, zoom?, markers?, paths?, padding?, apiKey, apiBase?, locale? }): string
  • staticMap(opts): Promise<Blob> — same options + fetch
  • styleUrl(styleName, { apiKey, tilesBase?, locale? }): string

Constants & pure helpers

  • DEFAULTSstyleUrl, tilesUrl, defaultCenter, brand colors
  • DEFAULT_API_BASE, DEFAULT_TILES_BASE
  • buildInlineStyle(opts), routeLayerSpec(opts), markerSourceSpec(opts)

Tests

npm test