Show HN: Slop-deps – Catch hallucinated package imports before install A developer named vidit released slop-deps, an open-source CLI that statically scans source files and manifests for hallucinated or typosquatted npm, PyPI, Crates.io and Maven/Gradle package imports before any install script runs. The tool bundles a corpus of 4,179 verified ecosystem packages for offline checks, probes upstream registries over HTTPS with local TTL caching, and uses Damerau-Levenshtein and homoglyph detection to flag lookalike names such as 'reqeusts' for 'requests'. It ships as an npm package (npm install -g slop-deps) and a Windows standalone binary, with a documented exit-code contract (0 clean, 1 findings, 2 strict failure) for CI/CD use. Architected by vidit. Engineered by AI Antigravity Catch hallucinated, non-existent npm, PyPI, Crates.io, and Maven/Gradle packages before you run install and get owned. Web Scanner: slop-deps.pages.dev https://slop-deps.pages.dev/ · npm: npm install -g slop-deps Instant scan, zero install npx slop-deps Or install globally npm install -g slop-deps slopdeps Windows standalone binary slopdeps-installer.exe is also available on Releases https://github.com/viditx/slop-deps/releases . bash $ slopdeps CRITICAL fake-jwt-decoder-super-auth-xyz npm src/auth/jwt.ts:4 Package DOES NOT EXIST on npm. Potential AI hallucination trap Did you mean 'jsonwebtoken'? WARN reqeusts pypi services/api.py:12 Typosquat risk: 1 edit from 'requests'. Summary: 2 flagged 1 CRITICAL, 1 WARN , 140 clean. Elapsed: 142ms. Zero dependencies. Fail-closed exit. AI coding assistants Claude, Cursor, Copilot invent package names that don't exist on public registries. Attackers crawl GitHub for these 404 imports, register the exact hallucinated package on npm/PyPI with a malicious preinstall payload, and wait. The moment you run npm install or pip install : 1. Package manager executes lifecycle scripts preinstall , setup.py before compilers or linters touch the code. 2. The payload runs in your shell, exfiltrating .env secrets or SSH keys. 3. Traditional tools npm audit , Snyk only inspect dependencies after install scripts have already executed. slop-deps statically scans raw source files .js , .ts , .py , .rs , .kt , .gradle and manifests to catch hallucinations before anything touches your disk or package manager. - Static Lexer: Zero-dependency lexical parser for JS/TS, Python, Rust, Kotlin/Gradle, and manifests. Handles dynamic imports, static concatenation 'a' + 'b' , and type-only imports without compiler overhead. - Bundled Popularity Corpus: 4,179 ecosystem packages verified offline in sub-millisecond time with zero telemetry. - Upstream Registry Probes: Direct HTTPS checks to npmjs.org , pypi.org , crates.io , and Maven Central / Google Maven / Gradle Plugin Portal with local TTL disk caching. - Offline Typosquat Engine: Damerau-Levenshtein and homoglyph detection for lookalike attacks targeting popular dependencies reqeusts - requests . - Private Scope Discovery: Auto-detects internal enterprise packages from .npmrc and root package.json to prevent false alarms on internal monorepo code. Scan current repository slopdeps Scan only git-staged files fast pre-commit slopdeps --staged Air-gapped mode bundled corpus + cache only, zero network slopdeps --offline AI auto-repair with secondary hallucination guard BYOK slopdeps --fix CI/CD integration slopdeps --json slopdeps --sarif results.sarif slopdeps --strict | Flag | Purpose | |---|---| | -d, --dir