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

@submuxhq/codedecay

v0.3.5

Published

Catch what your AI coding agent missed before merge with local PR safety checks

Downloads

1,131

Readme

CodeDecay CLI

Catch AI code decay before it reaches main.

CodeDecay is an open-source, deterministic, local-first CLI and GitHub Action for PR regression-risk analysis, maintainability decay detection, weak-test auditing, and agent handoff workflows.

It does not require telemetry, cloud services, API keys, LLMs, or model calls. Optional LLM, agent, memory, and tool integrations are user-owned and explicit.

Install

npm install -D @submuxhq/codedecay

Run with:

npx codedecay --help
npx codedecay man analyze

Quickstart

npx codedecay analyze --format markdown
npx codedecay analyze --base main --head HEAD --format json
npx codedecay analyze --format sarif --output codedecay.sarif
npx codedecay snapshot --format json --output .codedecay/snapshot.json
npx codedecay llm-review --ping
npx codedecay redteam --base main --head HEAD --format markdown
npx codedecay agent --profile codex --base main --head HEAD --format markdown
npx codedecay memory-import --input incidents.json
npx codedecay memory-learn --input ci-failure.json

Commands

| Command | Purpose | | --- | --- | | codedecay analyze | Deterministic PR risk, impact, and decay report. | | codedecay snapshot | Stable repository health snapshot and comparison artifact. | | codedecay redteam | Merge-safety report with impact, weak-test evidence, edge cases, skills, memory, and fix tasks. | | codedecay llm-review | Explicit opt-in LLM-assisted suggestions grounded in deterministic CodeDecay analysis. | | codedecay agent | Task bundle for Codex, Claude Code, Cursor, Pi, OpenCode, desktop agents, or MCP clients. | | codedecay config | Show normalized config. | | codedecay memory | Show local repo memory. | | codedecay memory-import | Preview or apply structured learnings into repo-local memory. | | codedecay memory-learn | Learn local memory from CI, PR, and CodeDecay report signals. | | codedecay execute | Run explicitly configured local checks and tool adapters. | | codedecay differential | Compare configured base/head behavior probes. | | codedecay mcp | Start the local MCP server. | | codedecay help | Show root or per-command help. | | codedecay man | Show a longer manual page for a command. | | codedecay update | Print or apply the recommended upgrade command. | | codedecay uninstall | Print or apply the recommended uninstall and cleanup plan. | | codedecay version | Print the installed CLI version. |

Common flags:

--base <ref>
--head <ref>
--cwd <path>
--format json|markdown|sarif
--output <path>
--fail-on low|medium|high
--profile generic|codex|claude-code|cursor|pi|opencode|desktop

Utility examples:

codedecay help analyze
codedecay llm-review --ping
codedecay man update
codedecay version
codedecay update
codedecay update --apply
codedecay uninstall --purge-local
codedecay uninstall --purge-local --apply

Reports are written to stdout by default. Relative --output paths resolve from the analysis working directory.

Deterministic Default

| Workflow | Default | Behavior | | --- | --- | --- | | analyze, redteam, agent, snapshot | Yes | Deterministic local analysis with no model calls. | | execute, differential | No | Runs only repo-allowlisted local commands after explicit opt-in. | | llm-review | No | Calls a user-owned provider only when invoked directly. | | Optional LLM providers | No | Disabled by default and only used by commands that explicitly opt in. |

GitHub Action

- uses: SubmuxHQ/CodeDecay/packages/github-action@v0
  with:
    mode: redteam
    base: ${{ github.event.pull_request.base.sha }}
    head: ${{ github.event.pull_request.head.sha }}
    format: markdown
    fail-on: high

Safety

By default CodeDecay:

  • does not send telemetry
  • does not call hosted services
  • does not require API keys
  • does not call LLMs or models
  • does not execute commands hidden from the user

Configured command execution requires explicit config and safety gates.

Links

  • Repository: https://github.com/SubmuxHQ/CodeDecay
  • Documentation: https://github.com/SubmuxHQ/CodeDecay#readme
  • Issues: https://github.com/SubmuxHQ/CodeDecay/issues
  • License: Apache-2.0