Show HN: Slop-deps – Catch hallucinated package imports before install github.co...

@show

Show HN: Slop-deps – Catch hallucinated package imports before install github.com · 3 points · 1 comments · HN thread

TL;DR slop-deps is a zero-dependency command-line scanner, published on npm, that statically reads JS/TS, Python, Rust, Kotlin/Gradle and manifest files and flags imports of packages that do not exist on npm, PyPI, crates.io or Maven/Gradle before any install runs. It is aimed at catching AI-hallucinated package names, which attackers can register with malicious install scripts. The author states the whole codebase was written by AI agents under human direction, and the project is MIT licensed.

  • Scans raw source and manifests without running a package manager, so it flags hallucinated imports before lifecycle scripts like preinstall or setup.py can execute.
  • Checks names against a bundled offline corpus of 4,179 popular packages and against live registry probes with local TTL caching.
  • Includes an offline typosquat engine using Damerau-Levenshtein and homoglyph checks, e.g. flagging 'reqeusts' as one edit from 'requests'.
  • Offers --staged for pre-commit use, --offline for air-gapped runs, --json and --sarif output for CI, and --strict mode with a defined exit code contract.
  • Corpus integrity is verified against a SHA-256 manifest; the Windows installer is unsigned, and the author notes SmartScreen may warn.
  • The README discloses that all code and tests were authored by AI agents (Antigravity, Claude, DeepSeek) with human architectural direction; the author calls it not a product to be sold.

Discussion The thread has only one comment, so there is little discussion. The single commenter questions the need for the tool, asking whether developers could simply instruct their AI agent to research package names before adding them, since the model's training data may be outdated. The mood is skeptical and low-key, with the Show HN post getting minimal engagement at 3 points.

  • Agents should just verify packages through research (a few): The only commenter suggests the problem can be solved by instructing the coding agent to check registries before adding dependencies, rather than by a separate scanner. They point out that the model's knowledge of packages may be stale.

#supplyChainSecurity #aiCodingAssistants #npm #pypi #staticAnalysis #showHN