Fetch API docs before coding
Before writing code that integrates with external APIs or SDKs, use Context Hub to get curated, accurate documentation.
Use this BEFORE coding with any external service, especially:
chub search <service-name>
Example: chub search stripe or chub search aws
chub get <doc-id> --lang py # For Python
chub get <doc-id> --lang js # For JavaScript/TypeScript
Example: chub get stripe/payments --lang py
If you discover something the doc doesn't cover:
chub annotate <doc-id> "Note about what was missing or unclear"
After using a doc, rate it:
chub feedback <doc-id> up # If it was helpful
chub feedback <doc-id> down # If it was problematic
| Command | Purpose |
|---|---|
chub search | List all available docs |
chub search <query> | Search for specific docs |
chub get <id> | Fetch a doc (auto-detects type) |
chub get <id> --lang py | Fetch Python-specific version |
chub annotate <id> "note" | Add a persistent note |
chub annotate --list | View all your annotations |
chub feedback <id> up/down | Rate a doc |
chub update | Refresh the registry cache |
Run chub search to see all, but common ones include:
anthropic/claude-api - Claude AI APIstripe/payments - Stripe paymentsaws/s3 - AWS S3auth0/identity - Auth0 authenticationcloudflare/workers - Cloudflare Workers