Skip to content
PluginStats

@tanstack/ai-event-client weekly downloads statistics

By tanstack (53 listings) · npm · AI SDKs

Typed event client for TanStack AI devtools, observability, and streamed runtime events.

View on npm Fresh · Dec 6, 2026

@tanstack/ai-event-client has 4,920,618 recorded weekly downloads on npm, an increase of 176% over the past 30 days, ranking #169 of 3,247 tracked listings.

Weekly downloads
4,920,618
Official API · Dec 5, 2026
7-day growth
+17.8%
+743.6K weekly downloads
30-day growth
+176%
+3.1M weekly downloads
90-day growth
+1657%
+4.6M weekly downloads
Rank
#169
▲ 2 in 7 days

About @tanstack/ai-event-client

<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 />

@tanstack/ai-event-client

Typed event client for TanStack AI devtools, observability, and streamed runtime events.

Every TanStack AI activity, middleware, and client emits its lifecycle on one shared event bus, aiEventClient. The devtools panel reads it, and so can you: subscribe to see runs start and finish, tools get called, or memory get recalled, without touching the code that produces them. The bus is a single instance per runtime (stored on globalThis), so the core, the client packages, and your own code all see the same events.

This package is a dependency of @tanstack/ai, @tanstack/ai-client, @tanstack/ai-devtools, and @tanstack/ai-memory; you usually get it transitively.

Installation

npm install @tanstack/ai-event-client
# or
pnpm add @tanstack/ai-event-client
# or
yarn add @tanstack/ai-event-client

Usage

aiEventClient.on(eventName, handler) returns an unsubscribe function. Event names and payloads are typed through AIDevtoolsEventMap, so the handler's event.payload is narrowed to the event you subscribed to.

import { aiEventClient } from '@tanstack/ai-event-client'

const off = aiEventClient.on('run:completed', (event) => {
  console.log(event.payload)
})

// later
off()

For example, memoryMiddleware emits memory:retrieve:started / memory:retrieve:completed around every recall and memory:persist:started / memory:persist:completed around every save, with memory:error when an adapter throws; see Operating memory.

Event groups

Names are group:subject or group:subject:phase. The groups on AIDevtoolsEventMap:

GroupEvents
run:*created, started, updated, completed, errored, cancelled
text:*request:started / request:completed, message:created / message:user, chunk:* (content, tool-call, tool-result, thinking, done, error), iteration:started / iteration:completed, usage
tools:*registered, input:available, call:updated, call:completed, result:added, approval:requested
structured-output:*started, updated, completed, errored
image:*, video:*, summarize:*, rerank:*, evaluate:*request:started, request:completed, usage
speech:*, audio:*, transcription:*, voice:*, world:*, liveVideo:*, embedding:*request:started, request:completed, request:error, usage
middleware:*hook:executed, config:transformed, chunk:transformed
memory:*retrieve:started / retrieve:completed, persist:started / persist:completed, error, snapshot
compaction:*, skills:*compaction:started / state / ended / applied; skills:snapshot
hook:*, client:*hook:registered / updated / unregistered / state-snapshot; client:created / loading:changed / error:changed / messages:cleared / reloaded / stopped
devtools:*opened, closed, request-state, tool-fixture:apply / tool-fixture:applied…

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • events
  • devtools
  • observability
  • streaming
  • chat

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-event-client weekly downloads on npm, last 90 days: 4,920,618 weekly downloads as of Dec 5, 2026, +1657% over 90 days.@tanstack/ai-event-clientWeekly downloads on npm · Last 90 days4,920,618downloads / week+1657% over 90 days01M2M3M4M5MSep 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-event-client weekly downloads on npm, last 90 days: 4,920,618 weekly downloads as of Dec 5, 2026, +1657% over 90 days.

7/30/90-day growth

@tanstack/ai-event-client weekly downloads growth on npm: +17.8% over 7 days, +176% over 30 days, +1657% over 90 days.@tanstack/ai-event-clientWeekly downloads growth on npm4,920,618downloads / week now7-day growth+743,568 weekly downloads+17.8%30-day growth+3,137,900 weekly downlo…+176%90-day growth+4,640,587 weekly downlo…+1657%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-event-client weekly downloads growth on npm: +17.8% over 7 days, +176% over 30 days, +1657% over 90 days.

Ranking history

@tanstack/ai-event-client npm ranking history: currently #169 (by weekly downloads).@tanstack/ai-event-clientnpm ranking · by weekly downloads · Last 90 days#169current rank#160#180#200#220#240#260#280Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-event-client npm ranking history: currently #169 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 9, #9 (overall #169)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 1, #4 (overall #4)
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-event-client
Date (UTC)Weekly downloadsChange vs. previous
4,920,618+100K
4,820,613+163.3K
4,657,346+155.1K
4,502,198+152.3K
4,349,876+105.1K
4,244,769+38.7K
4,206,094+29K
4,177,050-10.3K
4,187,387-41.2K
4,228,561-3.1K
4,231,678+28.1K
4,203,542+66.2K
4,137,369+70.7K
4,066,646—

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