@phantomdep/blocklist
v0.1.0
Published
Curated hallucinated-package-name blocklist for PhantomDep
Maintainers
Readme
@phantomdep/blocklist
The curated blocklist of known hallucinated package names used by PhantomDep, a privacy-first, zero-infra guard against slopsquatting (AI-hallucinated dependency) attacks.
The data is bundled (no live network dependency at runtime) and consumed by
@phantomdep/core. A scheduled GitHub Action refreshes it from public research datasets and
community reports.
Install
npm install @phantomdep/blocklistUsage
import { isBlocklisted, loadBlocklist } from "@phantomdep/blocklist";
isBlocklisted("flask-gpt-helper", "pypi"); // boolean
loadBlocklist("npm"); // Set<string> of blocklisted namesData shape
data/<ecosystem>.json:
{
"ecosystem": "npm",
"updated": "2026-06-16",
"entries": [{ "name": "example-hallucinated-pkg", "source": "research-dataset", "note": "optional" }]
}License
MIT © Farhan Raditya Aji
