Skip to content
PluginStats

@vercel/ai-sdk-openai-websocket-fetch weekly downloads statistics

By vercel (17 listings) · npm · AI SDKs

WebSocket transport for the AI SDK OpenAI provider — drop-in fetch replacement that routes streaming requests through a persistent WebSocket connection.

View on npm Stale · Oct 18, 2026

@vercel/ai-sdk-openai-websocket-fetch has 11,435 recorded weekly downloads on npm, an increase of 101% over the past 30 days.

Weekly downloads
11,435
Official API · Oct 18, 2026
7-day growth
-17.3%
-2.4K weekly downloads
30-day growth
+101%
+5.8K weekly downloads
90-day growth
+287%
+8.5K weekly downloads
Rank
—
Among tracked npm listings

About @vercel/ai-sdk-openai-websocket-fetch

ai-sdk-openai-websocket-fetch

Drop-in fetch replacement that routes OpenAI Responses API streaming requests through a persistent WebSocket connection instead of HTTP.

Installation

npm install ai-sdk-openai-websocket-fetch

Usage

import { streamText } from 'ai';
import { createOpenAI } from '@ai-sdk/openai';
import { createWebSocketFetch } from 'ai-sdk-openai-websocket-fetch';

const wsFetch = createWebSocketFetch();
const openai = createOpenAI({ fetch: wsFetch });

const result = streamText({
  model: openai('gpt-4.1-mini'),
  prompt: 'Hello!',
  onFinish: () => wsFetch.close(),
});

Why?

OpenAI's WebSocket API keeps a persistent connection open. After the initial handshake, subsequent requests skip TCP/TLS/HTTP negotiation entirely — reducing TTFB in multi-step agentic workflows where the model makes many tool calls.

License

MIT

Description from the npm listing.

  • ai-sdk
  • openai
  • websocket
  • streaming
  • fetch

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

@vercel/ai-sdk-openai-websocket-fetch weekly downloads on npm, last 90 days: 11,435 weekly downloads as of Oct 18, 2026, +287% over 90 days.@vercel/ai-sdk-openai-websocket-fetchWeekly downloads on npm · Last 90 days11,435downloads / week+287% over 90 days05K10K15K20K25KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 24, 2026 – Oct 18, 2026 · 87 observations · Updated Oc…pluginstats.com
@vercel/ai-sdk-openai-websocket-fetch weekly downloads on npm, last 90 days: 11,435 weekly downloads as of Oct 18, 2026, +287% over 90 days.

7/30/90-day growth

@vercel/ai-sdk-openai-websocket-fetch weekly downloads growth on npm: -17.3% over 7 days, +101% over 30 days, +287% over 90 days.@vercel/ai-sdk-openai-websocket-fetchWeekly downloads growth on npm11,435downloads / week now7-day growth-2,397 weekly downloads-17.3%30-day growth+5,753 weekly downloads+101%90-day growth+8,484 weekly downloads+287%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@vercel/ai-sdk-openai-websocket-fetch weekly downloads growth on npm: -17.3% over 7 days, +101% over 30 days, +287% over 90 days.

Ranking history

@vercel/ai-sdk-openai-websocket-fetch npm ranking history: currently #924 (by weekly downloads).@vercel/ai-sdk-openai-websocket-fetchnpm ranking · by weekly downloads · Last 90 days#924current rank#860#870#880#890#900#910#920#930Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
@vercel/ai-sdk-openai-websocket-fetch npm ranking history: currently #924 (by weekly downloads).

Listing placement

All npm2,422 listings · 122 pages · 1,212 shown · page 47, #11 (overall #931)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs270 listings · 14 pages · page 3, #19 (overall #59)
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 (122)
Recent weekly downloads observations for @vercel/ai-sdk-openai-websocket-fetch
Date (UTC)Weekly downloadsChange vs. previous
11,435-349
11,784-2.3K
14,104+1.4K
12,666-2.6K
15,229-1.9K
17,1580
17,158+3.3K
13,832+2.4K
11,480+608
10,872-2.2K
13,031+70
12,961-511
13,472-3.1K
16,565—

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/@vercel/ai-sdk-openai-websocket-fetch. First seen Oct 16, 2026; last successful collection Oct 22, 2026. See the methodology.