{"uid":"cap_9mxqpykvCiQRQzb8LE_Ec","slug":"payload402-npm-license-checker-5d7442d6","name":"payload402 npm License Checker","description":"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.","url":"https://payload402.edgebytenet.workers.dev/license/check","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["pkg"],"properties":{"pkg":{"type":"string","description":"npm package name"},"version":{"type":"string","description":"Optional semver (default latest)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"spdx":"MIT","policy":"permissive-default","reason":"Permissive license matches permissive-default policy","source":"npm-registry","license":"MIT","package":"lodash","version":"4.17.21","compatible":"yes","disclaimer":"Triage indicator only, not legal or compliance advice"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gDeIPPFBxJoEaAl7D_BT0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves the declared license for a given npm package name@version, normalizes it to SPDX format, and returns a permissive-default compatibility flag for quick triage.","exampleAgentPrompt":"Before I add lodash@4.17.21 to my project, can you quickly check what license it uses and whether it's permissive-compatible?","exampleUseCases":[{"title":"Pre-install dependency license check","prompt":"I'm about to add axios to my project — can you look up its license from npm and tell me if it's permissive so I know it's safe to use in a commercial app?"},{"title":"Triage license for specific package version","prompt":"What license does react@18.2.0 use? I need the SPDX identifier and whether it counts as permissive before I include it in this new codebase."},{"title":"Quick open source compliance scan mid-task","prompt":"I'm in the middle of building something and I just pulled in express as a dependency — can you check its npm license and flag if it's permissive or not?"}],"resultDescription":"Returns the declared license for the requested npm package (and version), normalized to an SPDX identifier where possible, plus a boolean or flag indicating whether the license is considered permissive-default compatible. This is triage-level output, not a full compliance-grade SBOM or legal opinion.","failureModes":["Package name not found on npm registry — returns error or null license","Version string does not match any published release — may fall back to latest or return error","License field missing or non-standard in package.json — normalization may fail, returning raw string","Ambiguous or custom license expression not mappable to SPDX — compatibility flag may be uncertain","Rate limiting or registry outage — transient HTTP error"],"whenToPreferThis":"Use this endpoint when an AI coding agent needs a fast, lightweight license triage for a single npm package mid-task — especially before adding a new dependency to a project. Prefer it over full SBOM tools when you only need a quick permissive-vs-not signal and SPDX normalization for one package at a time, without the overhead of scanning an entire dependency tree.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:43.524Z","isFirstParty":false}