npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

oss-health-scan

v1.6.0

Published

Scan npm dependencies for abandoned packages, outdated versions (libyear), and known CVEs (OSV.dev). Health scores 0-100, SARIF for GitHub Code Scanning, zero dependencies.

Downloads

388

Readme

oss-health-scan

Scan your package.json for abandoned, unmaintained, or unhealthy npm dependencies. Get a health score (0–100) for every dependency — no signup, no config, zero external dependencies.

Quick Start

# Scan current project
npx oss-health-scan

# Scan specific packages
npx oss-health-scan lodash moment request express

# Only show unhealthy packages (score < 60)
npx oss-health-scan --threshold 60

# Include devDependencies
npx oss-health-scan --dev

# JSON output for CI pipelines
npx oss-health-scan --json

What It Checks

Each package gets a weighted health score (0–100) based on:

| Factor | Weight | Metrics | |--------|--------|---------| | Maintenance | 40% | Last push recency, last npm publish, open issues ratio | | Community | 25% | GitHub stars (log-scaled), forks | | Popularity | 20% | npm downloads/week (log-scaled) | | Risk | 15% | Inactivity penalty, issue backlog, stale publish |

Instant Flags

  • DEPRECATED packages → automatic score of 5/100
  • ARCHIVED repos → automatic score of 8/100

Output

  OSS Health Scan Results
  ──────────────────────────────────────────────────
  Scanned: 3 packages
  Average health: 40.8/100
  ● Critical: 0  ● Warning: 3  ● Healthy: 0

   🟡 WARNING

  react-hexgrid                       ███████░░░░░░░░░░░░░ 35.1/100  last push 594d ago  1.5k/wk
  jquery-modal                        ████████░░░░░░░░░░░░ 40.5/100  last push 699d ago  21.1k/wk
  rrule                               █████████░░░░░░░░░░░ 46.8/100  last push 628d ago  1.2M/wk

CI Integration

# .github/workflows/health-check.yml
name: Dependency Health Check
on:
  schedule:
    - cron: "0 9 * * 1"  # Every Monday 9am
  pull_request:

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
      - run: npx oss-health-scan --threshold 30
        # Exits with code 1 if any critical packages found

Environment

Set GITHUB_TOKEN for higher API rate limits (5000/hr vs 60/hr):

GITHUB_TOKEN=ghp_xxx npx oss-health-scan

Zero Dependencies

This tool has zero npm dependencies. It uses only Node.js built-in modules (https, fs, path). This is intentional — a dependency health scanner should not itself be a supply chain risk.

Part of OSS Maintenance Log

This CLI is part of the oss-maintenance-log project — an automated OSS health monitoring system with dashboards, trend tracking, and GitHub Actions integration.

License

MIT