{"uid":"cap_AKlAiFFy4kdlGQNAwcAEE","slug":"npm-package-info-api-x402-forgemesh-io-9637e463","name":"npm Package Info API (x402.forgemesh.io)","description":"npm package info API: the latest published version of any npm package with its publish metadata, license, declared dependencies, deprecation notice if any, and dist details — the pre-install check coding agents should always run. Scoped packages: URL-encode the slash. Cached 1 hour.","url":"https://x402.forgemesh.io/npm-package-info","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_9TUHP6AYT9-OxgFO8bCci","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 the latest published version, metadata, license, dependencies, deprecation notice, and dist details for any npm package by name.","exampleAgentPrompt":"Before I install it, can you pull up the latest npm package info for 'express' — I want to see the version, license, whether it's deprecated, and what dependencies it declares?","exampleUseCases":null,"resultDescription":"A JSON object containing the latest published version number, publish timestamp and metadata, SPDX license identifier, declared dependencies (dependencies, devDependencies, peerDependencies), any deprecation notice, and dist fields (tarball URL, integrity hash, file count, etc.) for the requested npm package.","failureModes":["Package not found on npm registry — 404 or empty result","Invalid package name format — validation error","Scoped package name not URL-encoded — parsing failure or 404","Payment not processed — x402 payment required error","Stale data returned — results cached for up to 1 hour, may not reflect packages published in the last hour","Network timeout reaching npm registry upstream"],"whenToPreferThis":"Use this endpoint when a coding agent needs a fast, pre-install sanity check on any npm package — especially to confirm the latest version, verify the license is acceptable, detect deprecation warnings, or inspect declared dependencies before adding to a project. Prefer this over manual npm registry lookups when automating dependency audits or building pipelines that gate installs on metadata checks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:52:04.614Z","isFirstParty":false}