The high-impact (popular) packages of npm.
- What is this?
- When should I use this?
- Install
- Use
- API
- Data
- Scripts
- Types
- Compatibility
- Related
- Contribute
- Security
- License
This package exposes the names of popular packages on the public npm registry. The definition of the term popular here is the same as what npm itself calls high-impact. They classify packages as having a high impact on the ecosystem when a package meets one or more of the following conditions:
- download count of 1 000 000 or more per week
- depended on by 500 or more other packages
Please use this for fun experiments when researching the npm registry.
This package is ESM only. In Node.js (version 16+), install with npm:
npm install npm-high-impactIn Deno with esm.sh:
import {npmHighImpact} from 'https://esm.sh/npm-high-impact@1'In browsers with esm.sh:
<script type="module">
import {npmHighImpact} from 'https://esm.sh/npm-high-impact@1?bundle'
</script>import {npmHighImpact} from 'npm-high-impact'
console.log(npmHighImpact.length)
console.log(npmHighImpact)15113
[
'semver',
'ansi-styles',
'debug',
'chalk',
'minimatch',
'supports-color',
'strip-ansi',
'ms',
'ansi-regex',
'string-width',
// …
]This package exports the identifiers npmHighImpact,
npmTopDependents,
and npmTopDownloads.
There is no default export.
List of top package names (Array<string>).
Sorted by most downloaded first.
Packages that don’t reach the download threshold but are depended on a lot are
listed after that in order of dependents.
Includes (unique) packages from npmTopDependents and npmTopDownloads.
List of package names that are depended on a lot (Array<string>).
Sorted by most dependents first.
List of package names that are downloaded a lot (Array<string>).
Sorted by most downloaded first.
👉 Note: not all of these packages are popular. There are some false-positives, such that download counts can be gamed.
This repo includes several scripts to crawl different services.
node script/crawl-packages.jsUsed to take a day but as this uses ecosyste.ms now it is very
fast,
30min to 1h.
Slightly less complete as actually using npm,
but as npm is unusable,
I’ll take it.
node script/build-top-dependent.js
node script/build-top-download.js
node script/build-top.jsThese generate the JS files.
This package is fully typed with TypeScript. It exports no additional types.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 16+. It also works in Deno and modern browsers.
npm-high-impact-cli— find the popular npm packages someone maintainsnpm-esm-vs-cjs— data on the share of ESM vs CJS on the public npm registry
Yes please! See How to Contribute to Open Source.
This package is safe.