Skip to content
Fourohtwo

denk.halowerk.com/v1/package-exists-check

Check whether packages named in generated code actually exist in npm, PyPI or crates.io, to catch hallucinated dependency names (slopsquatting). Takes package names (or extracts them from JavaScript require/import, Python import and requirements lines) and queries the public registry APIs of npm, PyPI and crates.io.

BaseUnchecked
POSThttps://denk.halowerk.com/v1/package-exists-check

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://denk.halowerk.com/v1/package-exists-check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"packages":[{"ecosystem":"npm","name":"express"},{"ecosystem":"pypi","name":"requests"}]}),
});
console.log(await res.json());

Example input

{
  "packages": [
    {
      "ecosystem": "npm",
      "name": "express"
    },
    {
      "ecosystem": "pypi",
      "name": "requests"
    }
  ]
}