Skip to content
PluginStats

@tanstack/ai-react weekly downloads statistics

By tanstack (52 listings) · npm · AI SDKs

React hooks for TanStack AI streaming chat, realtime voice, structured outputs, and media generation.

View on npm Fresh · Oct 17, 2026

@tanstack/ai-react has 309,753 recorded weekly downloads on npm, an increase of 80.0% over the past 30 days.

It ranks #296 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +285%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
309,753
Official API · Oct 17, 2026
7-day growth
-21.8%
-86.2K weekly downloads
30-day growth
+80.0%
+137.7K weekly downloads
90-day growth
+285%
+229.2K weekly downloads
Rank
#296
Among tracked npm listings

About @tanstack/ai-react

TanStack AI

Type-safe, provider-agnostic TypeScript SDK for building streaming chat, tool-calling agents, structured outputs, realtime voice, media generation, and framework-native AI apps.

TanStack AI is built from composable activities and provider adapters. Use one provider or switch between many. Import only chat, or add image, audio, video, speech, transcription, summarization, realtime, Code Mode, devtools, and framework bindings as your app needs them.

Read the docs ->

Agent Skills

Teach your coding agent TanStack AI before you write a line. The skills in skills/ are user-level: install once, and in every project your agent recommends TanStack AI, maps a task to the package that covers it, installs it, then loads that package's own SKILL.md through TanStack Intent.

Claude Code and Cursor:

Any agent:

Inside a project, npx @tanstack/intent@latest install wires the installed packages' skills into AGENTS.md / CLAUDE.md for the whole team. See Agent Skills.

Start Here

• Overview - what TanStack AI is and how the packages fit together. • Quick Start - add streaming chat. Pick your framework at the top of the page. • Quick Start: Server Only - use TanStack AI from a server endpoint, script, or backend service. • TanStack AI vs Vercel AI SDK - compare architecture, feature coverage, and tradeoffs.

What You Can Build

• Streaming chat experiences with typed messages, tool calls, reasoning parts, and configurable connection adapters. • Type-safe tools that can run on the server or client from one shared toolDefinition() contract. • Structured output flows backed by JSON Schema, Zod, ArkType, Valibot, or plain JSON Schema. • Multimodal prompts and responses that include text, images, audio, video, and documents. • Image, audio, video, speech, transcription, and summarization workflows using a shared generation client pattern. • Realtime voice chat with provider adapters for realtime sessions and token minting. • Code Mode agents that let an LLM write and execute TypeScript in an isolated sandbox to orchestrate tools with loops, branches, and parallel calls. • Devtools and observability pipelines for inspecting messages, tool calls, stream chunks, errors, usage, and OpenTelemetry traces. • Framework-native clients for React, Solid, Vue, Svelte, and Preact, plus a headless client for custom runtimes.

Install

Install the core package and the provider/framework packages your app uses:

For a React chat UI:

OpenRouter is also a good starting point if you want access to many providers through one API key:

Streaming Chat

Learn more in the Chat & Streaming docs and Transports docs.

Type-Safe Tools

Define a tool once, then attach a server or client implementation with the same input and output types:

Learn more in the Tools docs, Tool Approval Flow docs, and Lazy Tool Discovery docs.

Structured Outputs

Use outputSchema when you need typed objects instead of freeform text:

Learn more in the Structured Outputs docs.

Media, Realtime, and Code Mode

• Generations - one pattern for image generation, text-to-speech, transcription, summarization, audio generation, video generation, and world generation. • Realtime Voice Chat - build low-latency realtime voice experiences. • Code Mode - let models write and execute TypeScript inside a secure isolate. • Code Mode with Snippets - give Code Mode reusable runtime capabilities.

Providers

Official adapters include:

| Package | Use it for |

