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-react-native

v1.1.2

Published

Scoova map SDK for React Native — wraps @MapLibre/@maplibre/maplibre-react-native with Scoova tile/style defaults, route + marker helpers, and standalone static-map URL builders.

Readme

@scoova/maps-react-native

Scoova map SDK for React Native. Two things in one package:

  1. MapLibre helpersDEFAULTS, buildInlineStyle, routeFeature, markerFeature, bboxOf to feed into @MapLibre/@maplibre/maplibre-react-native.
  2. Standalone static-map + style URL builders (staticMapUrl, staticMap, styleUrl) — pure functions, no peer deps, perfect for <Image> snapshots and share images.
npm install @scoova/maps-react-native @MapLibre/@maplibre/maplibre-react-native

@MapLibre/@maplibre/maplibre-react-native is only required if you render the live map. The static-map and style URL helpers work standalone.

Live map

import { MapView, Camera, ShapeSource, LineLayer, CircleLayer } from '@MapLibre/@maplibre/maplibre-react-native';
import {
  DEFAULTS,
  routeFeature,
  markerFeature,
  styleUrlForLocale,
} from '@scoova/maps-react-native';

const route = routeFeature([[31.24, 30.04], [31.25, 30.05], [31.26, 30.06]]);
const marker = markerFeature({ lat: 30.04, lon: 31.24 });

<MapView styleURL={styleUrlForLocale('fr')} style={{ flex: 1 }}>
  <Camera centerCoordinate={[DEFAULTS.defaultCenter.lon, DEFAULTS.defaultCenter.lat]} zoomLevel={12} />

  <ShapeSource id="route" shape={route.shape}>
    <LineLayer id="route-casing" style={route.casingPaint} />
    <LineLayer id="route" style={route.linePaint} />
  </ShapeSource>

  <ShapeSource id="me" shape={marker.shape}>
    <CircleLayer id="me-circle" style={marker.circlePaint} />
  </ShapeSource>
</MapView>

Static map URL

import { Image } from 'react-native';
import { staticMapUrl } from '@scoova/maps-react-native';

const uri = 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' }],
  locale: 'fr',
});

<Image source={{ uri }} style={{ width: 300, height: 200 }} />

Style URL

import { styleUrl } from '@scoova/maps-react-native';

<MapView styleURL={styleUrl('scoova-dark', { apiKey: 'sk_live_…', locale: 'es' })} />

API

MapLibre helpers

  • DEFAULTSstyleUrl, tilesUrl, defaultCenter, brand colors
  • styleUrlForLocale(locale)DEFAULTS.styleUrl + ?locale=…
  • buildInlineStyle(opts) — v8 style spec for <MapView mapStyle={...} />
  • routeFeature(coords, opts?) — GeoJSON + paint props for two LineLayers
  • markerFeature(latLng, opts?) — GeoJSON + paint props for a CircleLayer
  • bboxOf(points)[[minLon, minLat], [maxLon, maxLat]]

Static + style helpers

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

Tests

npm test