81trust / 100

Verify Package

by realdep-package in Security & trust

x402 APIPassing, checked 2 h ago

Verify a package: does it exist, is it deprecated or yanked, and does it have known vulnerabilities? Checked against the npm/PyPI/crates.io registry plus OSV.dev advisories.

POST https://goodsong.dev/verify/package

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
239 ms typical, 239 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://goodsong.dev/verify/package" \
  -H "content-type: application/json" \
  -d '{"ecosystem":"npm","name":"chalk","version":"5.3.0"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fgoodsong.dev%2Fverify%2Fpackage
const res = await pay("https://goodsong.dev/verify/package", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"ecosystem":"npm","name":"chalk","version":"5.3.0"}),
});
console.log(await res.json());

Example input

{
  "ecosystem": "npm",
  "name": "chalk",
  "version": "5.3.0"
}

Example output

{
  "canonical": {
    "ecosystem": "npm",
    "latest_version": "5.3.0",
    "name": "chalk",
    "version": "5.3.0",
    "vulnerabilities": []
  },
  "checks": {
    "deprecated": false,
    "exists": true,
    "vulnerable": false
  },
  "cost": {
    "amount": "0.005",
    "currency": "USDC"
  },
  "evidence": [
    {
      "retrieved_at": "2026-08-30T12:00:00Z",
      "source": "npm",
      "url": "https://registry.npmjs.org/chalk"
    },
    {
      "retrieved_at": "2026-08-30T12:00:00Z",
      "source": "osv",
      "url": "https://api.osv.dev/v1/query"
    }
  ],
  "latency_ms": 210,
  "verdict": "confirmed"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402257 ms$0.005
7 h agoPassed402239 ms$0.005