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

@boringordinary/wordcode

v0.2.0

Published

Human-readable, crypto-secure verification codes. Three random words (1 billion combinations) as a memorable alternative to 6-digit PINs.

Downloads

209

Readme

@boringordinary/wordcode

Human-readable, crypto-secure verification codes. Three random words instead of six random digits.

maple-river-sunset

Why?

A 6-digit PIN has 1 million possible combinations. That sounds like a lot, but it's not — and it's hostile to humans. People misread digits, fumble between screens, and can't remember 482916 long enough to type it.

wordcode generates three common English words from a curated 1,000-word list. That's 1 billion combinations — 1,000x stronger than a 6-digit OTP — and you can actually remember maple-river-sunset while you switch tabs.

| | 6-digit PIN | 3-word code | |---|---|---| | Combinations | 1,000,000 | 1,000,000,000 | | Relative strength | 1x | 1,000x | | Example | 482916 | maple-river-sunset | | Memorable? | No | Yes | | Easy to type? | Depends | Yes | | Read aloud? | Awkward | Natural |

Install

bun add @boringordinary/wordcode  # or npm, yarn, pnpm

Usage

import { generate } from "@boringordinary/wordcode";

generate();        // "maple-river-sunset"
generate(4);       // "maple-river-sunset-bold"
generate(2);       // "maple-river"
generate(3, " ");  // "maple river sunset"

With Better Auth

import { emailOTP } from "better-auth/plugins/email-otp";
import { generate } from "@boringordinary/wordcode";

emailOTP({
  generateOTP: generate,
  expiresIn: 300,
});

Access the word list

import { words } from "@boringordinary/wordcode";

console.log(words.length); // 1000

How it works

  1. Picks count random indices using crypto.getRandomValues() (Web Crypto API)
  2. Maps each index to a word from the 1,000-word list
  3. Joins with the separator (default: -)

The word list is curated for:

  • Readability — common English words, 3–7 letters, no jargon
  • Memorability — concrete nouns, simple verbs, familiar adjectives
  • Unambiguity — no homophones, no confusable spellings
  • Safety — no offensive or sensitive words

Security

| Words | Combinations | Equivalent PIN | |---|---|---| | 2 | 1,000,000 | 6 digits | | 3 | 1,000,000,000 | ~10 digits | | 4 | 1,000,000,000,000 | ~13 digits |

Three words is the sweet spot for OTPs: strong enough for any reasonable expiry window, easy enough to type without friction.

Uses crypto.getRandomValues() — available in Node.js, Bun, Deno, and all modern browsers. No custom PRNG, no Math.random().

License

MIT