Skip to content
PluginStats

@tanstack/ai-grok weekly downloads statistics

By tanstack (53 listings) · npm · AI SDKs

xAI Grok adapter for TanStack AI chat, image generation, realtime, and structured outputs.

View on npm Fresh · Dec 6, 2026

@tanstack/ai-grok has 42,598 recorded weekly downloads on npm, an increase of 107% over the past 30 days, ranking #829 of 3,247 tracked listings.

Weekly downloads
42,598
Official API · Dec 5, 2026
7-day growth
+13.7%
+5.1K weekly downloads
30-day growth
+107%
+22.1K weekly downloads
90-day growth
+133%
+24.3K weekly downloads
Rank
#829
▲ 6 in 7 days

About @tanstack/ai-grok

<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-grok

Grok (xAI) adapter for TanStack AI

Installation

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

Setup

Get your API key from xAI Console and set it as an environment variable:

export XAI_API_KEY="xai-..."

Usage

Text/Chat Adapter
import { grokText } from '@tanstack/ai-grok'
import { chat } from '@tanstack/ai'

const adapter = grokText('grok-build-0.1')

const result = await chat({
  adapter,
  threadId: 'thread-1',
  stream: false,
  messages: [
    { role: 'user', content: 'Explain quantum computing in simple terms' },
  ],
})

console.log(result.text)
Summarization Adapter
import { grokSummarize } from '@tanstack/ai-grok'
import { summarize } from '@tanstack/ai'

const adapter = grokSummarize('grok-build-0.1')

const result = await summarize({
  adapter,
  threadId: 'thread-1',
  text: 'Long article text...',
  style: 'bullet-points',
})

console.log(result.summary)
Image Generation Adapter
import { grokImage } from '@tanstack/ai-grok'
import { generateImage } from '@tanstack/ai'

const adapter = grokImage('grok-imagine-image-2.0')

const result = await generateImage({
  adapter,
  threadId: 'thread-1',
  prompt: 'A beautiful sunset over mountains',
  numberOfImages: 1,
  size: '16:9',
})

console.log(result.images[0]?.url)
With Explicit API Key
import { createGrokText } from '@tanstack/ai-grok'

const adapter = createGrokText('grok-build-0.1', 'xai-your-api-key-here')

Supported Chat Models

  • grok-build-0.1 - Build-focused reasoning model with text + image input
  • grok-4.3 - Reasoning, structured outputs, tool calling, text + image input

Features

  • ✅ Streaming chat via xAI Responses API
  • ✅ Structured output (JSON Schema)
  • ✅ Function/tool calling
  • ✅ Multimodal input (text + images for vision models)
  • ✅ Image generation
  • ✅ Text summarization
  • ❌ Embeddings (not supported by xAI)

Tree-Shakeable Adapters

This package uses tree-shakeable adapters, so you only import what you need:

// Only imports text adapter
import { grokText } from '@tanstack/ai-grok'

// Only imports image adapter
import { grokImage } from '@tanstack/ai-grok'

This keeps your bundle size small!

License

MIT

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • grok
  • xai
  • adapter
  • chat
  • tool-calling
  • structured-outputs
  • image-generation
  • realtime

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-grok weekly downloads on npm, last 90 days: 42,598 weekly downloads as of Dec 5, 2026, +133% over 90 days.@tanstack/ai-grokWeekly downloads on npm · Last 90 days42,598downloads / week+133% 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-grok weekly downloads on npm, last 90 days: 42,598 weekly downloads as of Dec 5, 2026, +133% over 90 days.

7/30/90-day growth

@tanstack/ai-grok weekly downloads growth on npm: +13.7% over 7 days, +107% over 30 days, +133% over 90 days.@tanstack/ai-grokWeekly downloads growth on npm42,598downloads / week now7-day growth+5,146 weekly downloads+13.7%30-day growth+22,055 weekly downloads+107%90-day growth+24,308 weekly downloads+133%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-grok weekly downloads growth on npm: +13.7% over 7 days, +107% over 30 days, +133% over 90 days.

Ranking history

@tanstack/ai-grok npm ranking history: currently #829 (by weekly downloads).@tanstack/ai-groknpm ranking · by weekly downloads · Last 90 days#829current rank#300#400#500#600#700#800#900#1000#1100Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-grok npm ranking history: currently #829 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs378 listings · 19 pages · page 3, #14 (overall #54)
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-grok
Date (UTC)Weekly downloadsChange vs. previous
42,598-6.1K
48,705+851
47,854+3.5K
44,336-1.8K
46,177+5.7K
40,478+2.6K
37,895+443
37,452+6.3K
31,192+6.1K
25,092+3.5K
21,553+5.4K
16,158-588
16,746-1.6K
18,361—

Similar npm AI SDKs plugins

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