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

gen-package-name

v0.0.11

Published

Package Name Generator for Node.JS

Readme

gen-package-name

CLI utility that generates npm package name ideas and checks availability against the npm registry.

npm version License: MIT Node.js

Features

  • Interactive package-name selection flow with regenerate + exit actions
  • Non-interactive generation mode for scripts and CI
  • Availability checks for generated names and one-off names
  • Package metadata lookup with --info
  • JSON output for automation with --json
  • Optional availability-only filtering with --available-only

Requirements

  • Node.js >=16
  • pnpm (for local development)

Installation

Install globally:

npm install -g gen-package-name

Run without installing:

npx gen-package-name

Local development setup:

git clone https://github.com/f3rnox/gen-package-name.git
cd gen-package-name
pnpm install

Usage

Interactive mode:

gen-package-name

Non-interactive generation from description:

gen-package-name -d "parse json streams" -n

Generate 10 names from explicit keywords, keep only available, emit JSON:

gen-package-name -k parse,json -c 10 -a -j

Check one package name:

gen-package-name --check my-package-name

Fetch package metadata:

gen-package-name --info chalk --json

CLI options

Usage: gen-package-name [options]

Generate available npm package names interactively or via flags.

Options:
  -V, --version             print version and exit
  -d, --description <text>  describe the package; used to extract keyword seeds
  -k, --keywords <list>     comma- or space-separated keyword seeds (overrides
                            --description extraction)
  -c, --count <n>           number of package names to generate (default: 5)
  -a, --available-only      only output names that are available on npm
                            (default: false)
  -j, --json                emit machine-readable JSON output (default: false)
  -n, --non-interactive     skip prompts; print generated names and exit
                            (default: false)
  --check <name>            check whether a specific package name is available
                            on npm
  --info <name>             fetch and print npm registry metadata for a package
  --no-color                disable colored output
  -h, --help                display help for command

How the interactive flow works

  1. Resolve keywords from --keywords, --description, or an interactive prompt.
  2. Generate a batch of candidate names.
  3. Check npm availability for each candidate.
  4. Pick a name, regenerate the list, or exit.
  5. If the selected name is taken, display registry metadata for that package.

Development

pnpm install
pnpm dev
pnpm build
pnpm test
pnpm lint
pnpm lint:eslint
pnpm format

Scripts

| Script | Description | | --- | --- | | pnpm start | Run the CLI via tsx | | pnpm dev | Run in development mode | | pnpm build | Build TypeScript and generate docs | | pnpm test | Run tests with vitest | | pnpm lint | Run markdownlint and eslint | | pnpm lint:eslint | Run eslint only | | pnpm format | Format with prettier | | pnpm serve:docs | Serve generated TypeDoc docs locally | | pnpm serve:coverage | Serve coverage report locally |

Contributing

Contributions are welcome. Please open an issue before submitting a pull request for significant changes.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/my-feature)
  3. Commit using Conventional Commits
  4. Push and open a pull request

Changelog

See CHANGELOG.md.

License

MIT © 2026 Cris Mihalache