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

@minerouter/normid

v1.0.3

Published

Deterministic ID from string — NFKC + SHA-256 → base62. Zero dependencies. One name, one ID, everywhere.

Readme

normid — Deterministic ID from String

One name, one ID, everywhere.

npm License Node Dependencies

Zero-dependency library for deterministic ID generation. Same input produces the same ID on any platform, in any language, without network or database.

Algorithm: NFKC normalize → locale-fixed uppercase → trim
           → SHA-256(SHA-256(ns) || SHA-256(input))
           → truncate 20 bytes → base62 → id_<28 chars>

Why normid?

A username takes different forms across platforms: Username, username, USERNAME. Without a shared database, these cannot be linked. normid solves this — case, Unicode, whitespace, locale — none of it matters.

import { normid } from '@minerouter/normid'

const id = await normid('Username')
await normid('username') === id  // true
await normid('USERNAME') === id  // true

Installation

npm install @minerouter/normid

Dependencies: 0 — uses Web Crypto API (crypto.subtle), built into Node ≥18 and all browsers.

API

normid(input: string, namespace?: string): Promise<string>

| Param | Type | Default | Description | |-------|------|---------|-------------| | input | string | — | String to generate ID from (username, nickname, etc.) | | namespace | string | 'user' | Domain isolation prefix |

Returns: id_ + 28 base62 chars = 31 total.

Throws: If input is empty or whitespace-only after normalization.

Proof

For username WooonderkinG33 (12 letters), all 4,096 case permutations produce the exact same ID in under a second:

Combinations: 4,096
Unique IDs:   1
Time:         ~1.1s
Throughput:   ~3,500 IDs/sec

What normid is NOT for

  • Passwords / secrets — no salt, unsafe
  • PII anonymization — small input → brute-forceable
  • Authentication — identifies, doesn't prove ownership

Full specification

GitHub: WooonderkinG33/MineRouter-NORMID

License

MIT