Skip to content
PluginStats

@tanstack/ai-solid weekly downloads statistics

By tanstack (53 listings) · npm · AI SDKs

Solid hooks for TanStack AI streaming chat, structured outputs, and media generation.

View on npm Fresh · Dec 6, 2026

@tanstack/ai-solid has 14,656 recorded weekly downloads on npm, a decrease of 0.3% over the past 30 days, ranking #1142 of 3,247 tracked listings.

Weekly downloads
14,656
Official API · Dec 5, 2026
7-day growth
+27.8%
+3.2K weekly downloads
30-day growth
-0.3%
-46 weekly downloads
90-day growth
+170%
+9.2K weekly downloads
Rank
#1142
▲ 49 in 7 days

About @tanstack/ai-solid

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

@tanstack/ai-solid

Solid primitives for building AI chat interfaces with TanStack AI.

Installation

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

useChat

useChat manages chat state, streams responses, and runs client tools. You own the input state. Call sendMessage() from any trigger: a form, a button, or a keyboard shortcut.

useChat returns Solid accessors. Call messages(), isLoading(), error(), and interrupts() to read them.

Basic usage
import { For, createSignal } from 'solid-js'
import { fetchServerSentEvents, useChat } from '@tanstack/ai-solid'

export function Chat() {
  const { messages, sendMessage, isLoading } = useChat({
    threadId: 'support-42',
    connection: fetchServerSentEvents('/api/chat'),
  })
  const [input, setInput] = createSignal('')

  const send = () => {
    const text = input().trim()
    if (!text) return
    void sendMessage(text)
    setInput('')
  }

  return (
    <div>
      <For each={messages()}>
        {(message) => (
          <div>
            <strong>{message.role}: </strong>
            <For each={message.parts}>
              {(part) => (part.type === 'text' ? part.content : null)}
            </For>
          </div>
        )}
      </For>

      <input
        value={input()}
        onInput={(event) => setInput(event.currentTarget.value)}
        onKeyDown={(event) => event.key === 'Enter' && send()}
        disabled={isLoading()}
      />
      <button onClick={send} disabled={isLoading() || !input().trim()}>
        Send
      </button>
    </div>
  )
}
Options
OptionDescription
threadIdRequired. The chat identity. Use a stable id for each conversation.
connectionRequired. A connection adapter, such as fetchServerSentEvents('/api/chat').
toolsClient tools, and tool definitions that type tool parts and approvals.
initialMessagesMessages to start with.
forwardedPropsSent to the server as AG-UI RunAgentInput.forwardedProps.
onChunkCalled for each stream chunk.
onFinishCalled with the final assistant message.
onErrorCalled when the run fails.
Return value
ValueDescription
messages()The current conversation.
isLoading(), status(), error()Run state.
sendMessage(content)Sends a user message.
append(message)Adds a message and starts a run.
reload()Runs the last user message again.
stop()Stops the current run.
clear(), setMessages(messages)Replace the conversation.
interrupts(), resuming()Paused tool approvals and other interrupts.

Connection adapters

import { fetchServerSentEvents, useChat } from '@tanstack/ai-solid'

const token = localStorage.getItem('token') ?? ''

const chat = useChat({
  threadId: 'support-42',
  connection: fetchServerSentEvents('/api/chat', {
    headers: { Authorization: `Bearer ${token}` },
  }),
})

fetchHttpStream, fetchJson, webSocket, stream (for server functions), and custom ConnectionAdapter objects are also available. See Transports.

Tool approval

Mark a tool needsApproval: true on the server. When the run pauses, the approval appears in interrupts(). Resolve it on the item with resolveInterrupt:

import { For, Show } from 'solid-js'
import { fetchServerSentEvents, useChat } from '@tanstack/ai-solid'
import { transferTool } from '../tools/transfer'

export function TransferApprovals() {
  const { interrupts, resuming } = useChat({
    threadId: 'account-42',
    connection: fetchServerSentEvents('/api/chat'),
    tools: [transferTool] as const,
  })

  return (
    <For each={interrupts()}>
      {(interrupt) => (
        <Show
          when={
            interrupt.kind === 'tool-approval' &&
            interrupt.toolName === 'transfer'
          }
        >
          <button
            disabled={!interrupt.canResolve || resuming()}
            onClick={() => interrupt.resolveInterrupt(true)}
          >
            Approve
          </button>
          <button
            disabled={!interrupt.canResolve || resuming()}
            onClick={() => interrupt.resolveInterrupt(false)}
          >
            Reject
          </button>
        </Show>
      )}
    </For>
  )
}

The full server and client code is in Tool Approval.

Server endpoint…

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • solid
  • solidjs
  • hooks
  • 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-solid weekly downloads on npm, last 90 days: 14,656 weekly downloads as of Dec 5, 2026, +170% over 90 days.@tanstack/ai-solidWeekly downloads on npm · Last 90 days14,656downloads / week+170% over 90 days05K10K15K20K25KSep 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-solid weekly downloads on npm, last 90 days: 14,656 weekly downloads as of Dec 5, 2026, +170% over 90 days.

7/30/90-day growth

@tanstack/ai-solid weekly downloads growth on npm: +27.8% over 7 days, -0.3% over 30 days, +170% over 90 days.@tanstack/ai-solidWeekly downloads growth on npm14,656downloads / week now7-day growth+3,184 weekly downloads+27.8%30-day growth-46 weekly downloads-0.3%90-day growth+9,229 weekly downloads+170%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-solid weekly downloads growth on npm: +27.8% over 7 days, -0.3% over 30 days, +170% over 90 days.

Ranking history

@tanstack/ai-solid npm ranking history: currently #1142 (by weekly downloads).@tanstack/ai-solidnpm ranking · by weekly downloads · Last 90 days#1142current rank#950#1000#1050#1100#1150#1200#1250Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-solid npm ranking history: currently #1142 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs378 listings · 19 pages · page 4, #16 (overall #76)
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-solid
Date (UTC)Weekly downloadsChange vs. previous
14,656+424
14,232+613
13,619+2.3K
11,341+313
11,028+443
10,585-790
11,375-97
11,472+337
11,135-390
11,525-3.1K
14,613-2.3K
16,907-2K
18,871+699
18,172—

Similar npm AI SDKs plugins

All 20 @tanstack/ai-solid 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-solid. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.