@tanstack/ai-vue has 2,147 recorded weekly downloads on npm, a decrease of 16.6% over the past 30 days, ranking #1321 of 2,322 tracked listings.
About @tanstack/ai-vue
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
- 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:
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
- vue
- vue3
- composables
- chat
- streaming
- 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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm AI SDKs plugins
All 20 @tanstack/ai-vue alternativesData 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-vue. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.