{"uid":"cap_txvQJR-KWdzT6U9VdNjjy","slug":"relay402-npm-package-check-14971278","name":"relay402 NPM Package Check","description":"Typosquat and quality signals for an npm package before installing it: weekly downloads, latest version, license, deprecation notice, repository link, and computed risk flags (low_downloads, deprecated, no_repository, no_license, not_found). A package with 12 weekly downloads pretending to be a popular library is the classic supply-chain attack on coding agents. Pairs with the package-vulns endpoint for CVE checks.","url":"https://relay402.georgespring.workers.dev/api/npm-package-check","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","$schema":"https://json-schema.org/draft/2020-12/schema","required":["name"],"properties":{"name":{"type":"string","pattern":"^(@[a-z0-9-~][a-z0-9-._~]*\\/)?[a-z0-9-~][a-z0-9-._~]*$","maxLength":214}},"additionalProperties":false}},"additionalProperties":false}}},"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_frue4PK3AZKL0CToF4gEg","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 an npm package name for security risk signals, returning a risk score, risk level, and supporting metadata — pay-per-call via USDC on Base, no API key required.","exampleAgentPrompt":"Can you check whether the npm package 'left-pad' is safe to use — I want to know its risk score and any security red flags before I add it as a dependency?","exampleUseCases":[{"title":"Pre-install dependency security check","prompt":"Before I install 'axios' as a dependency in my project, can you check its npm security risk score and tell me if there are any red flags I should know about?"},{"title":"Vetting an unfamiliar open-source package","prompt":"I found this npm package called 'colors2fast' and I've never heard of it — can you run a security check on it and give me a risk level before I trust it in my build pipeline?"},{"title":"Automated agent supply-chain guard","prompt":"My agent is about to install 'node-fetch' — can you verify it's not a risky or malicious npm package and confirm the risk score is acceptable before proceeding?"}],"resultDescription":"Returns a risk score (numeric), risk level (e.g. low/medium/high), and supporting package metadata and security signals for the queried npm package name.","failureModes":["Invalid package name format returns a 400 error","Package not found on npm registry returns an error or null result","Payment not included or insufficient causes a 402 Payment Required response","Network or upstream registry timeout may return a 5xx error"],"whenToPreferThis":"Choose this endpoint when an AI agent or autonomous workflow needs to programmatically vet an npm package for security risk without managing API keys or subscriptions — payment is the authentication via USDC on Base (x402 protocol). Ideal for supply-chain security checks embedded in CI/CD agents or coding assistants.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:39:28.827Z","isFirstParty":false}