{"uid":"cap_7-E6LtRsptMTQHvRcTYgU","slug":"pkgpulse-typosquat-check-a7f40118","name":"pkgpulse Typosquat Check","description":"Dependency intelligence for AI coding agents, paid per-call via x402 (USDC on Base): npm package health scores with a disclosed rubric, typosquat checks, dependency audits. Free index at /, free sample at /api/sample.","url":"https://pkgpulse.letom1176.workers.dev/api/typosquat-check?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":["name"],"properties":{"name":{"type":"string","description":"npm package name to check"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"expresss","reasons":["resembles express (edit distance 1)","name is unclaimed on npm — a hallucinated install command using it could be squatted at any time"],"risk_level":"medium","suspicious":true,"lookalike_matches":[{"popular_name":"express","edit_distance":1,"popular_weekly_downloads":30000000}]}},"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_W4a8ye8aVgO1zb1G7XF58","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":"Checks an npm package name for typosquatting risk by comparing it against popular packages using edit-distance analysis and npm claim status","exampleAgentPrompt":"Can you check if the npm package 'lodahs' is a typosquat — I want to know if it suspiciously resembles a popular package before I add it as a dependency.","exampleUseCases":[{"title":"AI coding agent dependency guard","prompt":"Before installing 'requesst' as a dependency in my project, check whether it's a typosquat of some popular npm package and tell me the risk level."},{"title":"Security audit of hallucinated package","prompt":"My LLM suggested I install 'axois' via npm — can you run a typosquat check to see if it resembles 'axios' and whether it's unclaimed or potentially malicious?"},{"title":"CI pipeline supply chain check","prompt":"As part of our CI process, check whether the npm package 'mongoos' is flagged as a typosquat — I need the risk level and which popular packages it looks like."}],"resultDescription":"Returns a JSON object with the queried package name, a boolean 'suspicious' flag, a 'risk_level' string (e.g. 'medium', 'high', 'low'), a list of 'reasons' explaining the suspicion, and a 'lookalike_matches' array containing popular package names, their edit distances, and their weekly download counts.","failureModes":["Missing 'name' query parameter returns an error","Package name not found on npm may still be flagged as suspicious if it resembles a popular name","Very short or generic names may produce false positives","Payment failure via x402 protocol returns 402 with payment instructions","Rate limiting or worker quota exceeded returns 429 or 503"],"whenToPreferThis":"Use this endpoint when an AI coding agent needs to validate an npm package name before installation, especially when the package was suggested by an LLM (which may hallucinate plausible-sounding but nonexistent package names). It is the right choice for detecting supply chain attacks, catching typosquatted dependencies in CI/CD pipelines, or auditing package names in AI-generated code. Prefer it over generic vulnerability databases when the specific concern is name-similarity spoofing rather than known CVEs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:31:52.896Z","isFirstParty":false,"canonicalSlug":"pkgpulse-typosquat-check-a7f40118"}