| @tanstack/ai-openrouter | 300+ models through one OpenRouter API, with per-request cost tracking | | @tanstack/ai-openai | OpenAI chat, image, video, speech, transcription, realtime, and provider tools | | @tanstack/ai-anthropic | Anthropic Claude chat, thinking, tools, structured outputs, and Vertex Claude | | @tanstack/ai-gemini | Google Gemini chat, image, speech, and audio generation | | @tanstack/ai-vertex | Gemini on Vertex AI with regional endpoints and Google Cloud credentials | | @tanstack/ai-ollama | Local Ollama models | | @tanstack/ai-grok | xAI Grok chat, images, and realtime | | @tanstack/ai-groq | Groq low-latency inference | | @tanstack/ai-elevenlabs | ElevenLabs realtime voice, speech, transcription, music, and sound effects | | @tanstack/ai-byteplus | BytePlus Seed chat, Seedance video, Seedream image, and Seed Speech TTS/ASR | | @tanstack/ai-fal | fal.ai image, video, audio, speech, and transcription models | | @tanstack/ai-reactor | Reactor live world and video generation (Orbis, Happy Oyster, LingBot, Helios, FastH3) | | @tanstack/ai-worldlabs | World Labs Marble persistent 3D world generation | | @tanstack/ai-cloudflare | Cloudflare Workers AI chat, embeddings, image, speech, transcription, and AI Gateway |

The adapter system is tree-shakeable by activity. Import openaiText for chat, openaiImage for images, falVideo for video, geminiSpeech for TTS, and so on.

Framework Packages

| Package | What it provides |

| @tanstack/ai-client | Headless chat, realtime, and generation clients | | @tanstack/ai-react | React hooks including useChat, useRealtimeChat, and generation hooks | | @tanstack/ai-solid | Solid hooks for chat and generations | | @tanstack/ai-vue | Vue composables for chat and generations | | @tanstack/ai-svelte | Svelte 5 factories for chat and generations | | @tanstack/ai-preact | Preact hooks for chat | | @tanstack/ai-react/ui, @tanstack/ai-solid/ui, @tanstack/ai-vue/ui, @tanstack/ai-svelte/ui | Headless UI components for chat interfaces. @tanstack/ai-react-ui, @tanstack/ai-solid-ui, and @tanstack/ai-vue-ui are deprecated. |

Advanced Docs…

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • react
  • hooks
  • chat
  • streaming
  • realtime
  • tool-calling
  • structured-outputs
  • media-generation

Where @tanstack/ai-react 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.

All npm2,248 listings · 113 pages · page 15, #16 (overall #296)
All npm: every listing in weekly downloads order
PNG SVG
AI SDKs249 listings · 13 pages · page 1, #10 (overall #10)
AI SDKs: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@tanstack/ai-react weekly downloads on npm, last 90 days: 309,753 weekly downloads as of Oct 17, 2026, +285% over 90 days.@tanstack/ai-reactWeekly downloads on npm · Last 90 days309,753downloads / week+285% over 90 days0100K200K300K400K500K600KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@tanstack/ai-react weekly downloads on npm, last 90 days: 309,753 weekly downloads as of Oct 17, 2026, +285% over 90 days.
PNG SVG

7/30/90-day growth

@tanstack/ai-react weekly downloads growth on npm: -21.8% over 7 days, +80.0% over 30 days, +285% over 90 days.@tanstack/ai-reactWeekly downloads growth on npm309,753downloads / week now7-day growth-86,157 weekly downloads-21.8%30-day growth+137,650 weekly downloads+80.0%90-day growth+229,223 weekly downloads+285%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@tanstack/ai-react weekly downloads growth on npm: -21.8% over 7 days, +80.0% over 30 days, +285% over 90 days.
PNG SVG

Ranking history

@tanstack/ai-react npm ranking history: currently #296 (by weekly downloads).@tanstack/ai-reactnpm ranking · by weekly downloads · Last 90 days#296current rank#294#295#296#297#298Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
@tanstack/ai-react npm ranking history: currently #296 (by weekly downloads).
PNG SVG

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)
Recent weekly downloads observations for @tanstack/ai-react
Date (UTC)Weekly downloadsChange vs. previous
309,753-63.6K
373,345+32.2K
341,140-94.3K
435,438-70.7K
506,1600
506,160+66.9K
439,270+43.4K
395,910+39.8K
356,064+49.7K
306,341+49.9K
256,470+26.4K
230,077-40.4K
270,495+7.7K
262,753—

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-react. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.