{"uid":"cap_kg_ObZtizj7LP5zGu66-a","slug":"defi-shield-hazel-vercel-app-6cf47faf","name":"License Compatibility Checker","description":"","url":"https://defi-shield-hazel.vercel.app/api/dev/license-check","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"properties":{"dependencies":{"type":"array","description":"Array of npm package names to check"},"project_license":{"type":"string","description":"Your project's license (default: MIT)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"dependencies":["lodash","axios"],"project_license":"MIT"},"type":"http","method":"POST","bodyType":"json"}},"response":{"summary":{"total":2,"unknown":0,"copyleft":0,"conflicts":0,"permissive":2,"restrictive":0},"packages":[{"name":"axios","license":"MIT","category":"permissive","compatible_with_mit":true},{"name":"lodash","license":"MIT","category":"permissive","compatible_with_mit":true}],"conflicts":[],"risk_level":"low","analyzed_at":"2026-06-13T04:21:50.673Z","project_license":"MIT","response_time_ms":63}},"exampleRequest":{"dependencies":["lodash","axios"],"project_license":"MIT"},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IoV-poA_YrE2jxtm4SikA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks npm package licenses for copyleft/restrictive conflicts by performing real npm registry lookups and detecting incompatible license combinations","exampleAgentPrompt":"Can you check whether the npm package 'react-query' has any copyleft or restrictive license conflicts that would prevent me from using it in a closed-source commercial app?","exampleUseCases":null,"resultDescription":"Returns the license type(s) found for the specified npm package(s) via real registry lookup, along with compatibility assessment, copyleft/restrictive conflict flags, and a summary of any licensing issues detected.","failureModes":["Package not found on npm registry — returns 404 or error indicating unknown package","Network timeout reaching npm registry — returns upstream error","Invalid or malformed package name — returns validation error","Package has no declared license — returns ambiguous/unlicensed flag","Rate limit or payment failure — returns 402 or 429 error"],"whenToPreferThis":"Use this endpoint when you need to programmatically verify open-source license compatibility for npm packages before including them in a project, especially to detect copyleft (GPL, AGPL, LGPL) or other restrictive licenses that could create compliance obligations in commercial or proprietary software.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:49:42.159Z","isFirstParty":false}