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

@intentsolutionsio/code-cleanup

v1.0.0

Published

Comprehensive codebase cleanup across 11 quality dimensions with confidence scoring and build verification gates

Readme

Code Cleanup

Comprehensive codebase cleanup across 11 quality dimensions with confidence scoring, build verification gates, and specialized agents.

Born from a real cleanup session — 25,000 lines removed, 4 bugs caught — packaged into a reusable Claude Code plugin.

Quick Start

# Install
claude /plugin marketplace add jeremylongshore/claude-code-plugins

# Run full cleanup
/cleanup

# Target specific dimensions
/cleanup --dimensions dead,types,security

# Scope to directory
/cleanup src/api/

# Changed files only
/cleanup --changed

The 11 Dimensions

Ordered by risk level (LOW → HIGH):

| # | Dimension | What It Finds | Risk | |---|-----------|--------------|------| | 1 | Dead Code | Unused exports, imports, variables, unreachable code | LOW | | 2 | AI Slop | Low-value AI-generated comments restating obvious code | LOW | | 3 | Weak Types | any, missing return types, overly broad generics | MED | | 4 | Security | Hardcoded secrets, weak crypto, injection vectors | MED | | 5 | Legacy Code | Deprecated APIs, old syntax, unnecessary polyfills | MED | | 6 | Type Consolidation | Duplicate types, interfaces with 80%+ overlap | MED | | 7 | Defensive Code | Unnecessary null checks, impossible error handling | MED | | 8 | Performance | N+1 queries, blocking I/O, bundle bloat | MED | | 9 | DRY Deduplication | Copy-pasted blocks (>=10 identical lines) | HIGH | | 10 | Async Patterns | Floating promises, forEach+async, missing await | HIGH | | 11 | Circular Deps | Module cycles causing init order issues | HIGH |

Safety First

  • Never auto-applies high-risk changes — always flags for review
  • Confidence scoring on every finding (HIGH/MEDIUM/LOW)
  • Build verification gate after each auto-applied dimension
  • One-command revert if anything breaks
  • Clean git state required before starting

Agents

11 specialized agents, one per dimension:

  • dead-code-hunter — finds unreachable and unused code
  • slop-remover — identifies AI-generated comment noise
  • weak-type-eliminator — strengthens type annotations
  • security-scanner — flags secrets, injection vectors, weak crypto
  • legacy-code-remover — modernizes deprecated patterns
  • type-consolidator — merges duplicate type definitions
  • defensive-code-cleaner — removes unnecessary guards
  • performance-optimizer — spots N+1 queries, blocking I/O, bloat
  • dry-deduplicator — detects copy-paste code blocks
  • async-pattern-fixer — catches floating promises and race conditions
  • circular-dep-untangler — maps and resolves module cycles

Language Support

Primary: TypeScript, JavaScript, Python Secondary: Go, Rust (via grep patterns) Tool integrations: knip, madge, ruff, jscpd, dependency-cruiser, bandit, vulture

How It Works

  1. Safety checkpoint — verify clean git state, green tests, record baseline
  2. Scope determination — full codebase, directory, or changed files
  3. Dimensional scan — each dimension scans with tools + grep patterns
  4. Confidence scoring — HIGH (auto-apply), MEDIUM (flag with fix), LOW (flag only)
  5. Build verification — type check + tests after each auto-applied dimension
  6. Report generation — summary table, applied changes, flagged items

License

MIT

Author

Jeremy Longshore — Intent Solutions

Contributors