{"uid":"cap_XzjSeRgOAgw3s_T3qCPoq","slug":"payload402-batch-npm-license-lockfile-triage-95e64386","name":"payload402 Batch npm License Lockfile Triage","description":"Batch npm license triage for coding agents — pass packages from a lockfile (name@version list, max 20). Returns per-package SPDX + permissive-default compatible, rollup counts, and overall yes|no|unknown. Not a compliance SBOM. Use before merge or mass install; single-package use GET /license/check.","url":"https://payload402.edgebytenet.workers.dev/license/lockfile?utm_source=zero.xyz","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":["packages"],"properties":{"packages":{"type":"string","description":"Comma-separated name@version list (max 20), e.g. lodash@4.17.21,express@4.18.2"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":2,"failed":0,"policy":"permissive-default","source":"npm-registry","checked":2,"overall":"yes","summary":{"no":0,"yes":2,"unknown":0},"failures":[],"packages":[{"spdx":"MIT","policy":"permissive-default","reason":"Permissive license matches permissive-default policy","source":"npm-registry","license":"MIT","package":"express","version":"4.18.2","compatible":"yes","disclaimer":"Triage indicator only, not legal or compliance advice"},{"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"}],"disclaimer":"Triage indicator only, not legal or compliance advice"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_U5hWaJZYMSZKA2IrZG2E_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks up to 20 npm packages (name@version) at once for SPDX license identity and permissive-default policy compatibility, returning per-package results plus an overall rollup.","exampleAgentPrompt":"Before I merge this PR, check the licenses for lodash@4.17.21, express@4.18.2, and axios@1.6.0 — are they all permissive-default compatible?","exampleUseCases":[{"title":"Pre-merge lockfile license gate","prompt":"I'm about to merge a PR that adds these packages: lodash@4.17.21, express@4.18.2, chalk@5.3.0, and dayjs@1.11.10 — can you check whether all of them are permissive-default compatible before I approve?"},{"title":"Detecting copyleft in a new project scaffold","prompt":"I just scaffolded a new Node project and want to make sure none of these packages are copyleft: react@18.2.0, react-dom@18.2.0, next@14.0.0, and tailwindcss@3.3.3. Flag any that aren't permissively licensed."},{"title":"Unblocking a coding agent mid-task","prompt":"My coding agent is about to run yarn add for these packages: zod@3.22.4, ts-morph@21.0.1, and prettier@3.2.5. Quickly triage their licenses so I know if it's safe to proceed or if I need to swap something out."}],"resultDescription":"A JSON object with an overall compatible flag (yes/no/unknown), per-package entries each containing SPDX license id, license string, compatibility status, reason, source, and a disclaimer; plus summary counts (yes/no/unknown), total checked, failed count, and a failure list if any packages couldn't be resolved.","failureModes":["Package not found on npm registry returns a failure entry in the failures array","Malformed name@version string causes parse failure for that entry","Exceeding 20 packages in a single request may be rejected or truncated","Network timeout to npm registry produces unknown status","Missing 'packages' query parameter returns an error response"],"whenToPreferThis":"Use this batch lockfile endpoint instead of the single-package endpoint when you need to triage more than one package at a time — for example, before merging a PR, after scaffolding a project, or when a coding agent is about to mass-install dependencies. It is more efficient than calling the single-package endpoint repeatedly and provides a rollup overall status so you can make a single go/no-go decision. Prefer the single-package endpoint only when checking one package interactively mid-task.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:31:43.582Z","isFirstParty":false,"canonicalSlug":"payload402-batch-npm-license-lockfile-triage-95e64386"}