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

@mailwoman/photon

v6.5.0

Published

Photon drop-in — a Photon-compatible autocomplete/type-ahead geocoding API (GeoJSON FeatureCollection over /api + /reverse) on the Mailwoman engine. Run it with `npx @mailwoman/photon serve`.

Readme

@mailwoman/photon

A Photon-compatible autocomplete geocoding API over the Mailwoman engine — search-as-you-type, returning GeoJSON FeatureCollections. Where @mailwoman/nominatim is structured lookup, this is the type-ahead front door. No Elasticsearch.

# One-time data fetch (worldwide candidate gazetteer, ~1.4 GB):
mkdir -p "${MAILWOMAN_DATA_ROOT:-/tmp/mailwoman-data}/wof"
curl -fSL https://public.sister.software/mailwoman/gazetteer/2026-07-07a/candidate.db \
  -o "${MAILWOMAN_DATA_ROOT:-/tmp/mailwoman-data}/wof/candidate.db"

MAILWOMAN_DATA_ROOT="${MAILWOMAN_DATA_ROOT:-/tmp/mailwoman-data}" \
  npx @mailwoman/photon serve --port 2322
# or point at your own data: --candidate-db <path> / $MAILWOMAN_CANDIDATE_DB

Prefer to try before self-hosting? A hosted trial endpoint runs at https://photon.sister.software (/api + /reverse, conservative rate limits).

curl "http://localhost:2322/api?q=1600 penn&limit=5&lat=38.9&lon=-77"
curl "http://localhost:2322/reverse?lat=38.8977&lon=-77.0365"

Endpoints

| Endpoint | Photon contract | | --------------- | ---------------------------------------------------- | | / | HTML landing page (endpoint index + example queries) | | /api | forward / autocomplete → GeoJSON FeatureCollection | | /reverse | lat/lon → GeoJSON FeatureCollection | | /openapi.json | emitted OpenAPI 3.1 document for /api + /reverse |

Backed by Mailwoman's FST autocomplete tier (#190/#587) + parse → resolve.

Library use

import { serveNode } from "@mailwoman/api-kit"
import { createPhotonApp, type PhotonEngine } from "@mailwoman/photon"

const engine: PhotonEngine = {/* search, reverse — backed by your Mailwoman pipeline */}
const app = createPhotonApp(engine)
serveNode({ fetch: app.fetch, port: 2322, hostname: "0.0.0.0" })

CORS

Map widgets (leaflet-control-geocoder, @openrunner/photon-geocoder) call this cross-origin from the browser, so the server sends permissive CORS by default — Access-Control-Allow-Origin: * and a 204 answer to preflight OPTIONS, matching upstream Photon. Behind a reverse proxy that already sets the headers, turn it off with --no-cors (or createPhotonApp(engine, { cors: false })).

Status

Shipped. /api and /reverse resolve over the live engine and return Photon GeoJSON. /api runs the query through the geocoder today; the dedicated prefix-first FST front (the last bit of Photon's tuned type-ahead ordering) is a refinement. Pairs with @mailwoman/nominatim for the structured-lookup shape and the OpenCage-style annotations block.