{"uid":"cap_LBXsD3po_tWl0SRPeidaN","slug":"pkg-preflight-eab7d111","name":"pkg-preflight","description":"Install-safety preflight for one dependency BEFORE pip install / npm i. Returns a safe / caution / block verdict fusing existence, OSV malware flags, typosquat distance to a popular package, a known-hallucination corpus, and freshness metadata. Supply-chain indicators, not a guarantee.","url":"https://payai.agentstools.dev/pkg/preflight?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["ecosystem","name"],"properties":{"name":{"type":"string","description":"Package name to screen"},"ecosystem":{"enum":["npm","pypi"],"type":"string","description":"Package ecosystem (aliases: pip/python, node)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Dy98snFHw8KrhGbXyFesL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks npm or PyPI package names for typosquatting and supply-chain risk, returning a safety verdict and nearest legitimate package match.","exampleAgentPrompt":"Before I install it, can you check if 'requets' on PyPI is a typosquatting attempt or looks like a supply-chain risk?","exampleUseCases":[{"title":"CI pipeline dependency safety gate","prompt":"We're about to merge a PR that adds 'colurama' as a PyPI dependency — can you screen it for typosquatting or supply-chain risk before it lands?"},{"title":"Audit suspicious npm package in logs","prompt":"Our SIEM flagged an install of 'lodahs' from npm — can you check if that's a typosquatted version of a popular package and tell me what the nearest legitimate package would be?"},{"title":"Developer vetting new open-source library","prompt":"I found a Python package called 'boto3s' on PyPI — is it a legitimate library or could it be a typosquatting attack against boto3?"}],"resultDescription":"Returns a safety verdict (e.g. safe, suspicious, or flagged), the nearest popular legitimate package name, and basic supply-chain risk indicators such as typosquatting distance and any known red flags for the queried package name.","failureModes":["Unknown ecosystem value returns a validation error — use 'npm' or 'pypi' exactly","Package name not found in any known registry returns a not-found or inconclusive verdict","Very new or obscure legitimate packages may lack enough signals and return an inconclusive result","Rate limiting or payment failure (x402) returns a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a fast, pre-install safety screen of a package name before adding it as a dependency, especially in automated CI/CD pipelines or agent workflows that install open-source packages. Prefer it over manual searches when you need a programmatic verdict with a nearest-match comparison rather than just a raw search result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:47:34.322Z","isFirstParty":false,"canonicalSlug":"pkg-preflight-eab7d111"}