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

repodecay

v0.1.0

Published

Repo Decay Detector — CLI that measures technical debt caused by AI coding tools (Cursor, Copilot, Claude Code)

Readme

RepoDecay

Detect technical debt caused by AI coding tools before your codebase becomes unmaintainable.

A CLI tool that measures how AI assistants are silently degrading your repository quality — one scan at a time.

npx repodecay scan

Cursor, Copilot, Claude Code — great at writing code. Terrible at not creating technical debt. RepoDecay is the first tool built specifically to detect and quantify the damage AI-generated code leaves behind.


Repository Decay Score

One percentage. Zero to 100. How much has your AI assistant degraded your codebase?

| Score | Label | Meaning | |-------|-------|---------| | 0–20% | Pristine | No detectable AI damage | | 21–40% | Light Sprinkle | Minor issues, watch trends | | 41–60% | Drizzle | AI creating visible debt | | 61–80% | Pouring | Significant AI-caused damage | | 81–100% | Monsoon | Codebase degrading faster than it improves |

Quick Start

# Run a scan
npx repodecay scan

# Scan a specific directory
npx repodecay scan --path ./src

# JSON output (pipe to jq, CI scripts)
npx repodecay scan --output json

# Track trends over time
npx repodecay scan --baseline
npx repodecay compare

Install

npm install -g repodecay

How It Works

RepoDecay runs 5 static analysis passes designed to catch patterns common in AI-generated code:

  1. Duplication — Hashes function bodies to find identical blocks (AI loves copy-paste)
  2. Dead Code — Resolves export/import references to find unused code (AI generates bloat)
  3. Complexity — Cyclomatic complexity per function (AI writes convoluted code)
  4. File Size — Flags oversized files >300 lines (AI generates mega-files)
  5. Architecture — Detects any types, mutable let, nested callbacks — hallmarks of AI slop

Results stored in .repodecay/history.json. Trend tracking built in.

Why RepoDecay Exists

Existing tools treat all code the same. SonarQube, CodeRabbit, Semgrep — they scan code without asking where it came from.

RepoDecay is different: it measures damage specifically from AI coding tools. Not a generic linter. A damage report for what your AI assistant did when you weren't looking.

Backed by data:

  • CMU study: Cursor repos show +41% complexity, +30% more static warnings
  • GitClear: 211M LOC analyzed — copy-paste up 12.3%, refactoring collapsed
  • CodeRabbit: AI PRs contain 1.7× more issues, 3× more readability problems

Configuration

Create .repodecayrc in your repo root:

{
  "extensions": [".ts", ".tsx", ".js", ".jsx"],
  "maxFileLines": 300,
  "maxComplexity": 10,
  "cloneRateThreshold": 5,
  "excludeDirs": ["node_modules", "dist", ".git", "build", ".next"]
}

License

MIT