Package search

Look up any npm package, see what to check before installing it, and what your organization has decided about it.

Search (in the site header, at /search) finds packages on the npm registry by name. It is open to everyone, signed in or not. Each package has its own page with its versions, dependencies and README, the checks worth making before you install it and, once you are signed in, your organization's decision about it.

Npm only, for now.

Searching

Type a package name, or part of one. The results update as you type; Search or Enter runs the search at once. Each result shows:

  • the name, marked exact match when it is exactly what you typed;
  • Similar to … when the name looks like the name of a popular package, for example raect for react. Click it to open the popular package. See Similar names;
  • the description;
  • the latest version, when it was published and its downloads last week;
  • up to five keywords. Click one to list the packages that share it (a keywords: search).

When what you typed looks like a popular package's name, the page asks Did you mean …? above the results, with a link to that package.

The search is in the page's address, so a link or a reload opens the same results. Your browser asks npm directly: npm limits how many searches one network may make in a minute, and when it does the page says so. Wait a minute and try again.

A package's page

Click a result to open its page, at /packages/<name> (for example /packages/react or /packages/@nuxt/ui). From top to bottom:

  • The header — the name (with a copy button), the version shown, when it was published, and links to the repository, homepage, issue tracker and npm. A deprecated version says so here, with the reason its maintainers gave.
  • Key facts — license, number of dependencies, unpacked size, number of files, downloads last week and publish date.
  • Install — the command to add the package with npm, pnpm, yarn, bun or deno. Your choice is remembered in this browser. On an older version, the command pins it.
  • Checks — see below.
  • Readme — the package's README. Contents jumps to a heading.

On the side:

  • Your organization — see below.
  • Compatibility — the runtime versions it says it needs (Node.js and others).
  • Versions — the tagged versions (latest, next, …) and the newest releases. All versions opens the full list, with a filter. Choosing a version shows the whole page at that version.
  • Dependencies — what the version shown depends on, by kind: regular, peer (marked optional when they are) and optional. Dev dependencies, which installing it never pulls in, are folded away. Each opens its own page.
  • Keywords and Maintainers — the npm accounts that can publish it, and its author.

Nothing about a package is stored by Depos: the page reads npm when you open it.

Checks

Checks gives the version shown a risk level, says what set it, and lists the facts behind it, from what npm publishes about that version. It does not tell you what to do: that depends on how you use the package.

The level shows beside the word Risk as High, Medium, Low or Unknown.

LevelWhen
Highnpm lists a known vulnerability of critical or high severity in this version.
Mediumnpm lists a known vulnerability of moderate or low severity, the version is deprecated by its publisher, it runs code when installed, or it grants no license (none declared, or UNLICENSED).
LowNone of the above applies.
Unknownnpm's advisory database could not be asked, so known vulnerabilities are not known.

The level comes only from what npm publishes. The package's code and its dependencies are not analysed, so a Low level does not mean safe. A package's age, maintainers, provenance and copyleft terms do not change the level. The card shows the same rule under How is this level set?

The level also shows beside the version at the top of the page; click it to go to the card. The rest of the card lists each fact:

CheckWhat it means
N known vulnerabilitiesnpm's advisory database lists them for this version, each with its severity, its CVE id if it has one, its CVSS score if npm gives one, the affected versions and a link. Point to the score to see its CVSS vector. The highest score shows as a badge beside the title. The link opens the vulnerability on Vulmon when it has a CVE id, and the GitHub advisory when it does not. The first five show, Show all lists the rest.
No known vulnerabilitiesThat database lists none for this version. Its dependencies are not included, and a problem nobody has reported would not show here.
Known vulnerabilities could not be checkednpm did not answer. This is not a clean result; try again later.
Runs code when installedThe package has a preinstall, install or postinstall script (or builds native code with node-gyp). npm runs it on install unless scripts are turned off. Its dependencies are not checked here.
No license declaredThe package's metadata names no license. The files inside it were not checked.
Declared as UNLICENSED / Custom license termsThe package states that it grants no license, or points to terms of its own.
Copyleft license / Weak copyleft licenseIts SPDX id is a copyleft license, such as GPL or AGPL, or a weak one, such as LGPL or MPL. When a package offers a choice, as in MIT OR GPL-2.0, the mildest option counts.
Not the latest versionnpm's latest tag points to another version.
Last release … years agoThe newest version of the package is two years old or more.
No repository declaredThe package's metadata names no source repository.
Has a provenance attestationnpm lists a signed statement linking this version to the source and CI that built it. It shows where the version came from, not that it is safe.
Name is close to …The name looks like the name of a popular package. See Similar names.
New package, first published … agoThe package's first version is less than 30 days old, and it was downloaded fewer than 1,000 times last week. Few people have had time to look at it. Packages that copy a popular name, or use a name an AI assistant invented, are usually new and barely used when they are found.

