Skip to content
PluginStats

@upstash/context7-tools-ai-sdk weekly downloads statistics

By upstash (9 listings) · npm · AI SDKs

Context7 tools for Vercel AI SDK

View on npm Fresh · Oct 18, 2026

@upstash/context7-tools-ai-sdk has 323 recorded weekly downloads on npm, a decrease of 66.3% over the past 30 days, ranking #1609 of 2,322 tracked listings.

Weekly downloads
323
Official API · Oct 18, 2026
7-day growth
-62.8%
-545 weekly downloads
30-day growth
-66.3%
-636 weekly downloads
90-day growth
+9.5%
+28 weekly downloads
Rank
#1609
Among tracked npm listings

About @upstash/context7-tools-ai-sdk

Upstash Context7 AI SDK

@upstash/context7-tools-ai-sdk provides Vercel AI SDK compatible tools and agents that give your AI applications access to up to date library documentation through Context7.

Use this package to:

  • Add documentation lookup tools to your AI SDK workflows with generateText or streamText
  • Create documentation aware agents using the pre-configured Context7Agent
  • Build RAG pipelines that retrieve accurate, version specific code examples

The package provides two main tools:

  • resolveLibrary - Searches Context7's database to find the correct library ID
  • getLibraryDocs - Fetches documentation for a specific library with optional topic filtering

Quick Start

Install
npm install @upstash/context7-tools-ai-sdk @upstash/context7-sdk ai zod
Get API Key

Get your API key from Context7

Usage

Using Tools with generateText
import { resolveLibrary, getLibraryDocs } from "@upstash/context7-tools-ai-sdk";
import { generateText, stepCountIs } from "ai";
import { openai } from "@ai-sdk/openai";

const { text } = await generateText({
  model: openai("gpt-6-astra"),
  prompt: "How do I use React Server Components?",
  tools: {
    resolveLibrary: resolveLibrary(),
    getLibraryDocs: getLibraryDocs(),
  },
  stopWhen: stepCountIs(5),
});

console.log(text);
Using the Context7 Agent

The package provides a pre-configured agent that handles the multi-step workflow automatically:

import { Context7Agent } from "@upstash/context7-tools-ai-sdk";
import { anthropic } from "@ai-sdk/anthropic";

const agent = new Context7Agent({
  model: anthropic("claude-sonnet-5-5"),
});

const { text } = await agent.generate({
  prompt: "How do I set up routing in Next.js?",
});

console.log(text);

Configuration

Environment Variables

Set your API key via environment variable:

CONTEXT7_API_KEY=ctx7sk-...

Then use tools and agents without explicit configuration:

const tool = resolveLibrary(); // Uses CONTEXT7_API_KEY automatically

Docs

See the documentation for details.

Contributing

Running tests
pnpm test
Building
pnpm build

Description from the npm listing.

  • context7
  • ai-sdk
  • vercel
  • documentation
  • agent
  • upstash

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

@upstash/context7-tools-ai-sdk weekly downloads on npm, last 90 days: 323 weekly downloads as of Oct 18, 2026, +9.5% over 90 days.@upstash/context7-tools-ai-sdkWeekly downloads on npm · Last 90 days323downloads / week+9.5% over 90 days02004006008001K1.2K1.4K1.6KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@upstash/context7-tools-ai-sdk weekly downloads on npm, last 90 days: 323 weekly downloads as of Oct 18, 2026, +9.5% over 90 days.

7/30/90-day growth

@upstash/context7-tools-ai-sdk weekly downloads growth on npm: -62.8% over 7 days, -66.3% over 30 days, +9.5% over 90 days.@upstash/context7-tools-ai-sdkWeekly downloads growth on npm323downloads / week now7-day growth-545 weekly downloads-62.8%30-day growth-636 weekly downloads-66.3%90-day growth+28 weekly downloads+9.5%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@upstash/context7-tools-ai-sdk weekly downloads growth on npm: -62.8% over 7 days, -66.3% over 30 days, +9.5% over 90 days.

Ranking history

@upstash/context7-tools-ai-sdk npm ranking history: currently #1609 (by weekly downloads).@upstash/context7-tools-ai-sdknpm ranking · by weekly downloads · Last 90 days#1609current rank#600#800#1000#1200#1400#1600#1800Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 17, 2026 – Oct 20, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
@upstash/context7-tools-ai-sdk npm ranking history: currently #1609 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 81, #13 (overall #1,613)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs259 listings · 13 pages · page 10, #17 (overall #197)
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 (544)
Recent weekly downloads observations for @upstash/context7-tools-ai-sdk
Date (UTC)Weekly downloadsChange vs. previous
323+153
170-73
243+6
237-82
319-193
5120
512-356
868-101
969-88
1,057-197
1,254-177
1,431+149
1,282-40
1,322—

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/@upstash/context7-tools-ai-sdk. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.