Skip to content
PluginStats

@tanstack/ai-angular weekly downloads statistics

By tanstack (53 listings) · npm · AI SDKs

Angular signals integration for TanStack AI streaming chat, structured outputs, and media generation.

View on npm Fresh · Dec 6, 2026

@tanstack/ai-angular has 1,477 recorded weekly downloads on npm, an increase of 195% over the past 30 days, ranking #1971 of 3,247 tracked listings.

Weekly downloads
1,477
Official API · Dec 5, 2026
7-day growth
+16.9%
+213 weekly downloads
30-day growth
+195%
+977 weekly downloads
90-day growth
+267%
+1.1K weekly downloads
Rank
#1971
▼ 50 in 7 days

About @tanstack/ai-angular

<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/ai.png?framework=angular&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/api/readme/ai.png?framework=angular" /> <img src="https://tanstack.com/api/readme/ai.png?framework=angular" alt="TanStack Angular AI" width="900" /> </picture> </div> <br /> <div align="center"> <a href="https://npmjs.com/package/@tanstack/ai-angular" target="_parent"> <img alt="NPM downloads" src="https://img.shields.io/npm/dm/@tanstack/ai-angular.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://www.npmjs.com/package/@tanstack/ai-angular" target="_parent"> <img alt="npm version" src="https://img.shields.io/npm/v/@tanstack/ai-angular.svg" /> </a> <a href="https://bundlejs.com/?q=%40tanstack%2Fai-angular" target="_parent"> <img alt="Bundle size" src="https://deno.bundlejs.com/?q=%40tanstack%2Fai-angular&badge" /> </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>

TanStack AI — Angular

Angular signal-based bindings for TanStack AI — streaming chat, tool-calling agents, and media generation built on Angular's native reactivity model.

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

Install

pnpm add @tanstack/ai-angular @tanstack/ai
npm install @tanstack/ai-angular @tanstack/ai

Minimal Usage

Important: All inject* functions use Angular's dependency injection system and must be called within an Angular injection context — a component or directive class field initializer, the constructor, or inside runInInjectionContext. Calling them outside an injection context will throw a runtime error.

The example below shows a standalone component that streams chat messages from a server endpoint via SSE:

import { Component } from '@angular/core'
import { CommonModule } from '@angular/common'
import { injectChat } from '@tanstack/ai-angular'
import { fetchServerSentEvents } from '@tanstack/ai-client'

@Component({
  selector: 'app-chat',
  standalone: true,
  imports: [CommonModule],
  template: `
    <ul>
      @for (message of chat.messages(); track message.id) {
        <li>{{ message.role }}: {{ message.content }}</li>
      }
    </ul>
    <input #input placeholder="Type a message..." />
    <button (click)="chat.sendMessage(input.value); input.value = ''">
      Send
    </button>
    @if (chat.isLoading()) {
      <p>Thinking...</p>
    }
  `,
})
export class ChatComponent {
  // injectChat is called in a field initializer — this is a valid injection context.
  chat = injectChat({
    connection: fetchServerSentEvents('/api/chat'),
    threadId: 'support-42',
  })
}

All state is exposed as Angular Signals. Read them by calling them as functions:

SignalTypeDescription
chat.messages()UIMessage[]Current message list
chat.isLoading()booleanWhether a response is streaming
chat.error()Error | undefinedLast error, if any
chat.status()ChatClientState'ready', 'streaming', 'error', ...
chat.isSubscribed()booleanWhether a live (SSE push) session is active
chat.connectionStatus()ConnectionStatusTransport connection status

Available methods on the return value: sendMessage, append, reload, stop, clear, setMessages, addToolResult.

Server endpoint

The client pairs with any endpoint that returns a TanStack AI SSE stream:

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.5'),
    messages: body.messages,
    threadId: body.threadId,
  })

  return toServerSentEventsResponse(stream)
}

Available Functions

FunctionDescription
injectChatStreaming chat with messages, tool calls, and structured outputs
injectGenerationGeneric generation client (streaming or one-shot)
injectGenerateImageImage generation
injectGenerateAudioAudio generation
injectGenerateVideoVideo generation
injectGenerate3dModel3D model generation (experimental)
injectGenerateSpeechText-to-speech
injectSummarizeSummarization
injectTranscriptionAudio transcription

All generation functions return signals (result, isLoading, error, status) and methods (generate, stop, reset).

Injection Context

Angular's DI system requires that inject() is called during component construction. Every inject* function in this package calls inject() internally. Valid call sites:…

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • angular
  • signals
  • 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

@tanstack/ai-angular weekly downloads on npm, last 90 days: 1,477 weekly downloads as of Dec 5, 2026, +267% over 90 days.@tanstack/ai-angularWeekly downloads on npm · Last 90 days1,477downloads / week+267% over 90 days05001K1.5K2KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@tanstack/ai-angular weekly downloads on npm, last 90 days: 1,477 weekly downloads as of Dec 5, 2026, +267% over 90 days.

7/30/90-day growth

@tanstack/ai-angular weekly downloads growth on npm: +16.9% over 7 days, +195% over 30 days, +267% over 90 days.@tanstack/ai-angularWeekly downloads growth on npm1,477downloads / week now7-day growth+213 weekly downloads+16.9%30-day growth+977 weekly downloads+195%90-day growth+1,075 weekly downloads+267%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-angular weekly downloads growth on npm: +16.9% over 7 days, +195% over 30 days, +267% over 90 days.

Ranking history

@tanstack/ai-angular npm ranking history: currently #1971 (by weekly downloads).@tanstack/ai-angularnpm ranking · by weekly downloads · Last 90 days#1971current rank#1400#1500#1600#1700#1800#1900#2000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 42 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-angular npm ranking history: currently #1971 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 99, #11 (overall #1,971)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 10, #17 (overall #197)
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 (170)
Recent weekly downloads observations for @tanstack/ai-angular
Date (UTC)Weekly downloadsChange vs. previous
1,477+164
1,313+230
1,083+40
1,043+97
946-183
1,129+37
1,092-172
1,264-141
1,405-359
1,764-104
1,868+57
1,811+226
1,585+328
1,257—

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