{"uid":"cap_ROX0murFHSboIMTUIBSAJ","slug":"1gateway-package-health-check-75824eb3","name":"1gateway Package Health Check","description":"Use when an agent must decide whether to add or keep a dependency. Input: package, ecosystem (npm, PyPI, crates.io), optional version (default latest). Output: JSON flags (deprecated, yanked, outdated, vulnerable, no_license, no_release_2y), latest version, license, publish dates, maintainer count, downloads, repository, OSV advisories. Example: ?package=request&ecosystem=npm","url":"https://1gateway.dev/v1/dev/package?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":["package","ecosystem"],"properties":{"package":{"type":"string","maxLength":214,"description":"Package name as in its registry (npm scopes allowed: @scope/name)"},"version":{"type":"string","maxLength":64,"description":"Exact released version (default: latest); unknown version → 404, not charged"},"ecosystem":{"enum":["npm","PyPI","crates.io"],"type":"string","description":"Registry (case-insensitive; pip/python, cargo/rust also accepted)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["package","ok","flags","registry","vulnerabilities","attribution"],"properties":{"ok":{"type":"boolean"},"flags":{"type":"array","items":{"type":"string"}},"package":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"ecosystem":{"type":"string"},"requested":{"type":"string"}},"additionalProperties":true},"registry":{"type":"object","properties":{"license":{"type":"string"},"isLatest":{"type":"boolean"},"publishedAt":{"type":"string"},"latestVersion":{"type":"string"},"latestPublishedAt":{"type":"string"},"daysSinceLatestRelease":{"type":"integer"}},"additionalProperties":true},"attribution":{"type":"string"},"vulnerabilities":{"type":"object","properties":{"top":{"type":"array"},"count":{"type":"integer"},"bySeverity":{"type":"object","additionalProperties":true},"vulnerable":{"type":"boolean"},"fixedVersionsMentioned":{"type":"array"}},"additionalProperties":true}},"additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CpkR5djXv3J9LKsejDi4W","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks a package from npm, PyPI, or crates.io for health signals including deprecation, vulnerabilities, license issues, and staleness","exampleAgentPrompt":"Before I add it to my project, can you check whether the npm package 'request' is deprecated, vulnerable, or missing a license — and tell me the latest version and how many maintainers it has?","exampleUseCases":[{"title":"Pre-install dependency safety check","prompt":"I'm about to install the PyPI package 'requests' — can you check if it's safe, up to date, has a license, and hasn't had any known vulnerabilities reported?"},{"title":"CI pipeline dependency audit","prompt":"Before merging this PR, check whether the crates.io package 'serde' version 1.0.150 is yanked, has any OSV security advisories, and whether it's the latest release."},{"title":"Vetting an unfamiliar npm package","prompt":"Someone suggested I use the npm package 'left-pad' — can you tell me if it's still maintained, how many downloads it gets, and whether there are any red flags like deprecation or no license?"}],"resultDescription":"A JSON object containing: a boolean 'ok' field, an array of risk flag strings (deprecated, yanked, outdated, vulnerable, no_license, no_release_2y), package metadata (name, version, ecosystem), registry details (latest version, license, homepage, repository, publish dates, download counts, maintainer count, versions count, days since latest release, yanked/deprecated status), and a vulnerabilities object with OSV advisory data.","failureModes":["Unknown package name returns 404 and no charge","Unknown/nonexistent version returns 404 and no charge","Unsupported ecosystem returns validation error","Registry API unavailability may cause timeout or 503","Scoped npm packages (@scope/name) must be URL-encoded properly"],"whenToPreferThis":"Use this endpoint when an AI agent needs to make a go/no-go decision about adding or upgrading a dependency in npm, PyPI, or crates.io. It aggregates deprecation, vulnerability (OSV), license, staleness, and popularity signals in a single call. Prefer it over raw registry APIs (npmjs.com, PyPI JSON API) because it normalizes data across ecosystems and surfaces actionable risk flags in one structured response. It's especially useful in CI pipelines, PR review bots, or interactive coding assistants that need a quick health verdict on a package.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:44:55.751Z","isFirstParty":false,"canonicalSlug":"1gateway-package-health-check-75824eb3"}