x402USDC on Baseno API keysno signup
Your coding agent is about to npm install or pip install something. For a fraction of a cent it can first know whether that package is abandoned, deprecated, typosquat bait, or runs code at install time — and whether a "package" an LLM suggested even exists.
Built by people who shipped a silently-broken npm package themselves (a lost bin exec bit — two versions, nobody noticed): the checks here are the ones we wished an agent had run. Every score comes with its full rubric so you can re-derive the number — an auditable score beats a black-box grade.
| Endpoint | Price | What you get |
|---|---|---|
GET /api/package-health ⭐ | $0.005 | 0-100 health score with a disclosed, re-derivable rubric: maintenance, adoption + trend, integrity flags (install scripts, deprecation, license, bus factor), GitHub context. ?name=express |
GET /api/typosquat-check ⭐ | $0.003 | Is this name imitating a popular package? Edit distance + imitation tricks, risk-graded with the package's own facts. Catches hallucinated installs before they execute. ?name=expresss |
GET /api/pick | $0.015 | The 'axios vs got vs undici' call: rank up to 5 alternatives, recommendation with the gap quantified, close calls flagged honestly. ?names=a,b,c |
POST /api/deps-audit ⭐ | $0.015 | POST a package.json: every dep checked for existence (hallucination guard), deprecation, install scripts, staleness. Summary + worst offenders. Up to 40 packages. |
GET /api/vuln-check ⭐ | $0.003 | Known vulnerabilities for the exact version you would install. npm and PyPI ranges resolve like the package manager does; Go, crates.io, Maven, NuGet, RubyGems, Packagist too. Severity, CVSS, CVEs, the fix on your release line. Removed malicious releases caught. ?name=lodash&version=4.17.15 |
POST /api/vuln-audit ⭐ | $0.015 | Vulnerability scan for a whole dependency set: POST a package-lock.json (every transitive package), package.json, requirements.txt or Pipfile.lock. Up to 200 packages, worst offenders and upgrade targets first. |
GET /api/pypi-check | $0.003 | Python preflight before pip install: exists on PyPI? imitates a popular project? stale, yanked, source-only? known vulnerabilities? ?name=reqeusts |
POST /api/pypi-audit | $0.01 | POST a requirements.txt: hallucinated, lookalike, stale and vulnerable projects flagged, up to 30 per call. |
GET /api/sample | free | Full real package-health payload for express — see the exact paid shape before spending anything. |
npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const fetchPay = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(privateKeyToAccount(PRIVATE_KEY)) }],
});
const res = await fetchPay("https://pkgpulse.letom1176.workers.dev/api/package-health?name=left-pad");
console.log(await res.json());
Machine-readable: /openapi.json · agent manifest: GET / with Accept: application/json · free sample: /api/sample · MCP server: npx pkgpulse-mcp · protocol: x402.org