Skip to content
PluginStats

@chat-adapter/web weekly downloads statistics

By chat-adapter (14 listings) · npm · AI SDKs

Web adapter for Chat SDK — browser chat UI via the AI SDK useChat stream protocol

View on npm Fresh · Oct 17, 2026

@chat-adapter/web has 14,547 recorded weekly downloads on npm, an increase of 0.7% over the past 30 days.

It ranks #830 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +42.8%.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
14,547
Official API · Oct 17, 2026
7-day growth
-25.6%
-5K weekly downloads
30-day growth
+0.7%
+95 weekly downloads
90-day growth
+42.8%
+4.4K weekly downloads
Rank
#830
Among tracked npm listings

About @chat-adapter/web

@chat-adapter/web

npm package: @chat-adapter/web

Web adapter for Chat SDK. Lets a chat-sdk bot serve a browser chat UI alongside Slack, Teams, Discord, etc. — the same bot.onDirectMessage(...) handler fires for every platform.

The adapter speaks the AI SDK UI message stream protocol, so React, Vue, and Svelte AI SDK clients work against the same server endpoint.

Documentation: chat-sdk.dev/adapters/official/web · Guides: vercel.com/kb/chat-sdk

Installation

Then install the framework package that matches your UI:

| Framework | Package | Import from |

| React / Next.js | @ai-sdk/react | @chat-adapter/web/react | | Vue / Nuxt | @ai-sdk/vue | @chat-adapter/web/vue | | Svelte / SvelteKit | @ai-sdk/svelte | @chat-adapter/web/svelte |

Scaffold with the CLI

To scaffold a new browser chat bot with the Web adapter preselected:

Visit the adapters directory to see other available official and vendor-official adapters.

Quick start

Server

Client

React

Vue

Svelte

Authentication

getUser is the security boundary for the Web adapter. Unlike Slack/Teams where the platform signs every webhook, web requests come straight from a browser — you must identify the caller yourself. Returning null causes the adapter to respond with HTTP 401 and no handler runs.

Plug in whatever your app already uses:

If getUser throws, the adapter returns 401 and logs the error. Don't include sensitive data in the error message — it's not surfaced to the client, but it is logged.

The resolved user.id is embedded in the chat-sdk thread id (see Threading below). User ids containing : are rejected with HTTP 400 because they would corrupt the round-trip through decodeThreadId. If your auth provider emits ids with colons (e.g. provider:sub claims), normalize them inside getUser — for example by base64-encoding.

Threading

By default, each useChat conversation maps to one chat-sdk thread:

conversationId is the id field useChat sends in its request body. If your client supplies one (useChat({ id: "support-chat" })), it's reused across reloads; otherwise a fresh id is generated per request.

channel.messages and thread.messages are equivalent on web — the channel id is the thread id. This avoids cross-conversation bleed when persistMessageHistory is enabled and the same user has multiple useChat conversations open.

To override (for example, one thread per user regardless of conversation):

The encode/decode helpers are exposed on the adapter:

Streaming

thread.post accepts an AsyncIterable and pumps deltas straight onto the SSE response body — no edit loop, no rate limiting. Plays nicely with the AI SDK's streamText:

The adapter honors request.signal, so calling stop() from useChat short-circuits the iterator on the server. task_update and plan_update StreamChunks have no native v1 representation in the UI message stream and are dropped silently.

Message persistence

persistMessageHistory defaults to true. Web has no platform-side history API, so the only way for chat-sdk handlers to see prior turns via thread.messages / channel.messages is through the configured state adapter's message history cache. Set it to false only if your handler re-derives history from the request body's messages[] itself:

The AI SDK client retains the conversation in its UI state and resends it on every request, so opting out is a valid choice for stateless handlers — but anything that calls await thread.messages won't see prior turns.

Framework helpers

@chat-adapter/web/react exports a thin wrapper around @ai-sdk/react's useChat preconfigured with DefaultChatTransport:

| Option | Description |

