{"uid":"cap_Kw2R9aNxSI5VuxMWl1ZUw","slug":"npm-package-health-inspector-3523a6ce","name":"npm Package Health Inspector","description":"npm package inspection API: latest version, publish date, license, deprecation status, dependency count, and maintainer count for any npm package. Dependency hygiene for coding agents, cached hourly.","url":"https://x402.forgemesh.io/npm-package-health","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"package":{"type":"string","description":"package name, e.g. express"}}},"responseSchema":{"type":"json","example":{"data":{"name":"express","license":"MIT","version":"4.21.2","dependencies":{"accepts":"~1.3.8"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uYhgx1jXzSVH4k2LPqZ5y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns latest version, publish date, license, deprecation status, dependency count, and maintainer count for any npm package.","exampleAgentPrompt":"Can you check the health of the 'lodash' npm package — I want to know if it's deprecated, what the latest version is, how many dependencies it has, and who maintains it?","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the package's latest version number, publish date, SPDX license identifier, deprecation status (boolean or message), total dependency count, and number of maintainers. Results are cached hourly.","failureModes":["Package name not found on npm registry — returns 404 or error indicating unknown package","Misspelled or scoped package name causes lookup failure","npm registry temporarily unavailable — cached data may be stale or endpoint returns 503","Payment of 0.003 USDC not completed via x402 protocol — request rejected"],"whenToPreferThis":"Use this endpoint when an AI coding agent needs to quickly assess npm package health before recommending or installing a dependency — especially useful for checking deprecation status, license compatibility, dependency bloat, or maintainer activity without scraping the npm website directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T06:39:15.774Z","isFirstParty":false}