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

rot-detector

v1.0.1

Published

🧟 CLI tool to detect dependency rot in your projects - find abandoned, unmaintained dependencies

Readme

🧟 Dependency Rot Detector

npm version License: MIT

Find abandoned dependencies before they become security nightmares.

A CLI tool that scans your package.json (NPM) or requirements.txt (Python) to detect software rot - dependencies that are abandoned, poorly maintained, or pose supply chain risks.

πŸ€” The Problem

npm audit and Snyk tell you about known CVEs. They DON'T tell you:

  • πŸ“… A library hasn't been updated in 4 years
  • πŸ‘€ A package has only 1 maintainer (bus factor risk)
  • βš–οΈ A dependency uses a deprecated license

This is "Software Rot" - a security bomb waiting to explode. πŸ’£

πŸš€ Quick Start

# Install globally
npm install -g rot-detector

# Scan your project
rot-detector scan .

# Or use npx (no install)
npx rot-detector scan ./package.json

πŸ“Š Example Output

🧟 Dependency Rot Detector
Scanned: ./package.json

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Package                β”‚ Score  β”‚ Last Update    β”‚ Maintainers β”‚ License       β”‚ Status     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ abandoned-lib          β”‚ πŸ”΄ 15  β”‚ 4 years ago    β”‚ 1           β”‚ GPL-2.0       β”‚ Critical   β”‚
β”‚ old-but-ok             β”‚ 🟑 65  β”‚ 8 months ago   β”‚ 2           β”‚ MIT           β”‚ Warning    β”‚
β”‚ react                  β”‚ 🟒 95  β”‚ 2 days ago     β”‚ 15          β”‚ MIT           β”‚ Healthy    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Summary: 🟒 1 Healthy | 🟑 1 Warning | πŸ”΄ 1 Critical

πŸ“‹ Features

| Feature | Description | |---------|-------------| | πŸ” NPM + PyPI Support | Scans package.json and requirements.txt | | πŸ“ˆ Health Scoring | 0-100 score based on freshness, maintainers, license | | 🎨 Beautiful CLI Output | Color-coded risk indicators | | πŸ“Š JSON Export | --json flag for CI/CD integration | | ⚑ GitHub Integration | Optional enhanced repo analysis | | 🚨 Threshold Checks | Fail builds if score drops below threshold |

βš™οΈ CLI Options

rot-detector scan [path] [options]

Options:
  --json                Output results as JSON
  --threshold <score>   Fail if any dependency scores below threshold
  --github-token <tok>  GitHub token for enhanced repo analysis
  --no-github           Skip GitHub analysis (faster)
  --dev                 Include devDependencies
  -v, --verbose         Verbose output

πŸ† Health Score Breakdown

Each dependency is scored 0-100 based on:

| Factor | Weight | Scoring | |--------|--------|---------| | Freshness | 40% | < 6 months = 100, > 3 years = 5 | | Maintainers | 30% | 5+ = 100, 1 = 40, 0 = 10 | | License | 30% | OSI approved = 100, Unknown = 60 |

Risk Levels

  • 🟒 Healthy (80-100): Well maintained, safe to use
  • 🟑 Warning (50-79): Review recommended
  • πŸ”΄ Critical (0-49): Replace immediately!

πŸ”§ CI/CD Integration

GitHub Actions

name: Dependency Health Check
on: [push, pull_request]

jobs:
  rot-check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '18'
      
      - name: Check for dependency rot
        run: npx rot-detector scan --threshold 50

Pre-commit Hook

# .husky/pre-commit
npx rot-detector scan --threshold 60

πŸ› οΈ Development

# Clone the repo
git clone https://github.com/notsointresting/rot-detector.git
cd rot-detector

# Install dependencies
npm install

# Run in development mode
npm run dev -- scan ./sample/package.json

# Build for production
npm run build

# Run tests
npm test

🀝 Contributing

Contributions are welcome! Feel free to:

  1. πŸ› Report bugs
  2. πŸ’‘ Suggest features
  3. πŸ”€ Submit pull requests

πŸ“„ License

MIT Β© notsointresting