P

payload402 · License Check

by payload402

GETBase

$0.01

per call · USD Coin on Base

npm package license triage for coding agents: resolve the declared license for one name@version from the public npm registry, normalize to SPDX where possible, and return a permissive-default compatibility flag. Use before adding a dependency mid-task. Triage only — not compliance-grade SBOM or legal advice.

Endpoint

GET https://payload402.edgebytenet.workers.dev/license/check

2

Calls / 30d

1

Unique payers / 30d

Sep 2

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://payload402.edgebytenet.workers.dev/license/check", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://payload402.edgebytenet.workers.dev/license/check?pkg=lodash&version=4.17.21" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "compatible": "yes",
  "disclaimer": "Triage indicator only, not legal or compliance advice",
  "license": "MIT",
  "package": "lodash",
  "policy": "permissive-default",
  "reason": "Permissive license matches permissive-default policy",
  "source": "npm-registry",
  "spdx": "MIT",
  "version": "4.17.21"
}

Payment details

Pay to0x555379f9f4750eb34ffc8b3daf8eda2ea0f6d112
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from payload402 & similar services