{"uid":"cap_DjdOPCbLkDkRDJQEGcj_B","slug":"aayat-ai-library-docs-q-a-6b6b489f","name":"Aayat AI Library Docs Q&A","description":"Ask a coding question about any npm, PyPI, crates or Go library and get an answer written only from its current docs (project llms.txt, docs pages or latest README), with a code example where the docs show one, the version it applies to and cited sources. Says so when the docs don't cover it. POST {library, question}.","url":"https://aayatai.com/docs/answer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"library":{"type":"string","maxLength":214,"minLength":1,"description":"Library/package name as published, e.g. hono, fastapi, serde, github.com/gin-gonic/gin."},"question":{"type":"string","maxLength":1000,"minLength":5,"description":"Your question, e.g. How do I enable CORS for one route?"},"ecosystem":{"enum":["npm","pypi","crates","go"],"type":"string","default":"npm","description":"Package ecosystem: npm, pypi, crates (Rust) or go (Go modules)."}}},"responseSchema":{"type":"json","example":{"answer":"Use the built-in cors middleware on a path pattern [1]:\n\n```ts\nimport { cors } from 'hono/cors'\napp.use('/api/*', cors())\n```","library":"hono","sources":[{"url":"https://hono.dev/docs/middleware/builtin/cors","kind":"docs-page"}],"version":"4.13.9","question":"How do I enable CORS for only the /api routes?","ecosystem":"npm","fetchedAt":"2026-09-28T12:00:00.000Z","docsTokens":1800}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q1XeqR_w13pK4b1sIQIg8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Answers coding questions about npm, PyPI, crates, or Go packages using only their current official documentation, with code examples, version info, and cited sources.","exampleAgentPrompt":"How do I enable CORS for only the /api routes in Hono (npm)? Give me the answer straight from the current Hono docs with a code example.","exampleUseCases":[{"title":"Rust async runtime configuration","prompt":"I'm using the tokio crate in Rust — how do I configure a multi-threaded runtime with a custom number of worker threads? Pull the answer from the current tokio docs with a code example."},{"title":"FastAPI dependency injection usage","prompt":"How does dependency injection work in FastAPI? I want to see a real code example from the official FastAPI docs showing how to declare and use a dependency in a route."},{"title":"Go HTTP client timeout setup","prompt":"Using github.com/gin-gonic/gin in Go, how do I set a request timeout on the HTTP server? Show me exactly what the current gin docs say, with the version it applies to."}],"resultDescription":"A JSON object containing the answer grounded in official docs, an optional code snippet, the library name, ecosystem, the version the answer applies to, a list of cited source URLs with their kind (docs-page, README, llms.txt), and the timestamp when the docs were fetched. If the docs don't cover the question, the answer field says so explicitly.","failureModes":["Library not found in the specified ecosystem — returns an error or 'docs not available' message","Question too vague or too short (under 5 chars) — rejected by input validation","Documentation does not cover the topic — answer field explicitly states this rather than hallucinating","Rate limiting or upstream docs fetch failure — may return a service error","Ecosystem mismatch (e.g. specifying npm for a PyPI-only package) — may return no results"],"whenToPreferThis":"Choose this endpoint when you need a documentation-grounded, cited answer about a specific open-source library — not a general LLM guess. It's ideal when accuracy and source traceability matter, when you need the version the answer applies to, or when building coding agents that must not hallucinate library APIs. Prefer it over general LLM completions when the question is about a specific package's current API surface.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:01:37.331Z","isFirstParty":false,"canonicalSlug":"aayat-ai-library-docs-q-a-6b6b489f"}