@tanstack/ai-solid has 8,324 recorded weekly downloads on npm, a decrease of 4.1% over the past 30 days.
It ranks #964 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by +171%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About @tanstack/ai-solid
@tanstack/ai-react
React hooks for building AI chat interfaces with TanStack AI.
Installation
useChat Hook
The useChat hook manages chat state, handles streaming responses, and provides a complete chat interface in a single hook.
Design Philosophy (v5 API):
• You control input state • Just call sendMessage() when ready • No form-centric API - use buttons, keyboard events, or any trigger • More flexible and less opinionated
Basic Usage
API
Options
Return Value
Connection Adapters
Connection adapters provide flexible streaming for different scenarios. See the complete guides:
• 📖 Connection Adapters Guide - Complete guide with examples • 📖 Connection Adapters API - API reference
Quick Examples
SSE (Most Common):
Server Functions:
Custom (e.g., WebSockets):
Backend Endpoint
Your backend should use the chat() method which automatically handles tool execution in a loop:
1. Receive POST requests with this body:
2. Use chat() to stream responses (with automatic tool execution):
The response streams StreamChunk objects as Server-Sent Events:
Note: The chat() method automatically executes tools and emits tool_result chunks - you don't need to handle tool execution manually!
Advanced Usage
With Callbacks
Flexible Triggering
With Custom Headers
Programmatic Control
Multiple Chats
Example Backend (Node.js/Express)
Example Backend (Next.js App Router)
Example Backend (TanStack Start)
TypeScript Types
All types are fully exported:
Features
• ✅ Automatic message state management • ✅ Streaming response handling • ✅ Loading and error states • ✅ Simple sendMessage() API (v5 style) • ✅ You control input state (flexible) • ✅ Abort/stop generation • ✅ Reload last response • ✅ Clear conversation • ✅ Custom headers and body data (via connection adapter options) • ✅ Callback hooks for lifecycle events • ✅ Multiple concurrent chats • ✅ Full TypeScript support
License
MIT
Description from the npm listing.
- ai
- ai-sdk
- typescript
- tanstack
- solid
- solidjs
- hooks
- chat
- streaming
- tool-calling
- structured-outputs
- media-generation
Where @tanstack/ai-solid sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (121)Similar npm AI SDKs plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@tanstack/ai-solid. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.