slop-deps

slop-deps.pages.dev

Command-line scanner that catches AI-invented, non-existent dependencies before you run npm install.

GitHub stars
4
License
MIT
Language
JavaScript
Pricing
Open source
Published
Nov 24, 2026

Next steps

What it does

slop-deps is an open-source command-line scanner that statically reads source files and manifests and flags packages that do not exist on public registries or look like typosquats, before npm install or pip install runs. The README explains that AI coding assistants sometimes invent package names that attackers can register with a malicious install script. It checks npm, PyPI, crates.io and Maven/Gradle using a bundled corpus of 4,179 popular packages plus live registry probes, offers --staged for pre-commit checks and exports JSON or SARIF for CI.

Use cases

  • Scan a repo for AI-invented npm, PyPI, crates.io and Maven imports before running install
  • Add a fast pre-commit check with --staged so hallucinated dependencies never reach the branch
  • Export SARIF or JSON results to CI/CD and fail the build on suspicious packages

Frequently asked questions

What is slop-deps?
slop-deps is an open-source command-line scanner that statically reads source files and manifests and flags packages that do not exist on public registries, or that look like typosquats, before you run npm install or pip install.
Why do hallucinated packages matter?
The README explains that AI coding assistants sometimes invent package names, and attackers can register those exact names with a malicious install script, which runs the moment a developer installs them.
Which ecosystems does it check?
According to the README, npm, PyPI, crates.io and Maven/Gradle, using a bundled corpus of 4,179 popular packages plus live registry probes with local caching.
How do I run it?
Run npx slopdeps for an instant scan, or install it globally with npm install -g slop-deps. Flags include --staged, --offline, --json and --sarif. MIT licensed.
Log in to join the discussion