Skip to content
PluginStats

@tanstack/ai-openrouter weekly downloads statistics

By tanstack (52 listings) · npm · AI SDKs

TanStack AI adapter for OpenRouter chat, provider tools, structured outputs, and access to hundreds of LLMs.

View on npm Fresh · Oct 18, 2026

@tanstack/ai-openrouter has 69,171 recorded weekly downloads on npm, an increase of 65.1% over the past 30 days, ranking #523 of 2,322 tracked listings.

Weekly downloads
69,171
Official API · Oct 18, 2026
7-day growth
-3.4%
-2.4K weekly downloads
30-day growth
+65.1%
+27.3K weekly downloads
90-day growth
+82.6%
+31.3K weekly downloads
Rank
#523
Among tracked npm listings

About @tanstack/ai-openrouter

<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
  • llm
  • generative-ai
  • openrouter
  • tanstack
  • adapter
  • chat
  • streaming
  • tool-calling
  • structured-outputs
  • model-router

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-openrouter weekly downloads on npm, last 90 days: 69,171 weekly downloads as of Oct 18, 2026, +82.6% over 90 days.@tanstack/ai-openrouterWeekly downloads on npm · Last 90 days69,171downloads / week+82.6% over 90 days020K40K60K80K100K120KJul 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-openrouter weekly downloads on npm, last 90 days: 69,171 weekly downloads as of Oct 18, 2026, +82.6% over 90 days.

7/30/90-day growth

@tanstack/ai-openrouter weekly downloads growth on npm: -3.4% over 7 days, +65.1% over 30 days, +82.6% over 90 days.@tanstack/ai-openrouterWeekly downloads growth on npm69,171downloads / week now7-day growth-2,423 weekly downloads-3.4%30-day growth+27,280 weekly downloads+65.1%90-day growth+31,293 weekly downloads+82.6%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@tanstack/ai-openrouter weekly downloads growth on npm: -3.4% over 7 days, +65.1% over 30 days, +82.6% over 90 days.

Ranking history

@tanstack/ai-openrouter npm ranking history: currently #523 (by weekly downloads).@tanstack/ai-openrouternpm ranking · by weekly downloads · Last 90 days#523current rank#520#525#530#535#540#545#550#555Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@tanstack/ai-openrouter npm ranking history: currently #523 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs259 listings · 13 pages · page 2, #4 (overall #24)
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-openrouter
Date (UTC)Weekly downloadsChange vs. previous
69,171+17.2K
52,007-7.2K
59,170+9.5K
49,688-13.3K
63,032-14.5K
77,5450
77,545+6K
71,594-2.9K
74,447-7.2K
81,683-11.5K
93,185-5.9K
99,058-3.3K
102,404-13.2K
115,611—

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