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 18, 2026

@tanstack/ai-react has 416,250 recorded weekly downloads on npm, an increase of 146% over the past 30 days, ranking #285 of 2,322 tracked listings.

Weekly downloads
416,250
Official API · Oct 18, 2026
7-day growth
-5.2%
-23K weekly downloads
30-day growth
+146%
+247.1K weekly downloads
90-day growth
+424%
+336.8K weekly downloads
Rank
#285
Among tracked npm listings

About @tanstack/ai-react

<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/ai.png?theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/api/readme/ai.png" /> <img src="https://tanstack.com/api/readme/ai.png" alt="TanStack AI" width="900" /> </picture> </div> <br /> <div align="center"> <a href="https://npmjs.com/package/@tanstack/ai" target="_parent"> <img alt="NPM downloads" src="https://img.shields.io/npm/dm/@tanstack/ai.svg" /> </a> <a href="https://github.com/TanStack/ai" target="_parent"> <img alt="GitHub stars" src="https://img.shields.io/github/stars/TanStack/ai.svg?style=social&label=Star" /> </a> <a href="https://github.com/TanStack/ai/releases" target="_parent"> <img alt="Release" src="https://img.shields.io/github/v/release/tanstack/ai" /> </a> <a href="https://bundlephobia.com/result?p=@tanstack/ai@latest" target="_parent"> <img alt="Bundle size" src="https://badgen.net/bundlephobia/minzip/@tanstack/ai@latest" /> </a> <a href="https://twitter.com/tan_stack"> <img alt="Follow @TanStack" src="https://img.shields.io/twitter/follow/tan_stack.svg?style=social" /> </a> </div> <br /> <div align="center"> <a href="https://tanstack.com/blog/tanstack-open-source-awards-2026"> <img src="https://raw.githubusercontent.com/TanStack/ai/16826d81cade868956df240d6239a671e689193c/media/js-open-source-award-2026-ai-project-of-the-year.svg" alt="Winner of the 2026 JavaScript Open Source Award for AI Project of the Year" width="250" /> </a> </div>

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.

<a href="https://tanstack.com/ai">Read the docs -></a>

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:

/plugin marketplace add TanStack/ai
/plugin install tanstack-ai

Any agent:

npx skills add TanStack/ai -g --skill tanstack-ai tanstack-ai-migration

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

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:

pnpm add @tanstack/ai @tanstack/ai-openai

For a React chat UI:

pnpm add @tanstack/ai @tanstack/ai-client @tanstack/ai-react @tanstack/ai-openai

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

pnpm add @tanstack/ai @tanstack/ai-openrouter

Streaming Chat

import { chat, toServerSentEventsResponse } from '@tanstack/ai'
import { openaiText } from '@tanstack/ai-openai'

export async function POST(request: Request) {
  const body = await request.json()

  const stream = chat({
    adapter: openaiText('gpt-5.2'),
    messages: body.messages,
  })

  return toServerSentEventsResponse(stream)
}

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:

import { toolDefinition } from '@tanstack/ai'
import { z } from 'zod'…

Description from the npm listing.

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

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

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

Adoption over time

@tanstack/ai-react weekly downloads on npm, last 90 days: 416,250 weekly downloads as of Oct 18, 2026, +424% over 90 days.@tanstack/ai-reactWeekly downloads on npm · Last 90 days416,250downloads / week+424% over 90 days0100K200K300K400K500K600KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@tanstack/ai-react weekly downloads on npm, last 90 days: 416,250 weekly downloads as of Oct 18, 2026, +424% over 90 days.

7/30/90-day growth

@tanstack/ai-react weekly downloads growth on npm: -5.2% over 7 days, +146% over 30 days, +424% over 90 days.@tanstack/ai-reactWeekly downloads growth on npm416,250downloads / week now7-day growth-23,020 weekly downloads-5.2%30-day growth+247,148 weekly downloads+146%90-day growth+336,799 weekly downloads+424%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@tanstack/ai-react weekly downloads growth on npm: -5.2% over 7 days, +146% over 30 days, +424% over 90 days.

Ranking history

@tanstack/ai-react npm ranking history: currently #285 (by weekly downloads).@tanstack/ai-reactnpm ranking · by weekly downloads · Last 90 days#285current rank#282#284#286#288#290#292#294#296#298Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@tanstack/ai-react npm ranking history: currently #285 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 15, #5 (overall #285)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs259 listings · 13 pages · page 1, #10 (overall #10)
AI SDKs: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (122)
Recent weekly downloads observations for @tanstack/ai-react
Date (UTC)Weekly downloadsChange vs. previous
416,250+106.5K
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—

Similar npm AI SDKs plugins

All 20 @tanstack/ai-react alternatives

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 20, 2026. See the methodology.