{"openapi":"3.1.0","info":{"title":"Ops Control HQ npm Health Snapshot","version":"1.0.10","description":"Read-only npm package-health snapshot. Paid via x402 v2 on Base USDC. The response includes the exact npm weekly-download date range. A free representative React sample is available at /sample."},"servers":[{"url":"https://tkoqkknsezxavtxfywkm.supabase.co/functions/v1/npm-health-x402-v2"}],"paths":{"/v1/npm-health":{"get":{"operationId":"inspectNpmPackageLatestVersionWeeklyDownloadsMaintainersDeprecationHealth","summary":"Inspect an npm package: latest version, release age, weekly downloads, maintainers, deprecation and health flags","description":"Fast read-only npm package health snapshot for dependency selection and maintenance checks. Returns latest version and publish age, weekly downloads with exact date range, maintainer and dependency counts, deprecation status, license, repository/homepage, deterministic risk flags and heuristic risk score; not a security audit.","x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"0.003","currency":"USD"},"parameters":[{"name":"package","in":"query","required":true,"schema":{"type":"string"},"description":"npm package name"}],"responses":{"200":{"description":"Paid package-health JSON including weeklyDownloadsPeriod.start/end","content":{"application/json":{"schema":{"type":"object","required":["package","latestVersion","publishedAt","daysSincePublish","weeklyDownloads","weeklyDownloadsPeriod","maintainers","dependencies","license","deprecated","riskScore","flags","checkedAt"],"properties":{"package":{"type":"string"},"latestVersion":{"type":"string"},"publishedAt":{"type":["string","null"]},"daysSincePublish":{"type":["number","null"]},"weeklyDownloads":{"type":"integer"},"weeklyDownloadsPeriod":{"type":"object"},"maintainers":{"type":"integer"},"dependencies":{"type":"integer"},"license":{"type":["string","null"]},"deprecated":{"type":"boolean"},"riskScore":{"type":"number"},"flags":{"type":"array","items":{"type":"string"}},"checkedAt":{"type":"string","format":"date-time"},"nextStep":{"type":"object"}}}}}},"402":{"description":"x402 payment required"}}}}}}