← Rankings

chai

npm · Rank #84 of 217

84 / 100 B
CRITICAL — Single npm publisher with 84M weekly downloads. One compromised credential could push malicious code to every downstream project.
npx proof-of-commitment · Audit the rest of your tree →
1
npm publisher
Single point of failure
84M
downloads/week
Blast radius if compromised
14.5y
package age
Established package
181 days ago
last release
Infrequent releases
35
GitHub contributors
Many contributors, single publisher
🔐 Provenance Verified
🛡️ Staged Publishing Enabled

Risk analysis

chai has a single npm publisher and 84M weekly downloads. This is the exact structural profile exploited in the axios and LiteLLM supply chain attacks: one compromised credential would expose every downstream project.

Why "CRITICAL" doesn't mean "bad"

A CRITICAL flag means this package has the structural preconditions for a supply chain attack — not that an attack is happening. Both axios (score 86) and chalk (score 75) are flagged CRITICAL. They're well-maintained. They're also one stolen credential away from a repeat of the March 2026 attacks.

The flag surfaces a fact: 1 person can push code to 84M machines per week. Whether that's a problem depends on your risk tolerance.

This package uses staged publishing

Every version goes through a staging area before going live. The maintainer must explicitly approve it with 2FA. This is the strongest protection npm offers against credential theft attacks — even stolen CI tokens can't push code to production.

What the score measures

  • Publisher depth — How many people can push to npm? Single-publisher packages are the #1 structural risk.
  • Longevity — Older packages have track records. New packages with high adoption are higher risk.
  • Release consistency — Regular releases signal active oversight. Long gaps mean unpatched vulnerabilities.
  • Download trend — Growing packages attract more scrutiny (and more attacks).
  • OpenSSF Scorecard — Process security: branch protection, code review, CI/CD safety.
  • Build provenance — Published versions linked to specific CI runs via SLSA attestation.
  • Staged publishing — Human approval gate between npm publish and going live.

chai is one package. Score them all.

You came looking for chai. Your node_modules has hundreds more. Some of them have the same single-publisher profile. Run one command to score every dependency you ship:

npx proof-of-commitment

Auto-detects your lockfile. Scores every dependency. Zero install.

Share this score

Add the badge to your README

Commit trust score for chai
![Commit Trust](https://getcommit.dev/badge/npm/chai)