RadarTopicsBuildersWeeklyReads
Open Source Radar
TanStack/

ai

GitHubWebsite

TanStack AI is a TypeScript SDK for streaming chat, tool calls, agents, and multimodal apps, with provider adapters and framework bindings. It supports OpenAI, Anthropic, Gemini, and more, and includes multiple UI/framework packages.

3.0kstars
293forks
118issues
MITlicense
2025since
Star historydaily snapshots by VibeCrowd

Collecting history — the radar snapshots this repo daily. The trend line appears after 3 days of data (1 so far).

Alternatives & relatedmatched by topic overlap
Reviewgenerated from repository data · Aug 5, 2026

What it is

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

How it works

The SDK is built from composable activities and provider adapters. It supports provider adapters (e.g., OpenAI, Anthropic, Gemini) and framework bindings (React, Solid, Vue, Svelte, Preact). It enables streaming chat, tools with a shared toolDefinition contract, structured outputs via schemas, and multimodal workflows through a shared generation client pattern. The adapter system is tree-shakeable by activity.

Getting started

Install:

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 option:

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

Streaming Chat example:

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)
}

Tools example:

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

const getProducts = toolDefinition({
  name: 'getProducts',
  description: 'Search the product catalog',
  inputSchema: z.object({ query: z.string() }),
  outputSchema: z.array(
    z.object({
      id: z.string(),
      name: z.string(),
    }),
  ),
}).server(async ({ query }) => {
  return db.products.search(query)
})

Recent releases

Latest releases (2026-08-04) include updates to:

  • @tanstack/solid-ai-devtools@0.2.68 with dependency @tanstack/ai-devtools-core@0.5.0
  • @tanstack/react-ai-devtools@0.2.68 with dependency @tanstack/ai-devtools-core@0.5.0
  • @tanstack/preact-ai-devtools@0.1.68 with dependency @tanstack/ai-devtools-core@0.5.0
  • @tanstack/ai-vue-ui@0.2.35 with dependency @tanstack/ai-vue@0.16.0
  • @tanstack/ai-solid-ui@0.7.15 with dependencies @tanstack/ai-client@0.23.0 and @tanstack/ai-soli

Traction

stars_7d present: 2957 stars_1d present: 2957

Behind the repo

Organization: TanStack

Caveats

License: MIT Created: 2025-10-08 Last push: 2026-08-04 Open issues: 118 Language: TypeScript

SharePost on XLinkedIn
All trending reposRevenue-verified startups →