Skip to content
PluginStats

@tanstack/ai-event-client weekly downloads statistics

By tanstack (52 listings) · npm · AI SDKs

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

View on npm Stale · Oct 17, 2026

@tanstack/ai-event-client has 442,070 recorded weekly downloads on npm, an increase of 30.9% over the past 30 days, ranking #266 of 2,256 tracked listings.

Weekly downloads
442,070
Official API · Oct 17, 2026
7-day growth
-32.5%
-212.7K weekly downloads
30-day growth
+30.9%
+104.3K weekly downloads
90-day growth
+119%
+240.2K weekly downloads
Rank
#266
Among tracked npm listings

About @tanstack/ai-event-client

@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

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.

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:

| Group | Events |

| 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 / approval:responded | | 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 |

Envelope helpers

Events carry a common envelope — eventId, eventType, timestamp, source (client | server | devtools), visibility, and optional correlation ids such as runId, threadId, messageId, toolCallId. The package exports the helpers the emitters use to build and dedupe it:

• createAIDevtoolsEventEnvelope(input) — fills in eventId and runtimeId when absent • getAIDevtoolsDedupeKey(event) — stable key for an event: its eventId when present. Without one it falls back to source, eventType, visibility, the correlation ids, and the timestamp bucketed to one second — so two otherwise identical events in the same second share a key. Supply an eventId when distinct events must stay distinct. • getAIDevtoolsRuntimeId() — the id of the current runtime instance

License

MIT

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: 442,070 weekly downloads as of Oct 17, 2026, +119% over 90 days.@tanstack/ai-event-clientWeekly downloads on npm · Last 90 days442,070downloads / week+119% over 90 days0200K400K600K800KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
@tanstack/ai-event-client weekly downloads on npm, last 90 days: 442,070 weekly downloads as of Oct 17, 2026, +119% over 90 days.

7/30/90-day growth

@tanstack/ai-event-client weekly downloads growth on npm: -32.5% over 7 days, +30.9% over 30 days, +119% over 90 days.@tanstack/ai-event-clientWeekly downloads growth on npm442,070downloads / week now7-day growth-212,654 weekly downloads-32.5%30-day growth+104,315 weekly downloads+30.9%90-day growth+240,237 weekly downloads+119%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@tanstack/ai-event-client weekly downloads growth on npm: -32.5% over 7 days, +30.9% over 30 days, +119% over 90 days.

Ranking history

@tanstack/ai-event-client npm ranking history: currently #266 (by weekly downloads).@tanstack/ai-event-clientnpm ranking · by weekly downloads · Last 90 days#266current rank#264#265#266#267#268Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@tanstack/ai-event-client npm ranking history: currently #266 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 14, #6 (overall #266)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs250 listings · 13 pages · page 1, #7 (overall #7)
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 (121)
Recent weekly downloads observations for @tanstack/ai-event-client
Date (UTC)Weekly downloadsChange vs. previous
442,070-92.8K
534,843+41K
493,893-153.4K
647,252-122K
769,2850
769,285+66.4K
702,839+48.1K
654,724+45.6K
609,102+46.7K
562,381+48.6K
513,740+19.1K
494,627-93.6K
588,195-4.6K
592,832—

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 Oct 19, 2026. See the methodology.