Skip to content
PluginStats

@tanstack/ai-svelte weekly downloads statistics

By tanstack (53 listings) · npm · AI SDKs

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

View on npm Fresh · Dec 6, 2026

@tanstack/ai-svelte has 1,753 recorded weekly downloads on npm, an increase of 57.1% over the past 30 days, ranking #1927 of 3,247 tracked listings.

Weekly downloads
1,753
Official API · Dec 5, 2026
7-day growth
+30.9%
+414 weekly downloads
30-day growth
+57.1%
+637 weekly downloads
90-day growth
+7.9%
+128 weekly downloads
Rank
#1927
▼ 22 in 7 days

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'),
    threadId: 'support-42',
  })
</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

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>
  import { createChat, fetchServerSentEvents } from '@tanstack/ai-svelte'

  const chat = createChat({
    connection: fetchServerSentEvents('/api/chat'),
    threadId: 'support-42',
  })

  // 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: 1,753 weekly downloads as of Dec 5, 2026, +7.9% over 90 days.@tanstack/ai-svelteWeekly downloads on npm · Last 90 days1,753downloads / week+7.9% over 90 days05001K1.5K2K2.5K3KSep 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-svelte weekly downloads on npm, last 90 days: 1,753 weekly downloads as of Dec 5, 2026, +7.9% over 90 days.

7/30/90-day growth

@tanstack/ai-svelte weekly downloads growth on npm: +30.9% over 7 days, +57.1% over 30 days, +7.9% over 90 days.@tanstack/ai-svelteWeekly downloads growth on npm1,753downloads / week now7-day growth+414 weekly downloads+30.9%30-day growth+637 weekly downloads+57.1%90-day growth+128 weekly downloads+7.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-svelte weekly downloads growth on npm: +30.9% over 7 days, +57.1% over 30 days, +7.9% over 90 days.

Ranking history

@tanstack/ai-svelte npm ranking history: currently #1927 (by weekly downloads).@tanstack/ai-sveltenpm ranking · by weekly downloads · Last 90 days#1927current rank#400#600#800#1000#1200#1400#1600#1800#2000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-svelte npm ranking history: currently #1927 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs378 listings · 19 pages · page 10, #8 (overall #188)
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 (592)
Recent weekly downloads observations for @tanstack/ai-svelte
Date (UTC)Weekly downloadsChange vs. previous
1,753+182
1,571+111
1,460-49
1,509-48
1,557+63
1,494+255
1,239-100
1,339+15
1,324-101
1,425-157
1,582+93
1,489-178
1,667-328
1,995—

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 Dec 6, 2026. See the methodology.