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

codenuke

v0.3.0

Published

Automated code review for reliable, trusted refactoring.

Downloads

609

Readme

codenuke

Automated code review for reliable, trusted refactoring.

codenuke maps a repo into semantic feature slices, reviews each slice with a provider for behavior-preserving simplification and complexity-reduction opportunities, persists findings, and can run an explicit fix loop for one finding at a time.

Current status: early CLI. Review/report/state are implemented; patching exists behind codenuke fix --finding <id> and still requires manual review of the resulting worktree changes.

Install

pnpm add -g codenuke

From source:

pnpm install
pnpm build
pnpm link --global

Agent Skill

Install the companion skill for Codex or other skill-aware agents:

npx skills add pproenca/codenuke --skill codenuke --agent codex

The skill uses npx --yes codenuke@latest, so users can set up review and one-finding auto-fix loops without installing codenuke globally.

Workflow

codenuke init
codenuke map
codenuke review --limit 3 --jobs 3
codenuke report
codenuke next
codenuke show --finding <id>
codenuke triage --finding <id> --status false-positive --note "covered by tests"
codenuke fix --finding <id>
codenuke revalidate --finding <id>
codenuke revalidate --all --status open

fix does not commit, push, open PRs, or land changes. It runs configured validation commands and records a patch attempt under .codenuke/.

Source Layout

  • src/cli.ts: executable wrapper that preserves the published dist/cli.js bin entrypoint.
  • src/cli/: command-line parsing and output rendering.
  • src/workflow/: init/map/review/report/triage/fix/revalidate orchestration, persistent state, finding selection, prompts, and reporting.
  • src/mapping/: feature-map orchestration, including deterministic and agent-assisted mapping.
  • src/mappers/: framework and language feature mappers plus mapper-local traversal helpers.
  • src/provider/: provider command construction, JSON extraction, and strict output schemas.
  • src/platform/: project detection, filesystem/git/process helpers, errors, IDs, progress, and shared durable record schemas.

What It Maps Today

  • npm package bins
  • selected root and workspace package scripts: start, build, test, lint, typecheck, format
  • Node/TypeScript workspace packages under apps/*, packages/*, and package workspace patterns
  • generic extension/plugin packages under workspace roots such as extensions/* and plugins/*, including package metadata, source, docs, and nearby tests
  • semantic Node source groups for large packages, including runtime, commands, auth, storage, monitor, webhook, setup, server, and client slices
  • Nx project metadata from project.json, including project-scoped validation targets
  • Turborepo task metadata for workspace-aware validation commands and feature context
  • Next.js app/ and pages/ routes, including routes inside monorepo apps
  • React Router routes and React components
  • Go package slices from go list ./..., including command packages
  • Go package tests and same-repo imports as review context
  • Java/Kotlin Gradle source groups and root Gradle build/test commands
  • JVM semantic roles from Java and Kotlin code evidence such as annotations, imports, interfaces, inheritance, supertypes, and method signatures
  • Kotlin Android semantic roles for UI entrypoints, ViewModels, data boundaries, external clients, and dependency injection, including Metro
  • Ruby project metadata, executables, source groups, RSpec/Minitest suites
  • Rust src/main.rs, src/bin/*.rs, src/lib.rs, crates/*, and tests/*.rs
  • C/C++ standalone main() files, CMake add_executable / add_library targets, and autotools bin_PROGRAMS / lib_LTLIBRARIES targets
  • Python project metadata, console scripts, bounded source groups, pytest suites, and Flask/FastAPI routes
  • SwiftPM Sources/* targets and Tests/* suites
  • Laravel/PHP projects from composer.json and artisan, including routes, controllers, form requests, Artisan commands, jobs, services, models, migrations, seeders, Composer scripts, and PHP test suites
  • common project config files

Deeper framework mappers and agent-assisted enrichment are next steps.

Provider

The default provider is the local Codex CLI.

codex --version
codenuke doctor

Provider calls use codex exec with strict JSON schemas, ephemeral sessions, and a non-interactive approval policy. Review and revalidate run read-only; fix planning runs with workspace-write because Codex may edit the working tree during the explicit fix command.

Supported provider names today:

  • codex: local Codex CLI
  • acpx: any ACP-compatible coding agent (Codex / Claude / Pi / Gemini / ...) via openclaw/acpx
  • grok: local Grok Build CLI
  • opencode: local OpenCode CLI
  • mock: deterministic test provider
  • mock-fail: failure test provider

Commands

  • codenuke init: create .codenuke/, detect project basics, write config
  • codenuke map: write feature records
  • codenuke status: show project, dirty state, feature/finding counts
  • codenuke review: review pending or selected features for refactoring opportunities
  • codenuke report: print or write a Markdown findings report
  • codenuke next: print the next actionable finding
  • codenuke show --finding <id>: inspect one finding with evidence and suggested validation
  • codenuke triage --finding <id> --status <status>: mark a finding with optional history note
  • codenuke fix --finding <id>: run the explicit patch loop for one finding
  • codenuke revalidate --finding <id>: re-check one finding
  • codenuke revalidate --all: re-check open findings with report-style filters
  • codenuke doctor: check provider availability
  • codenuke clean-locks: clear feature locks

Useful flags:

  • --root <path>
  • --state-dir <path>
  • --config <path>
  • --json
  • --plain
  • --limit <n>
  • --jobs <n>
  • --source <heuristic|auto|agent>
  • --feature <id>
  • --project <name-or-root>
  • --finding <id>
  • --status <status>
  • --severity <severity>
  • --provider <name>
  • --model <name>
  • --reasoning-effort <none|minimal|low|medium|high|xhigh>
  • --ludicrous-mode for high-recall review candidates during codenuke review
  • --output <path> / -o <path>
  • --dry-run
  • --force

Unknown flags fail fast.

State

State is project-local by default:

.codenuke/
  config.json
  project.json
  features/*.json
  findings/*.json
  patches/*.json
  reports/*.md
  runs/*.json

Feature records are the durable work units. Findings and patch attempts link back to features so runs can resume and be audited.

Safety

  • Review does not edit files.
  • Fix is explicit and selected by finding ID.
  • Fix refuses a dirty source worktree by default.
  • Codenuke never commits, pushes, opens PRs, or lands changes today.
  • Provider output is parsed through strict schemas.
  • Symlinked directories and generated build output are skipped during mapping.

See docs/spec.md for the longer product and implementation spec.