A package's license, scripts and repository are what its publisher declared to npm. CVE ids come from OSV.dev and do not change the level. The CVSS score does not change the level either: the level follows the severity. If OSV.dev does not answer, the same vulnerabilities show without them, so a missing CVE id does not always mean there is none.

Similar names

Some harmful packages use a name close to a popular one, so that a typo installs them. This is called typosquatting. Depos compares each npm package name with the names of the most downloaded npm packages: about 16,000 of them. Packages of other ecosystems, Python included, are not compared for now. A name is marked when it differs from one of the popular names in one of these ways:

  • one character is added, removed or changed, or two characters are swapped (raect, expresss, crossenv). Names shorter than 5 characters are not compared this way. An added s or number (cookies, merge2) is not marked: real packages often name a variant that way;
  • the name has node- or node before it, or .js, -js or js after it (node-lodash, jquery.js);
  • a character is replaced by one that looks the same (l0dash for lodash);
  • a scope is written as part of the name (types-node for @types/node), or the scope has a typo.

A package is not marked when:

  • it is itself on the popular list, or
  • it was downloaded at least 1% as often as the popular package last week. A real package with a similar name has users of its own; a copy has almost none.

The list is updated every day, from the most downloaded npm packages.

A marked package shows Similar to … in the search results, Name is close to … in Checks, and the same hint next to its name in your organization's Dependencies list and in Allowlist → Review. That way, whoever decides on a new package sees it before they allow it.

This is only information. Only names and download counts are compared, not the package's code. So a marked package is not always harmful, and a package that is not marked is not always safe. The hint does not change the risk level, the allowlist or pull request checks. To stop a package nobody has decided on, whatever its name, set its ecosystem to Enforce: a pull request that adds a package that is not on the allowlist then fails. See Allowlist and policy.

Package typosquatting explains how typosquatted names are made, and what prevents typosquatting.

Wait before installing new versions

Most harmful packages and versions are found and removed within a few days of being published. Your package manager can refuse versions that are newer than a set age, so a bad release has time to be caught before it reaches you. Depos does not change this setting for you. To wait 7 days:

Package managerSettingWhere
pnpm 10.16 or laterminimumReleaseAge: 10080 (in minutes)pnpm-workspace.yaml
npm 11.10 or latermin-release-age=7 (in days).npmrc
Yarn 4.10 or laternpmMinimalAgeGate: "1w".yarnrc.yml

A version you need at once, such as a security fix, can be let through: pnpm has minimumReleaseAgeExclude, and Yarn has npmPreapprovedPackages.

The setting does not stop a package that is old enough. To control which packages your repositories use at all, use the allowlist with pull request checks. It does not change the risk level, the allowlist or pull request checks. The same line shows in Checks on a package's page in your organization's dashboard.

Your organization

When you are signed in, Your organization shows what your organization has decided about the package. If you belong to more than one organization, choose which one.

For a package the organization already uses or has decided:

  • its decision: Allowed, Denied, Not listed (no decision applies), or Not audited (a platform requirement, such as Composer's php);
  • the beginning of its note;
  • how many repositories use it;
  • Open in dashboard, to its page in Depos, where you can change the decision or edit the note.

For a package the organization neither uses nor has decided, an organization admin or editor sees Add to allowlist: it opens the Allowlist with the add form on that package. See Allowlist and policy.

Signed out, the card offers to sign up or sign in.