📚

DOCS

docs.4bots.ai

Library and framework docs, pre-compressed into token-efficient reference cards. Your coding agent gets the section it needs in 800 tokens instead of 15,000. Updated nightly by GX10.

Live Free — 10/day 50+ Libraries x402 Native MCP Compatible

Pre-digested docs. 90% fewer tokens.

When your coding agent needs to understand FastAPI routing or React hooks, it calls DOCS instead of burning 15,000 tokens fetching the full docs. Nightly GX10 batch jobs keep packs current as libraries update. Serves from static cache — zero inference in the request path.

🗂️ Token budgets

Each pack generated at multiple token budgets (200, 500, 1000, full). Agent picks the budget that fits its context window. Free tier gets 200-token minimal packs.

📌 Version pinning

Every pack pinned to a specific library version. Old versions stay available for 6 months. When FastAPI 0.116 drops, the new pack is live within 24 hours.

🔄 Nightly builds

GX10 batch compresses all 50+ libraries every night at 2 AM EST. Validates code examples compile, checks for broken links, verifies token counts within ±10% of budget.

📦 50+ libraries

Python (FastAPI, Flask, Pandas), JS/TS (React, Next.js, Vue), Rust (Tokio, Serde, Axum), Go (std, Gin), AI/ML (PyTorch, Transformers, vLLM). All MIT/Apache licensed.

50+ libraries. All permissively licensed.

We only include libraries with MIT, Apache 2.0, BSD, CC BY 4.0, or CC0/Unlicense licenses. No GPL, no GFDL, no "non-commercial" restrictions.

Python

FastAPI, Flask, Django, Starlette, Litestar

Web frameworks. FastAPI and Flask are top-requested. All MIT/BSD.

Python Data

Pandas, NumPy, Polars, Matplotlib, Scikit-learn

Data stack. All BSD/MIT. Polars is the fast newcomer.

JS/TS

React, Next.js, Vue, Svelte, Express, Hono, Zod

Web frontends and runtimes. All MIT. Zod for schema validation.

Rust + Go

Tokio, Serde, Axum, Go std, Gin, Chi

Systems programming. Rust docs are exceptionally good source material.

One pack. One request. Zero bloat.

GET /v1/free/pack/{library}

Get a compressed doc pack for a library. Free: top 20 libs, latest version, 200-token budget. Paid: all libs, version pinning, multiple budgets.

curl "https://docs.4bots.ai/v1/free/pack/fastapi?version=0.115.0&budget=standard"

Example response:

{
  "library": "FastAPI",
  "version": "0.115.0",
  "pack_token_count": 1847,
  "sections": [
    {
      "name": "Routing",
      "content": "## Routing\n\nFastAPI uses `app.include_router()`...",
      "token_count": 342
    }
  ]
}

GET /v1/free/pack/{library}/list

List available versions and budgets for a library.

curl "https://docs.4bots.ai/v1/free/pack/fastapi/list"

GET /health

Health check. Always free, always returns 200.

curl "https://docs.4bots.ai/health"

Free for light use. Per-lookup or monthly for heavy use.

Free tier covers the top 20 libraries. Per-lookup at $0.002 unlocks all 50+. Monthly key at $5/mo gives unlimited requests and batch queries.

Free
$0 / month
No wallet required
  • 10 requests / day
  • Top 20 libraries only
  • Latest version only
  • 200-token budget only
  • JSON output
Per-Lookup
$0.002 / request
via x402 USDC on Base
  • 1,000 requests / day
  • All 50+ libraries
  • Version pinning
  • 3 token budgets
  • JSON output
Monthly Key
$5 / month
via x402 USDC on Base
  • Unlimited requests
  • All 50+ libraries
  • 5 token budgets
  • Batch query (up to 50)
  • Custom budget target

Give your coding agent faster docs.

No signup. No API key. Just send a request.

How x402 works