Kits / 01 · Claude API Kit
Claude API Kit
10 runnable TypeScript examples for the Claude API. Read one, run it, steal it — and ship a real feature this afternoon instead of reading docs all week.
What's inside
Ten self-contained files.
- Streamingtoken-by-token output for responsive chat UIs.
- Tool usetyped tools plus an automatic agent loop, validated with Zod.
- RAGretrieve and answer with citations, no extra service.
- Guaranteed JSONstructured output that's validated before you trust it.
- Prompt cachingcut input cost dramatically on repeated context.
- Vision · PDF · Batchimage Q&A, native PDF reading, half-price async bulk runs.
- Reusable clientone configured client with a model picker, shared across every example.
Requirements
Bring two things.
Node 20+ and your own Anthropic API key. No framework lock-in, no vendor to wire up beyond your key. You ship code, not compute.
License
Yours to keep.
Single-developer commercial license with lifetime updates. Use it in your own products. When the API changes, you get the refreshed examples — no re-purchase.
Get it — €19