Skip to content
PluginStats

@tanstack/ai-bedrock weekly downloads statistics

By tanstack (53 listings) · npm · AI SDKs

Amazon Bedrock adapter for TanStack AI with chat, tools, reasoning, embeddings, and reranking.

View on npm Fresh · Dec 6, 2026

@tanstack/ai-bedrock has 123,275 recorded weekly downloads on npm, a decrease of 20.4% over the past 30 days, ranking #606 of 3,247 tracked listings.

Weekly downloads
123,275
Official API · Dec 5, 2026
7-day growth
+9.2%
+10.4K weekly downloads
30-day growth
-20.4%
-31.6K weekly downloads
90-day growth
+1060%
+112.7K weekly downloads
Rank
#606
Among tracked npm listings

About @tanstack/ai-bedrock

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

Amazon Bedrock adapter for TanStack AI — the native Converse API (default) plus the OpenAI-compatible Chat Completions and Responses APIs, with streaming, tool calling, and reasoning.

Installation

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

Setup

Get a Bedrock API key from the Amazon Bedrock console and set it as an environment variable:

BEDROCK_API_KEY=your-bedrock-api-key

Alternatively, configure AWS credentials for SigV4 auth (see below).

Usage

import { bedrockText } from '@tanstack/ai-bedrock'
import { chat } from '@tanstack/ai'

const adapter = bedrockText('us.anthropic.claude-haiku-4-5-20251001-v1:0', {
  region: 'us-east-1',
})

for await (const chunk of chat({
  adapter,
  messages: [{ role: 'user', content: 'Hello from Bedrock!' }],
  threadId: 'thread-1',
})) {
  if (chunk.type === 'TEXT_MESSAGE_CONTENT')
    process.stdout.write(chunk.delta ?? '')
}
Responses API
import { bedrockText } from '@tanstack/ai-bedrock'

const adapter = bedrockText('openai.gpt-oss-120b-1:0', {
  region: 'us-east-1',
  api: 'responses',
})
With Explicit API Key
import { createBedrockText } from '@tanstack/ai-bedrock'

const adapter = createBedrockText(
  'us.amazon.nova-pro-v1:0',
  'your-bedrock-api-key',
  { region: 'us-west-2' },
)

Reranking

Call rerank() with bedrockRerank() on the server to sort documents by relevance.

First, install @aws-sdk/credential-providers and configure AWS credentials. Bedrock API keys do not work for reranking. See Bedrock reranking for permissions and model configuration.

import { rerank } from '@tanstack/ai'
import { bedrockRerank } from '@tanstack/ai-bedrock'

const { rerankedDocuments } = await rerank({
  adapter: bedrockRerank('cohere.rerank-v3-5:0'),
  query: 'talk about rain',
  documents: ['sunny day at the beach', 'rainy afternoon in the city'],
  topN: 2,
})

Authentication

For chat and embeddings, auth is resolved in this order:

  1. Explicit apiKey passed to the factory
  2. BEDROCK_API_KEY environment variable
  3. AWS_BEARER_TOKEN_BEDROCK environment variable
  4. SigV4 via the AWS credential chain

SigV4 signing is built in. The AWS credential chain requires @aws-sdk/credential-providers. On the Converse (default) path the @aws-sdk/client-bedrock-runtime client signs requests itself; the OpenAI-compatible chat/responses paths sign via the bundled @smithy/signature-v4. Set auth: 'sigv4' and provide AWS credentials through the standard credential chain (env vars, shared config, instance role):

import { bedrockText } from '@tanstack/ai-bedrock'

const adapter = bedrockText('us.anthropic.claude-haiku-4-5-20251001-v1:0', {
  auth: 'sigv4',
  region: 'us-east-1',
})

Documentation

Full documentation: TanStack AI — Amazon Bedrock adapter

License

MIT

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • bedrock
  • aws
  • adapter
  • llm
  • chat
  • tool-calling

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-bedrock weekly downloads on npm, last 90 days: 123,275 weekly downloads as of Dec 5, 2026, +1060% over 90 days.@tanstack/ai-bedrockWeekly downloads on npm · Last 90 days123,275downloads / week+1060% over 90 days050K100K150K200KSep 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-bedrock weekly downloads on npm, last 90 days: 123,275 weekly downloads as of Dec 5, 2026, +1060% over 90 days.

7/30/90-day growth

@tanstack/ai-bedrock weekly downloads growth on npm: +9.2% over 7 days, -20.4% over 30 days, +1060% over 90 days.@tanstack/ai-bedrockWeekly downloads growth on npm123,275downloads / week now7-day growth+10,408 weekly downloads+9.2%30-day growth-31,557 weekly downloads-20.4%90-day growth+112,651 weekly downloads+1060%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-bedrock weekly downloads growth on npm: +9.2% over 7 days, -20.4% over 30 days, +1060% over 90 days.

Ranking history

@tanstack/ai-bedrock npm ranking history: currently #606 (by weekly downloads).@tanstack/ai-bedrocknpm ranking · by weekly downloads · Last 90 days#606current rank#200#300#400#500#600#700#800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-bedrock npm ranking history: currently #606 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs378 listings · 19 pages · page 2, #19 (overall #39)
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-bedrock
Date (UTC)Weekly downloadsChange vs. previous
123,275-9.9K
133,185+2.5K
130,675-8.8K
139,519+12.5K
126,976+14.9K
112,046-5.1K
117,129+4.3K
112,867+9.8K
103,056-7.4K
110,498+2.8K
107,693+1.8K
105,916+10.3K
95,605+4.4K
91,210—

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