Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/package-exists

Checks whether up to 10 package names (optionally with a version) exist in the live npm, PyPI or crates.io registry, for coding agents about to add a dependency they may have invented. Per package: exists, latest version, deprecated or yanked flag, and for a missing name the closest names the registry's own search returns (npm, crates.io; PyPI has no search API). Reads registry metadata only: neve

BaseUnchecked
POSThttps://agents.writerslogic.com/api/v1/package-exists

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://agents.writerslogic.com/api/v1/package-exists", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"items":[{"name":"left-pad"},{"name":"lef-pad"}],"ecosystem":"npm"}),
});
console.log(await res.json());

Example input

{
  "items": [
    {
      "name": "left-pad"
    },
    {
      "name": "lef-pad"
    }
  ],
  "ecosystem": "npm"
}