Skip to content
PluginStats

@tanstack/ai-svelte weekly downloads statistics

By tanstack (52 listings) · npm · AI SDKs

Svelte 5 bindings for TanStack AI streaming chat, structured outputs, and media generation.

View on npm Fresh · Oct 18, 2026

@tanstack/ai-svelte has 888 recorded weekly downloads on npm, a decrease of 17.9% over the past 30 days, ranking #1468 of 2,322 tracked listings.

Weekly downloads
888
Official API · Oct 18, 2026
7-day growth
-55.7%
-1.1K weekly downloads
30-day growth
-17.9%
-194 weekly downloads
90-day growth
-28.2%
-348 weekly downloads
Rank
#1468
Among tracked npm listings

About @tanstack/ai-svelte

<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/ai.png?framework=svelte&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/api/readme/ai.png?framework=svelte" /> <img src="https://tanstack.com/api/readme/ai.png?framework=svelte" alt="TanStack Svelte AI" width="900" /> </picture> </div> # @tanstack/ai-svelte

Svelte bindings for TanStack AI.

Installation

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

Usage

<script>
  import { createChat, fetchServerSentEvents } from '@tanstack/ai-svelte'

  const chat = createChat({
    connection: fetchServerSentEvents('/api/chat'),
  })
</script>

<div>
  {#each chat.messages as message}
    <div>{message.role}: {message.parts[0].content}</div>
  {/each}

  {#if chat.isLoading}
    <button onclick={chat.stop}>Stop</button>
  {/if}

  <button onclick={() => chat.sendMessage('Hello!')}> Send </button>
</div>

API

createChat(options)

Creates a reactive chat instance. Returns an object with reactive getters and methods:

Reactive Properties (no $ prefix needed):

  • messages - Array of messages in the conversation
  • isLoading - Boolean indicating if a response is being generated
  • error - Current error, if any

Methods:

  • sendMessage(content) - Send a message
  • append(message) - Append a message
  • reload() - Reload the last assistant message
  • stop() - Stop the current response generation
  • clear() - Clear all messages
  • setMessages(messages) - Set messages manually
  • addToolResult(result) - Add a tool result
  • addToolApprovalResponse(response) - Respond to a tool approval request

Svelte 5 Runes

This library uses Svelte 5 runes ($state) internally, providing a clean API where you don't need to use the $ prefix to access reactive state:

<script>
  const chat = createChat({})

  // No $ needed - these are reactive getters!
  console.log(chat.messages)
  console.log(chat.isLoading)
</script>

<!-- Reactivity works automatically in templates -->
{#each chat.messages as message}
  ...
{/each}

License

MIT

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • svelte
  • svelte5
  • 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-svelte weekly downloads on npm, last 90 days: 888 weekly downloads as of Oct 18, 2026, -28.2% over 90 days.@tanstack/ai-svelteWeekly downloads on npm · Last 90 days888downloads / week-28.2% over 90 days05001K1.5K2K2.5K3KJul 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-svelte weekly downloads on npm, last 90 days: 888 weekly downloads as of Oct 18, 2026, -28.2% over 90 days.

7/30/90-day growth

@tanstack/ai-svelte weekly downloads growth on npm: -55.7% over 7 days, -17.9% over 30 days, -28.2% over 90 days.@tanstack/ai-svelteWeekly downloads growth on npm888downloads / week now7-day growth-1,116 weekly downloads-55.7%30-day growth-194 weekly downloads-17.9%90-day growth-348 weekly downloads-28.2%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@tanstack/ai-svelte weekly downloads growth on npm: -55.7% over 7 days, -17.9% over 30 days, -28.2% over 90 days.

Ranking history

@tanstack/ai-svelte npm ranking history: currently #1468 (by weekly downloads).@tanstack/ai-sveltenpm ranking · by weekly downloads · Last 90 days#1468current rank#400#600#800#1000#1200#1400#1600Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 17, 2026 – Oct 20, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
@tanstack/ai-svelte npm ranking history: currently #1468 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs259 listings · 13 pages · page 8, #5 (overall #145)
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 (544)
Recent weekly downloads observations for @tanstack/ai-svelte
Date (UTC)Weekly downloadsChange vs. previous
888+47
841-132
973-270
1,243-386
1,629-358
1,9870
1,987-17
2,004+199
1,805+18
1,787+55
1,732+183
1,549+75
1,474-183
1,657—

Similar npm AI SDKs plugins

All 20 @tanstack/ai-svelte alternatives

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