$ show nice-registry/all-the-package-names
This repository provides a regularly updated list of all public npm package names (including scoped packages) as a large JSON array. The primary artifact is `names.json`, which is versioned with Git LFS and updated daily via a scheduled GitHub Actions workflow. The core logic resides in `script/build.js`, which fetches normalized repository data from the `all-the-package-repos` npm package, extracts package names, filters out purely numeric names, and writes the result as a pretty-printed JSON array. The package exposes a Node.js entry point (`require('all-the-package-names')`) returning the array, and a CLI command that outputs newline-delimited names. Tests verify the array structure, size, and exclusion of numeric names. While the codebase is minimal and straightforward, it is professionally maintained with CI/CD, automated releases, and LFS support for large data. It serves as a dependency for many npm ecosystem tools that need offline name lookups or filtering.
The LLM identified 1 files worth highlighting for reuse:
A self-contained build script that ingests package names from the all-the-package-repos package, filters out numeric-only names (which are not valid npm packages), and writes the resulting array to names.json. It demonstrates a clean, parameterized ETL pattern: input from an npm module, transform via filtering, output to a JSON file. Because it depends only on an external npm package and uses standard Node.js fs/path, it can be extracted to build similar aggregated data files from other key-value stores.