25trust / 100

Docs Answer

by Aayat AI in Productivity & SaaS

x402 APIFailing, checked 3 h ago

Reads the project's current docs (llms.txt, docs pages or latest README) for any npm, PyPI, crates or Go library and answers from them alone, with a code example, the version it applies to and cited sources; says so when the docs don't cover it. library is the package name, question your question; ecosystem defaults to npm. POST {library, question}.

POST https://aayatai.com/docs/answer

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
10.0%
Response time
662 ms typical, 662 ms slowest 5%
Last check
3 h ago: Expected HTTP 402, got 410
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://aayatai.com/docs/answer" \
  -H "content-type: application/json" \
  -d '{"ecosystem":"npm","library":"hono","question":"How do I enable CORS for only the /api routes?"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Faayatai.com%2Fdocs%2Fanswer
const res = await pay("https://aayatai.com/docs/answer", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"ecosystem":"npm","library":"hono","question":"How do I enable CORS for only the /api routes?"}),
});
console.log(await res.json());

Example input

{
  "ecosystem": "npm",
  "library": "hono",
  "question": "How do I enable CORS for only the /api routes?"
}

Example output

{
  "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```",
  "docsTokens": 1800,
  "ecosystem": "npm",
  "fetchedAt": "2026-09-28T12:00:00.000Z",
  "library": "hono",
  "question": "How do I enable CORS for only the /api routes?",
  "sources": [
    {
      "kind": "docs-page",
      "url": "https://hono.dev/docs/middleware/builtin/cors"
    }
  ],
  "version": "4.13.9"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoExpected HTTP 402, got 41041033 ms-
7 h agoExpected HTTP 402, got 410410108 ms-
11 h agoExpected HTTP 402, got 410410231 ms-
15 h agoExpected HTTP 402, got 410410240 ms-
20 h agoExpected HTTP 402, got 410410314 ms-
23 h agoExpected HTTP 402, got 410410131 ms-
28 h agoExpected HTTP 402, got 410410110 ms-
31 h agoExpected HTTP 402, got 41041039 ms-
34 h agoExpected HTTP 402, got 410410129 ms-
39 h agoPassed402662 ms$0.02