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

codex-code-rot-cleaner

v0.1.0

Published

A consent-first Codex skill that finds code a project may no longer need and proves eligible removals in disposable copies.

Readme

Codex Code Rot Cleaner

A Codex skill that finds code your project may no longer need, separates static suspicion from credible removal evidence, proves eligible file deletions in disposable copies, and asks for exact approval before touching the real project.

It looks for orphan modules, unused dependencies and exports, exact duplicate implementations, and stale commented code. Every finding is classified as SAFE TO REMOVE, REVIEW, or KEEP in a native Markdown report that opens directly in Codex and renders on GitHub.

What it does

  • Maps JavaScript, TypeScript, and Python source files and entry points
  • Finds files with no resolved inbound import
  • Checks package manifests, conventional routes, scripts, config, and string references
  • Flags unused dependencies and exports conservatively
  • Detects exact duplicate source files and code-like comment blocks
  • Estimates removable LOC and bytes
  • Runs approved build and test commands against deletions in fresh disposable copies
  • Keeps the real project unchanged during scanning and proof
  • Requires candidate-by-candidate approval before real cleanup
  • Creates a Markdown report and CSV cleanup plan

Install

npx --yes codex-code-rot-cleaner@latest

Restart Codex after installation.

Use

Open a software project in Codex and call the skill:

Use $code-rot-cleaner to find code this project no longer needs. Start in report-only mode and do not change project files.

You can also ask naturally:

Find orphan files, unused dependencies, duplicate implementations, and stale exports in this codebase. Show me what is safe to remove, what needs review, and how many LOC could be deleted.

The first pass only inspects the repository and writes the report. Before running project-controlled build or test commands, Codex shows the exact commands and waits for approval. Proof removes one candidate at a time in a disposable copy. Before any real cleanup, Codex shows exact candidate IDs and waits for a second approval.

Output

outputs/code-rot-cleaner/analysis.json
outputs/code-rot-cleaner/review.json
outputs/code-rot-cleaner/proof.json
outputs/code-rot-cleaner/CODE-ROT-REPORT.md
outputs/code-rot-cleaner/cleanup-plan.csv

The report includes:

  • Total scanned source files, LOC, and bytes
  • SAFE TO REMOVE, REVIEW, and KEEP counts
  • Potential removable LOC and storage
  • Evidence, caveats, confidence, and risk for every candidate
  • Baseline and disposable-copy proof results
  • Exact candidate IDs for the approval checkpoint

Safety model

Calling the skill allows inspection and report generation only. It does not allow source edits, dependency removal, formatting, or cleanup. Repository-controlled commands require approval because they can execute arbitrary project code. Real changes require a separate approval covering exact IDs and files.

No static analyzer can prove every dynamic, reflective, framework, operational, platform-specific, or external use. A green build is evidence only for the behavior that build exercises. The skill keeps these limitations visible instead of turning weak signals into deletion claims.

Manual installation

git clone https://github.com/Kappaemme-git/codex-code-rot-cleaner.git
mkdir -p ~/.codex/skills
cp -R codex-code-rot-cleaner/code-rot-cleaner ~/.codex/skills/code-rot-cleaner

License

MIT