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/address-id

v4.12.0

Published

Turn a canonicalized + geocoded address into a stable, parseable primary key (`<state>.<H3-cell>.<hash>`) for deterministic record joins / dedup — the exact-match complement to the fuzzy matcher.

Downloads

566

Readme

@mailwoman/address-id

Stable, parseable address primary keys — the deterministic, exact-match complement to the fuzzy matcher.

Where @mailwoman/match decides whether two messy records are probably the same entity, @mailwoman/address-id produces a content-addressed key you can GROUP BY or JOIN ON without running the matcher at all — for the common "same canonical address" case.

import { createPostalAddressID } from "@mailwoman/address-id"

const id = createPostalAddressID({
	components: { street: "123 Main St", locality: "Austin", region: "TX", postcode: "78701" },
	coordinate: { lat: 30.2672, lon: -97.7431 },
})
// → "tx.882830829dfffff.abc123def456"

Key structure

<state>.<H3-cell>.<content-hash>

| Segment | Purpose | | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | State prefix | Coarse region (tx, ca, ny, …) from a supplied state or plucked from the ZIP via @mailwoman/codex; xx when unknown. Makes the key region-sortable. | | H3 cell | Jitter-stable locality token from the resolved coordinate (h3-js latLngToCell at resolution 9). Coarse on purpose: two geocodes of the same place a few metres apart land in the same cell. | | Content hash | Hash of the address canonicalized by @mailwoman/normalize, so 123 Main St and 123 MAIN STREET hash identically. This is the identity; the cell + state localize and partition it. |

API

// Create a stable address primary key
createPostalAddressID(input: PostalAddressIDInput): string

// Parse a key back into its components
parsePostalAddressID(id: string): ParsedPostalAddressID
// → { state: "tx", h3Cell: "882830829dfffff", hash: "abc123def456" }

Design

  • Self-contained on h3-js, not @mailwoman/spatial (which wasn't published when address-id shipped). Small, focused dependency footprint.
  • Content-addressed, not assigned. The key derives from the data itself — no central registry, no sequence numbers.
  • Jitter-stable. The H3 cell at resolution 9 (~0.03 km²) absorbs the small coordinate differences that come from geocoding the same address on different passes.

Use cases

  • DeduplicationGROUP BY address_id collapses records at the same canonical address without running the fuzzy matcher.
  • Cross-dataset joins — deterministic exact-match join key for linking records across data sources.
  • Indexing — ordered by state prefix for efficient range scans.

Related

License

AGPL-3.0-only