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

ai-tech-debt

v1.0.0

Published

Scan your codebase for technical debt and get an AI-powered debt score with prioritized fixes

Downloads

85

Readme

ai-tech-debt

Scan your codebase for technical debt and get an AI-powered debt score with prioritized fixes.

Install

npx ai-tech-debt

What it does

Scans your code for common technical debt indicators:

  • TODO, FIXME, HACK, XXX, BUG comments
  • eslint-disable and @ts-ignore suppressions
  • Large files and deep nesting
  • Console.log statements
  • TypeScript any types

Gives you a score from 0-100 and grades A-F.

Usage

# Scan current directory
npx ai-tech-debt

# Scan specific directory
npx ai-tech-debt -d ./src

# Scan specific extensions
npx ai-tech-debt -e ts,tsx

# Skip AI analysis
npx ai-tech-debt --no-ai

# Output JSON report
npx ai-tech-debt -o debt-report.json

Example Output

🔍 AI Tech Debt Scanner

✔ Scanned 47 files (8,234 lines)

📊 Technical Debt Report

Score: 72/100 (C) ⚠️
Total debt points: 89

Findings by Type:

🟡 TODO                    23 occurrences
🟡 FIXME                    8 occurrences
🔴 HACK                     3 occurrences
⚪ CONSOLE_LOG             34 occurrences
⚪ ANY_TYPE                12 occurrences

🎯 Top Files to Address:

1. src/api/legacy.ts - 18 points (7 issues)
2. src/utils/helpers.js - 12 points (5 issues)
3. src/components/Dashboard.tsx - 9 points (4 issues)

AI Analysis

Set OPENAI_API_KEY to get AI-powered recommendations:

export OPENAI_API_KEY=your-key
npx ai-tech-debt

The AI will analyze your debt patterns and suggest what to fix first.

Options

| Flag | Description | Default | |------|-------------|---------| | -d, --dir <path> | Directory to scan | . | | -e, --extensions <ext> | File extensions | js,ts,jsx,tsx | | --no-ai | Skip AI analysis | false | | -o, --output <file> | Save JSON report | - |

License

MIT


Built by LXGIC Studios 🔗 GitHub · Twitter 💡 Want more free tools like this? We have 100+ on our GitHub: github.com/lxgicstudios