Skip to content
PluginStats

@tanstack/ai-cloudflare weekly downloads statistics

By tanstack (53 listings) · npm · AI SDKs

Cloudflare adapter for TanStack AI — Workers AI chat, embeddings, images, speech, transcription, and summarization over the AI binding or REST, with AI Gateway routing for any provider.

View on npm Fresh · Dec 6, 2026

@tanstack/ai-cloudflare has 43,831 recorded weekly downloads on npm, an increase of 119% over the past 30 days, ranking #820 of 3,247 tracked listings.

Weekly downloads
43,831
Official API · Dec 5, 2026
7-day growth
-6.7%
-3.1K weekly downloads
30-day growth
+119%
+23.8K weekly downloads
90-day growth
+48066%
+43.7K weekly downloads
Rank
#820
▼ 48 in 7 days

About @tanstack/ai-cloudflare

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

@tanstack/ai-cloudflare

Cloudflare adapter for TanStack AI: Workers AI chat, summarization, embeddings, image generation, text-to-speech, and transcription over the env.AI binding or the REST API, with AI Gateway routing for any provider.

Installation

npm install @tanstack/ai @tanstack/ai-cloudflare

Usage

import { chat, toServerSentEventsResponse } from '@tanstack/ai'
import { createCloudflareText } from '@tanstack/ai-cloudflare'
import type { Ai } from '@cloudflare/workers-types'

export default {
  async fetch(request: Request, env: { AI: Ai }) {
    const { messages, threadId } = await request.json()
    const stream = chat({
      adapter: createCloudflareText(
        '@cf/deepseek-ai/deepseek-v4.1-flash-1017',
        {
          binding: env.AI,
        },
      ),
      messages,
      threadId,
    })
    return toServerSentEventsResponse(stream)
  },
}

Outside a Worker, pass { accountId, apiKey } or set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN and use cloudflareText(model).

See the docs for AI Gateway, media adapters, and model options.

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • cloudflare
  • workers-ai
  • ai-gateway
  • workers
  • adapter
  • chat
  • streaming
  • tool-calling
  • structured-outputs
  • embeddings
  • image-generation
  • text-to-speech
  • transcription

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-cloudflare weekly downloads on npm, last 90 days: 43,831 weekly downloads as of Dec 5, 2026, +48066% over 90 days.@tanstack/ai-cloudflareWeekly downloads on npm · Last 90 days43,831downloads / week+48066% over 90 days010K20K30K40K50KSep 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-cloudflare weekly downloads on npm, last 90 days: 43,831 weekly downloads as of Dec 5, 2026, +48066% over 90 days.

7/30/90-day growth

@tanstack/ai-cloudflare weekly downloads growth on npm: -6.7% over 7 days, +119% over 30 days, +48066% over 90 days.@tanstack/ai-cloudflareWeekly downloads growth on npm43,831downloads / week now7-day growth-3,133 weekly downloads-6.7%30-day growth+23,827 weekly downloads+119%90-day growth+43,740 weekly downloads+48066%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-cloudflare weekly downloads growth on npm: -6.7% over 7 days, +119% over 30 days, +48066% over 90 days.

Ranking history

@tanstack/ai-cloudflare npm ranking history: currently #820 (by weekly downloads).@tanstack/ai-cloudflarenpm ranking · by weekly downloads · Last 90 days#820current rank#200#400#600#800#1000#1200#1400Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-cloudflare npm ranking history: currently #820 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs378 listings · 19 pages · page 3, #13 (overall #53)
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-cloudflare
Date (UTC)Weekly downloadsChange vs. previous
43,831-1.1K
44,914-4.2K
49,149+8.9K
40,217-6.6K
46,810-413
47,223+2.3K
44,940-2K
46,964-146
47,110+2.1K
44,964+2.8K
42,196+477
41,719+3.7K
38,022-4.2K
42,235—

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