Skip to content
PluginStats

@ai-sdk/code-mode weekly downloads statistics

By ai-sdk (3 listings) · npm · AI SDKs

QuickJS-backed code mode tool for AI SDK

View on npm Fresh · Oct 17, 2026

@ai-sdk/code-mode has 33,508 recorded weekly downloads on npm, a decrease of 16.8% over the past 30 days.

It ranks #642 of 2,256 tracked npm listings by weekly downloads.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
33,508
Official API · Oct 17, 2026
7-day growth
-49.7%
-33.1K weekly downloads
30-day growth
-16.8%
-6.8K weekly downloads
90-day growth
—
Insufficient history
Rank
#642
Among tracked npm listings

About @ai-sdk/code-mode

AI SDK Code Mode

@ai-sdk/code-mode lets models write JavaScript or TypeScript that calls your AI SDK tools. The code runs in an isolated QuickJS sandbox and returns a JSON-serializable value.

Use code mode when a model needs to call several tools, transform their results, or run them concurrently. Only the tools you provide are available to the generated code.

Installation

This package runs on the server and requires Node.js 22.13 or newer.

Usage

The model can then generate code like:

Direct Execution

Use experimental_runCodeMode to run code directly:

Description from the npm listing.

  • ai
  • ai-sdk
  • agents
  • code-mode
  • quickjs
  • sandbox
  • tools

Where @ai-sdk/code-mode sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,256 listings · 113 pages · page 33, #2 (overall #642)
All npm: every listing in weekly downloads order
PNG SVG
AI SDKs250 listings · 13 pages · page 2, #19 (overall #39)
AI SDKs: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@ai-sdk/code-mode weekly downloads on npm, last 90 days: 33,508 weekly downloads as of Oct 17, 2026.@ai-sdk/code-modeWeekly downloads on npm · Last 90 days33,508downloads / week020K40K60K80K100KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
@ai-sdk/code-mode weekly downloads on npm, last 90 days: 33,508 weekly downloads as of Oct 17, 2026.
PNG SVG

7/30/90-day growth

@ai-sdk/code-mode weekly downloads growth on npm: -49.7% over 7 days, -16.8% over 30 days, 90-day growth unavailable.@ai-sdk/code-modeWeekly downloads growth on npm33,508downloads / week now7-day growth-33,066 weekly downloads-49.7%30-day growth-6,778 weekly downloads-16.8%90-day growth+33,508 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@ai-sdk/code-mode weekly downloads growth on npm: -49.7% over 7 days, -16.8% over 30 days, 90-day growth unavailable.
PNG SVG

Ranking history

@ai-sdk/code-mode npm ranking history: currently #642 (by weekly downloads).@ai-sdk/code-modenpm ranking · by weekly downloads · Last 90 days#642current rank#200#300#400#500#600#700Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 17, 2026 – Oct 19, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
@ai-sdk/code-mode npm ranking history: currently #642 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (543)
Recent weekly downloads observations for @ai-sdk/code-mode
Date (UTC)Weekly downloadsChange vs. previous
33,508-8.4K
41,883-779
42,662-18.6K
61,212-20.5K
81,6960
81,696+14.1K
67,623+1K
66,574+407
66,167+99
66,068+5.9K
60,126+8.3K
51,846-14.2K
66,026-12.6K
78,662—

Similar npm AI SDKs plugins

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/@ai-sdk/code-mode. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.