| api | API endpoint for the Web adapter route. Defaults to /api/chat. | | threadId | chat-sdk thread id — surfaces in the request body's id so the server can derive the chat-sdk thread id. Strongly recommended. Falls back to id from ChatInit. | | experimental_throttle | Throttle wait in ms for chat messages and data updates. | | resume | Whether to resume an ongoing chat generation stream. | | ...rest | All other options pass through to @ai-sdk/react's useChat. |

For advanced configuration (custom transport, response interceptors, etc.) use @ai-sdk/react's useChat directly — there's nothing magical in the wrapper.

@chat-adapter/web/vue exports a useChat factory that returns a Vue-reactive Chat instance from @ai-sdk/vue:

@chat-adapter/web/svelte exports a useChat factory that returns a Svelte-reactive Chat instance from @ai-sdk/svelte:

Unlike the React helper, Vue and Svelte return the Chat instance directly. Access chat.messages, chat.sendMessage(), chat.status, and chat.stop() on that object instead of destructuring.

Configuration

| Option | Required | Description |

| userName | Yes | Bot username. Required by chat-sdk for mention detection (@username) and seeds the bot identity for assistant messages. | | getUser | Yes | (request: Request) => WebUser \| null \| Promise. Resolves the user from the inbound HTTP request. Returning null produces HTTP 401. | | persistMessageHistory | No | Persist incoming message history in the configured state adapter. Default: true. | | threadIdFor | No | Derive a chat-sdk thread id from the resolved user and the useChat conversation id. Default: web:{user.id}:{conversationId}. | | logger | No | Logger instance (defaults to ConsoleLogger("info")). |

Features

Messaging

| Feature | Supported |

| Post message | Yes | | Edit message | No (every assistant turn is a fresh streamed response) | | Delete message | No | | File uploads | No (deferred to v2) | | Streaming | Native (SSE / UI message stream) | | Scheduled messages | No |

Rich content

| Feature | Supported |

| Card format | Markdown only in v1 (cards/JSX deferred to v2) | | Buttons | No | | Tables | Yes (GFM markdown) | | Modals | No |

Conversations

| Feature | Supported |…

Description from the npm listing.

  • chat
  • chat-sdk
  • chatbot
  • web
  • react
  • vue
  • svelte
  • useChat
  • ai-sdk
  • ai-agent
  • bot
  • adapter
  • vercel

Where @chat-adapter/web sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,248 listings · 113 pages · page 42, #10 (overall #830)
All npm: every listing in weekly downloads order
PNG SVG
AI SDKs249 listings · 13 pages · page 3, #10 (overall #50)
AI SDKs: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@chat-adapter/web weekly downloads on npm, last 90 days: 14,547 weekly downloads as of Oct 17, 2026, +42.8% over 90 days.@chat-adapter/webWeekly downloads on npm · Last 90 days14,547downloads / week+42.8% over 90 days010K20K30K40K50KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@chat-adapter/web weekly downloads on npm, last 90 days: 14,547 weekly downloads as of Oct 17, 2026, +42.8% over 90 days.
PNG SVG

7/30/90-day growth

@chat-adapter/web weekly downloads growth on npm: -25.6% over 7 days, +0.7% over 30 days, +42.8% over 90 days.@chat-adapter/webWeekly downloads growth on npm14,547downloads / week now7-day growth-5,000 weekly downloads-25.6%30-day growth+95 weekly downloads+0.7%90-day growth+4,363 weekly downloads+42.8%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@chat-adapter/web weekly downloads growth on npm: -25.6% over 7 days, +0.7% over 30 days, +42.8% over 90 days.
PNG SVG

Ranking history

@chat-adapter/web npm ranking history: currently #830 (by weekly downloads).@chat-adapter/webnpm ranking · by weekly downloads · Last 90 days#830current rank#300#400#500#600#700#800#900Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@chat-adapter/web npm ranking history: currently #830 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (543)
Recent weekly downloads observations for @chat-adapter/web
Date (UTC)Weekly downloadsChange vs. previous
14,547-814
15,361+4.4K
10,958-3.8K
14,719-5.4K
20,1160
20,116+525
19,591+44
19,547-1.1K
20,654+216
20,438+64
20,374+144
20,230-5.7K
25,928-570
26,498—

Similar npm AI SDKs plugins

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/@chat-adapter/web. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.