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.
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.
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.
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.
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.
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.
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.
Web frameworks. FastAPI and Flask are top-requested. All MIT/BSD.
Data stack. All BSD/MIT. Polars is the fast newcomer.
Web frontends and runtimes. All MIT. Zod for schema validation.
Systems programming. Rust docs are exceptionally good source material.
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
}
]
}
List available versions and budgets for a library.
curl "https://docs.4bots.ai/v1/free/pack/fastapi/list"
Health check. Always free, always returns 200.
curl "https://docs.4bots.ai/health"
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.
No signup. No API key. Just send a request.
How x402 works