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

slopsniper

v0.1.2

Published

Surgical dead code + AI slop hunter for TypeScript codebases

Downloads

72

Readme

SlopSniper

Surgical dead code and AI slop hunter for TypeScript.

SlopSniper is a high-confidence, deterministic validation engine designed to keep your codebase lean and professional. Unlike generic linters, SlopSniper focuses on the "slop" that accumulates in the AI era: exported symbols that are never used, large blocks of commented-out code, and over-engineered "helper" functions that add zero value.

It is built to be a CI Gate—a tool that stays silent until it finds something that shouldn't be there.

Features (Phase 1)

| Rule ID | Name | Detection Logic | | :--- | :--- | :--- | | 001 | dead-export | Symbols (export) that are never imported elsewhere in the project. | | 002 | stale-comment | 3+ consecutive lines of commented-out code (ignores JSDoc and license headers). | | 003 | redundant-alias | Pointless aliases like import { foo as foo }. | | 004 | over-engineered-helper | Functions used exactly once that wrap a single native operation (e.g., a + b). | | 005 | console-pollution | console.log or console.debug in production code (skips test files). |

Why SlopSniper?

  1. Deterministic: No AI, no probabilities. It uses the TypeScript compiler's own symbol resolution and AST.
  2. Skeptic-Proof: Built-in filters for JSDoc, license headers, and test files to minimize false positives.
  3. Baseline System: Adopt SlopSniper on legacy codebases without failing the build. Lock in current debt and only catch new slop.
  4. CI Ready: Exits 0 on clean, 1 on slop.

Installation

npm install -g slopsniper

Usage

Local Scan

slopsniper .

Adoption on Legacy Projects (The Baseline Workflow)

If you have an existing codebase with a lot of "slop," don't try to fix it all at once. Use a baseline:

  1. Create Baseline: slopsniper . --baseline
    • This creates a .slopsniper-baseline.json file.
  2. Commit the Baseline: git add .slopsniper-baseline.json && git commit -m "chore: add slopsniper baseline"
  3. Run in CI: slopsniper .
    • SlopSniper will now ignore all issues in the baseline and only fail the build if new slop is introduced.

Output

SlopSniper provides both human-readable and machine-readable output.

Machine-Readable (JSON)

slopsniper . --json

Returns a detailed JSON manifest of all detected slop, including file paths, line numbers, and specific reasons for flagging.

GitHub Action

Add SlopSniper to your workflow:

- name: SlopSniper Check
  uses: tacossunrise17/[email protected]
  with:
    path: '.'

License

MIT