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

@sanely/words

v0.1.0

Published

Generate friendly, safe-for-work names from curated word lists

Readme

@sanely/words is a TypeScript package for friendly names. It returns names such as "amber-fox" for projects, usernames, labels, and demo data, with words drawn from curated, safe-for-work lists.

Features

  • generate() returns a random name, and count() returns how many distinct names the same options allow.
  • pattern picks the list for each word, such as ["color", "animal"], and the type checker rejects a misspelled list name.
  • lists adds custom word lists that a pattern can name.
  • maxLength limits the length of the name, and omit excludes words.
  • random takes a seeded source of randomness, so a test can repeat a name.
  • Invalid options throw InvalidOptionError, and options that no name satisfies throw NotEnoughWordsError.
  • No external dependencies.

Install

npm install @sanely/words

The package needs Node.js 20 or later.

Get started

import { count, generate } from "@sanely/words"

generate() // "amber-fox"
generate({ segments: 3, separator: "_" }) // "teal_heron_cathedral"
generate({ pattern: ["color", "animal"] }) // "teal-otter"
generate({ lists: { fruit: ["apple", "pear"] }, pattern: ["fruit", "animal"] }) // "pear-otter"
generate({ maxLength: 10 }) // "tan-heron"

count() // 1_084_149n

Documentation

Reference:

Contributing

Read the architecture, testing guide, and root contributor guide before changing the package.

Credits

The word lists start from joyful by Hayden Bleasel and Kaylee Williams, which builds on friendly-words by Glitch. They were filtered for safe, common words and extended with words from coolname, imsky/wordlists, moniker, random-word-slugs, and unique-names-generator.

License

MIT. See LICENSE, which includes the notices for the word lists.