Use before a coding agent installs an unfamiliar npm dependency
agent-api-production.tim1712.workers.dev/v1/npm/install-preflight
Use before a coding agent installs an unfamiliar npm dependency. Returns current facts from the official npm registry: the version `npm install` resolves (dist-tags.latest), prerelease and deprecation status, engines.node compatibility with an optional target Node version (real SemVer evaluation), license, days since release, best-effort weekly downloads, repository URL and maintainer count. Facts
POST
https://agent-api-production.tim1712.workers.dev/v1/npm/install-preflightUptime100% of 3 checks in 30 days
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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-api-production.tim1712.workers.dev/v1/npm/install-preflight", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"nodeVersion":"22.14.0","packageName":"zod"}),
});
console.log(await res.json());Example input
{
"nodeVersion": "22.14.0",
"packageName": "zod"
}