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

@sigx/lynx-maps

v0.11.0

Published

Native map view for sigx-lynx (MKMapView on iOS, Google Maps on Android).

Readme

@sigx/lynx-maps

Native map view for sigx-lynx. Backed by:

📚 Documentation

Full guides, API reference and live examples → https://sigx.dev/lynx/modules/maps/overview/

  • iOSMKMapView (Apple Maps, no key required).
  • Androidcom.google.android.gms.maps.MapView (Google Maps, requires an API key — see setup below).

Closes signalxjs/lynx#84.

Install

pnpm add @sigx/lynx-maps
pnpm sigx prebuild

The autolinker picks up signalx-module.json from this package; prebuild regenerates GeneratedBehaviors.kt (Android) and GeneratedComponentRegistry.swift (iOS) so the <sigx-map> and <sigx-map-marker> tags are bound to their native UI classes.

Quick start

import { Map, MapMarker } from '@sigx/lynx-maps';

const region = {
    latitude: 59.3293,
    longitude: 18.0686,
    latitudeDelta: 0.1,
    longitudeDelta: 0.1,
};

export function MapScreen() {
    return (
        <Map
            region={region}
            showsUserLocation
            mapType="standard"
            class="flex-1"
            onRegionChange={(e) => console.log('region', e.detail.region)}
            onMarkerPress={(e) => console.log('marker', e.detail.id)}
        >
            <MapMarker
                coordinate={{ latitude: 59.3293, longitude: 18.0686 }}
                title="Stockholm"
                description="Sweden's capital"
                id="sthlm"
            />
        </Map>
    );
}

Props — <Map>

| Prop | Type | Notes | | --- | --- | --- | | region | MapRegion | { latitude, longitude, latitudeDelta, longitudeDelta }. The map snaps to this on every prop change — for "initial region only" semantics, pass it once and keep it in local state. | | showsUserLocation | boolean | Shows the blue location dot. iOS uses NSLocationWhenInUseUsageDescription (added automatically); Android requires ACCESS_FINE_LOCATION at runtime (declared in the manifest). | | mapType | 'standard' \| 'satellite' \| 'hybrid' | Base style. Default 'standard'. | | onRegionChange | (e) => void | Fires after the user pans/zooms or after a programmatic region change. Detail: { region }. | | onPress | (e) => void | User tapped the map (not on a marker). Detail: { coordinate }. | | onMarkerPress | (e) => void | User tapped a marker. Detail: { id, coordinate }. | | class, style, children | — | Standard Lynx props. Children should be <MapMarker> elements. |

Props — <MapMarker>

| Prop | Type | Notes | | --- | --- | --- | | coordinate | { latitude, longitude } | Required. | | title | string | Callout title shown on tap. | | description | string | Callout subtitle. | | id | string | Forwarded as event.detail.id on the parent's onMarkerPress. |

Android API key setup

Google Maps requires an API key. Get one at console.cloud.google.com → APIs & Services → Credentials → "Maps SDK for Android".

Set it in signalx.config.ts under android.googleMapsApiKey. Prebuild injects the required com.google.android.geo.API_KEY meta-data into the generated AndroidManifest.xml for you — don't hand-edit the manifest, it's a managed file that every sigx prebuild regenerates.

// signalx.config.ts
export default defineLynxConfig({
    // …
    android: {
        // Read from the environment so the key never lands in source control.
        // (signalx.config.ts is evaluated at prebuild time, so process.env works.)
        googleMapsApiKey: process.env.GOOGLE_MAPS_API_KEY,
    },
});
GOOGLE_MAPS_API_KEY=AIza… pnpm sigx prebuild   # or run:android / dev

If you don't set a key, prebuild injects a placeholder and prints a warning. The app still launches — the map just renders blank and logs Authorization failure … API Key: … at runtime (it does not crash). Set a real key before shipping. On sigx-lynx-go (the prebuilt sandbox app) the blank map is expected — we can't bundle a per-user API key in a public binary.

Need a manifest <meta-data> key that isn't covered by a dedicated config field? Use the generic android.manifestMetaData map in signalx.config.ts.

Limitations (v1)

Tracked as v2 follow-ups:

  • Imperative methods (animateToRegion, fitToCoordinates) need Lynx's UIMethodInvoker surface, which isn't wired through sigx-lynx yet. Same blocker as WebView.goBack / reload.
  • Custom marker icons — markers use the platform default pin.
  • Polylines, polygons, circles, ground overlays.
  • Clustering.
  • Offline tiles / Map snapshots.
  • Google Maps on iOS — iOS stays on MapKit (key-free); a future follow-up could let apps opt into the Google Maps SDK for iOS.

Lifecycle notes (Android)

com.google.android.gms.maps.MapView normally wants Activity lifecycle forwarding (onCreate/onResume/onPause/onDestroy). v1 calls onCreate + onStart + onResume in createView, and onPause + onStop in onDetach. For a typical screen-level map this works; if the host Activity is paused with the map still mounted, tile prefetching keeps running until the LynxUI itself detaches. A proper activityHook plumbing is tracked as a follow-up.

License

MIT