Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By secondskyv3.12.0MITIn 1 marketplace
Builds streaming, type-safe chat endpoints and React clients that call OpenAI, Anthropic, Gemini or Ollama through one interface. Tools can be defined once and shared across server and client, with approval gates. Claims to be alpha-channel TanStack AI; you need the alpha packages installed.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
tanstack-ai, llm-chat, streaming-chat, tool-calling, agent-loop, tool-approval, tanstack, machine-learning ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Status: Production Ready ✅
Last Updated: 2025-12-09
Production Tested: Streaming chat with OpenAI gpt-4o + tools in Next.js API route (alpha channel)
Gives a copy/paste blueprint for TanStack AI’s alpha SDK: install the right adapter, expose a streaming chat route, define isomorphic tools with approval gates, and wire React clients with SSE adapters. It highlights per-model type safety, agent loop caps, and observability hooks to keep tool calls safe and debuggable.
✅ Streaming chat API template (Next.js / TanStack Start)
✅ Isomorphic tool definitions with approval + Zod validation
✅ Client wiring with useChat, fetchServerSentEvents, and tool registration
✅ Agent loop safeguards and per-model option typing
| Issue | Why It Happens | How Skill Fixes It |
|---|---|---|
| Tool not found | Definitions never sent to chat() | Keep shared toolDefinition exports and pass to server tools list |
| Streaming stalls | Server uses chunked response but client expects SSE | Pair toStreamResponse with fetchServerSentEvents (or matching adapter) |
| Invalid model options | Vision/audio params sent to unsupported model | Use adapter typings + per-model options to catch at compile time |
# 1) Install core + adapter
pnpm add @tanstack/ai @tanstack/ai-react @tanstack/ai-openai zod
# 2) Copy route + tools
cp assets/api-chat-route.ts app/api/chat/route.ts # Next.js
cp assets/tool-definitions.ts src/tools/definitions.ts # adjust path
# 3) Validate env and run dev
./scripts/check-ai-env.sh
pnpm dev
Result: A streaming chat endpoint with tool approval and SSE client wiring.
Full instructions: See SKILL.md
| Package | Version | Status |
|---|---|---|
| @tanstack/ai | latest (alpha) | ✅ |
| @tanstack/ai-react | latest | ✅ |
| @tanstack/ai-client | latest | ✅ |
| @tanstack/ai-openai | latest | ✅ |
| zod | latest | ✅ |
Prerequisites: None
Integrates With:
tanstack-ai/
├── SKILL.md # Full instructions + references
├── README.md # Quick reference (this file)
├── scripts/
│ └── check-ai-env.sh # Verifies provider API keys
├── references/
│ └── tanstack-ai-cheatsheet.md # Condensed patterns + troubleshooting
└── assets/
├── api-chat-route.ts # Streaming chat route template
└── tool-definitions.ts # toolDefinition examples with approval
Found an issue or suggestion? Open an issue on the repo and reference tanstack-ai. See SKILL.md for full details.
Ready to use. Copy the assets, verify env keys, and ship a streaming tool-enabled chat.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub secondsky/claude-skills --plugin tanstack-aiPlugins from other owners that cover similar ground