npm Package Health & Abandonment Checker avatar

npm Package Health & Abandonment Checker

Pricing

from $2.00 / 1,000 package checkeds

Go to Apify Store
npm Package Health & Abandonment Checker

npm Package Health & Abandonment Checker

Audits the maintenance status of npm packages via the official npm Registry and downloads APIs: last release date, abandonment signal, deprecation warning, weekly downloads and trend, dependency count, license, maintainer count and a 0-100 health score.

Pricing

from $2.00 / 1,000 package checkeds

Rating

0.0

(0)

Developer

Korhan Coşan Ergün

Korhan Coşan Ergün

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

Share

Audits the maintenance status and abandonment risk of npm packages using the official, key-free npm APIs. No scraping — all three sources are JSON APIs.

  • Registry metadata — https://registry.npmjs.org/<package>
  • Download statistics — https://api.npmjs.org/downloads/point/... and https://api.npmjs.org/downloads/range/...
  • Package search — https://registry.npmjs.org/-/v1/search

Pass the dependencies from your package.json as input and see in a single run which of them are abandoned, deprecated, single-maintainer or unlicensed — for supply-chain audits, security reviews and technical-debt inventories.

Input

FieldDescription
packagesPackage names, e.g. ["express","react","@types/node"]. Scoped packages are supported
searchQueryOptional: package discovery through the npm search API, e.g. keywords:cli
maxItemsMaximum number of packages
includeDownloadTrendCompute the percentage change from the 30-day download series (+1 request per package)

Output (each record)

{
"id": "request",
"title": "request@2.88.2",
"link": "https://www.npmjs.com/package/request",
"package_name": "request",
"latest_version": "2.88.2",
"license": "Apache-2.0",
"last_publish": "2020-02-11T16:35:36.122Z",
"last_metadata_change": "2026-07-17T17:10:13.431Z",
"first_publish": "2011-01-22T17:12:54.986Z",
"days_since_last_publish": 2463,
"maintenance_status": "abandoned",
"is_deprecated": true,
"deprecation_message": "request has been deprecated...",
"health_score": 25,
"risk_level": "high",
"risk_flags": ["deprecated", "abandoned-no-release-2y", "no-release-5y"],
"downloads_last_week": 13964396,
"downloads_trend_pct": 11.09,
"version_count": 234,
"releases_last_year": 0,
"dependencies_count": 21,
"maintainers_count": 1,
"repository_url": "https://github.com/request/request"
}

Maintenance status (maintenance_status)

Based on the time elapsed since the last real version release:

StatusThreshold
active≤ 90 days
maintained≤ 365 days
stale≤ 730 days
abandoned> 730 days

Why time.modified is not used: npm's modified field is also updated by a deprecation marking or a metadata edit. For example the request package's modified value appears to be 2026, while its last real release was in 2020. This actor uses the newest of the real version release dates; the modified value is additionally exposed in the last_metadata_change field.

Risk flags (risk_flags)

deprecated, abandoned-no-release-2y, stale-no-release-1y, no-release-5y, no-license, no-public-repository, single-maintainer, no-maintainer-listed, very-low-adoption, large-dependency-tree, declining-usage.

Health score (health_score, 0-100)

A heuristic score: maintenance freshness (the heaviest, 40 points), deprecation status, presence of a license/repository, maintainer count ("bus factor"), adoption and the size of the dependency tree. risk_level is derived from the score, but serious flags such as deprecated / abandoned / no-license put a floor under the level.

sample_output.json contains 3 records taken from a real local run.

Pricing (PPE)

A package-checked event is fired for every package checked — $0.002 per package.

Local run

cd ~/rua/products/apify/npm-package-health
mkdir -p storage/key_value_stores/default
cat > storage/key_value_stores/default/INPUT.json <<'EOF'
{"packages": ["express","left-pad","request","node-sass"], "maxItems": 10}
EOF
APIFY_LOCAL=1 python3 main.py
# output: storage/datasets/default/*.json

Known limitations

  • dependencies_count only counts direct dependencies; it does not resolve the full transitive tree.
  • npm's download series occasionally returns data-outage days as 0. The trend calculation skips those days and compares the daily averages of the two halves; if there is not enough data, downloads_trend_pct returns null.
  • The bulk download endpoint does not support scoped packages (@scope/name), so those are queried one by one (slower).
  • health_score is a heuristic indicator, not a normative standard; for critical decisions look at the raw fields (last_publish, is_deprecated, maintainers_count).
  • The registry document of very large packages can be several MB (including the readme), so lists of hundreds of packages run slowly.