{"uid":"cap_s1VNL6T7dEjweFTOXPoC1","slug":"writerslogic-npm-symbol-existence-checker-9335e593","name":"WritersLogic npm Symbol Existence Checker","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/symbol-exists?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"entry":{"type":"string","maxLength":100,"description":"package.json exports key, default '.'."},"package":{"type":"string","maxLength":214,"description":"npm package name."},"symbols":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z_$][A-Za-z0-9_$]*$","maxLength":100},"maxItems":20,"minItems":1},"version":{"type":"string","pattern":"^[0-9A-Za-z.+_~-]{1,64}$","maxLength":64,"description":"Exact version or dist-tag (jsDelivr resolves it)."},"typesPath":{"type":"string","maxLength":200,"description":"Declaration file path inside the package, overriding package.json resolution."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7jRTKz-VVzAVFV1wJaRSl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies that named exports (functions, classes, constants, types) exist in the .d.ts TypeScript declaration files of an exact npm package version via jsDelivr","exampleAgentPrompt":"Before I write this code, can you check whether the npm package 'zod' at version '3.22.4' exports the symbols 'z', 'ZodError', and 'ZodSchema' in its TypeScript declarations?","exampleUseCases":[{"title":"Validate imports before code generation","prompt":"I'm generating code that imports 'useQuery', 'useMutation', and 'QueryClient' from '@tanstack/react-query' at version '5.0.0' — can you confirm all three are actually exported in its .d.ts so I don't generate broken imports?"},{"title":"Check package API surface for agent tooling","prompt":"My coding agent keeps calling 'createConnection' and 'defineConfig' from 'drizzle-orm' version '0.29.3' — can you verify those symbols actually exist in that package's TypeScript declaration files?"},{"title":"Audit a deprecated symbol before upgrade","prompt":"We're upgrading 'axios' from '0.27.2' to '1.6.0' — can you check if 'AxiosRequestConfig', 'AxiosResponse', and 'CancelToken' are still exported in the newer version's .d.ts?"}],"resultDescription":"Returns a report indicating for each requested symbol whether it exists in the package's .d.ts export surface, following export lists and relative export-star re-exports (up to 7 files). Reports when the full export surface cannot be enumerated, and returns 'unsupported' for packages that lack bundled declarations or are typed only via @types.","failureModes":["Package lacks bundled .d.ts files and relies on @types — returns unsupported","Package version does not exist on jsDelivr — lookup fails","More than 7 re-export files required to enumerate surface — reports incomplete enumeration","Symbol name does not match pattern ^[A-Za-z_$][A-Za-z0-9_$]*$ — validation error","More than 20 symbols requested — schema validation error","Specified typesPath or entry does not exist in the package — resolution failure"],"whenToPreferThis":"Use this endpoint when an AI coding agent needs to verify that specific named exports actually exist in a typed npm package before generating or executing import statements, preventing hallucinated API calls. Prefer this over static analysis tools when you need a lightweight, fast, remote check against a specific published version without downloading or running code. This is especially useful for LLM-based code generators that may hallucinate function names from popular packages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T18:42:34.150Z","isFirstParty":false,"canonicalSlug":"writerslogic-npm-symbol-existence-checker-9335e593"}