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

@maimaps/react-native

v0.1.1

Published

Maimaps React Native SDK: MaimapsMapView (@maplibre/maplibre-react-native), camera and route helpers, and search/routing/geocoding hooks over @maimaps/js.

Readme

@maimaps/react-native

React Native bindings for the Maimaps platform: a MapLibre React Native map view wired to the Maimaps engine, camera and route helpers, and hooks for search, routing, reverse geocoding, and point details. Built on @maimaps/js (re-exported in full).

Install

npm install @maimaps/react-native @maimaps/js @maplibre/maplibre-react-native

Peer dependencies: react >= 18, react-native >= 0.74, @maplibre/maplibre-react-native ^10.

@maplibre/maplibre-react-native contains native code — follow its installation and platform setup guide (Expo config plugin or bare iOS/Android setup). Expo Go is not supported; use a development build.

Quickstart

import { MaimapsMapView, MaimapsProvider } from '@maimaps/react-native';

export function App() {
  return (
    <MaimapsProvider apiKey="mk_test_…">
      <MaimapsMapView
        style={{ flex: 1 }}
        styleMode="light"
        camera={{ centerCoordinate: [3.3792, 6.5244], zoomLevel: 12 }}
      />
    </MaimapsProvider>
  );
}

The style URL is built from the client's styleUrl() with the API key in the URL (?key=…) — native map views cannot set per-request headers, and the engine's /sdk/styles response references /sdk/ tile/sprite/glyph URLs that carry the key the same way.

API

  • <MaimapsProvider apiKey environment? apiBaseUrl? mapBaseUrl?> — owns the MaimapsClient (useMaimaps() returns it).
  • <MaimapsMapView styleFamily? styleMode? camera? myLocationEnabled? followUserLocation? …MapViewProps> — wraps MapView; camera renders a <MaimapsCamera> child for you. myLocationEnabled shows the user-location puck (dot + heading indicator) and followUserLocation makes the camera track the user (merged into camera).
  • <MaimapsCamera> / <MaimapsUserLocation> — passthroughs of MapLibreRN's Camera and UserLocation for full control.
  • <RouteShape coordinates color? width? id?> — GeoJSON ShapeSource + LineLayer for a route line. Coordinates are [longitude, latitude]; flip decodePolyline output: decodePolyline(geometry).map(([lat, lng]) => [lng, lat]).
  • Hooks: useSearch(), useRoute(), useReverseGeocode(), usePointDetails(){ data, error, loading, execute(params) } with stale-response guarding.
  • Pure helpers: buildStyleURL(client, { styleFamily, styleMode }), routeFeature(coords), routeLineLayerStyle(color?, width?), resolveCameraProps(camera, followUserLocation).

For myLocationEnabled the app must declare the platform location permission itself — ACCESS_FINE_LOCATION in the Android manifest, NSLocationWhenInUseUsageDescription in the iOS Info.plist — and request it before showing the map (e.g. with PermissionsAndroid or a permissions library). Without permission the map renders without the puck.

See examples/react_native_basic in this repo (requires a development build).