Skip to content
PluginStats

@tanstack/ai-sandbox weekly downloads statistics

By tanstack (52 listings) · npm · AI SDKs

Provider-agnostic sandbox layer for TanStack AI — run harness adapters inside isolated sandboxes (defineSandbox, defineWorkspace, withSandbox) with a uniform SandboxHandle, workspace bootstrap, policy, and resumable lifecycle.

View on npm Fresh · Oct 17, 2026

@tanstack/ai-sandbox has 40,481 recorded weekly downloads on npm, an increase of 217% over the past 30 days.

It ranks #603 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +693%.

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

Weekly downloads
40,481
Official API · Oct 17, 2026
7-day growth
+9.3%
+3.4K weekly downloads
30-day growth
+217%
+27.7K weekly downloads
90-day growth
+693%
+35.4K weekly downloads
Rank
#603
Among tracked npm listings

About @tanstack/ai-sandbox

@tanstack/ai-sandbox

Provider-agnostic sandbox layer for TanStack AI. Run coding-agent harness adapters (Grok Build, Claude Code, Codex, OpenCode, Gemini CLI) inside an isolated environment with a real filesystem, shell, and cloned repo — and stream their work back through chat().

Installation

Pick a provider package for where the sandbox runs:

| Package | Use when |

| @tanstack/ai-sandbox-local-process | Dev loop on your host (no isolation) | | @tanstack/ai-sandbox-docker | Isolated containers, snapshots, resume | | @tanstack/ai-sandbox-cloudflare | Cloudflare Workers + Containers | | @tanstack/ai-sandbox-vercel | Vercel Sandbox | | @tanstack/ai-sandbox-daytona | Daytona cloud sandboxes, snapshots | | @tanstack/ai-sandbox-upstash-box | Upstash Box cloud sandboxes, snapshots | | @tanstack/ai-sandbox-sprites | Sprites stateful sandboxes | | @tanstack/ai-sandbox-blaxel | Blaxel cloud sandboxes and previews | | @tanstack/ai-sandbox-boxd | boxd microVMs, live fork, snapshots | | @tanstack/ai-sandbox-e2b | E2B microVMs, snapshots and fork | | @tanstack/ai-sandbox-railway | Railway sandboxes, private networking |

Install the provider you select separately. For Blaxel:

Harness adapters are separate packages. The default path is Grok Build (@tanstack/ai-grok-build); others include @tanstack/ai-claude-code, @tanstack/ai-codex, and @tanstack/ai-opencode. All require withSandbox(...) middleware — chat() fails fast without it.

Three moving parts

| Part | What it is | How you configure it |

| Provider | Isolation primitive — host, container, cloud VM | dockerSandbox(), localProcessSandbox(), … | | Workspace | What the agent boots into — repo, setup, secrets, skills | defineWorkspace({ … }) | | Harness adapter | Which agent CLI runs and how output is translated | grokBuildText() (default), claudeCodeText(), codexText(), … |

defineSandbox() binds provider + workspace (+ optional policy, lifecycle, hooks). withSandbox(definition) is the chat() middleware that creates or resumes the sandbox for each run.

Core APIs

Workspace

Describe the working tree once, portably:

Skills and plugins are projected into each harness's native format at run time (.grok/config.toml, .mcp.json, .codex/config.toml, opencode.json, …). Bootstrap writes AGENTS.md and clones gitSkill repos; harness adapters handle the rest.

Policy

Guard what the agent may run:

Headless Grok Build and Codex stay on auto-approve when default is 'allow' and there is no ask list. Isolation is the outer sandbox (Docker, Daytona, and so on). Use Claude Code when you need command-level deny.

Claude Code can use an interactive policy:

Precedence is deny > ask > allow. Each harness adapter maps policy onto its native permission system (coarse flags for Grok Build/Codex; full interactive approval-requested on Claude Code). Provider-specific privilege and network rules live in the providers guide.

Lifecycle

Portable snapshots

Use portable snapshots when a later run must rebuild completed files after the provider sandbox is gone. Create one snapshots object, pass it to withPersistence and withSandbox, and put withPersistence first.

A successful terminal run saves regular files, empty directories, saved conversation data, and thread artifacts. Restore runs only in a new private sandbox. A live resumed sandbox keeps its current files. Read Keep Files After Reload for the full server setup.

Secrets

Use createSecrets() so values stay behind opaque SecretRef tokens. They are never written to snapshots, the sandbox store, or event logs. The sandbox layer resolves them onto the live handle at create, resume, and snapshot restore:

Host tool bridge

chat() server tools can be bridged into the in-sandbox agent over MCP. The agent calls mcptanstack; execution runs back on the host where your closures, DB, and secrets live.

Run flow

Subpath exports

| Import | Purpose |

| @tanstack/ai-sandbox | Core sandbox APIs | | @tanstack/ai-sandbox/ngrok | Optional ngrok tunnel helper for remote tool bridging |

Documentation

Full guides on tanstack.com/ai:

• Quick Start — Grok Build in Docker • Providers • Workspace • Provisioning (skills, MCP, plugins) • Policy • Tools (host tool bridge) • Lifecycle & snapshots • Portable sandbox snapshots • Pick which files to keep

Examples

| Example | What it demonstrates |

| examples/sandbox-web | Build-and-preview with harness × provider matrix (Grok default in UI) | | examples/sandbox-cloudflare | Edge deploy with live preview URL |

When to use a sandbox

Use a sandbox when the agent needs to act on a real codebase — run commands, edit files, clone repos, start dev servers. For read-only Q&A over code you already have in context, a normal chat() with server tools is enough.

Persistence (durable SandboxStore / LockStore, event-log replay) is out of scope for v1 but every seam is persistence-ready via optional capabilities.

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • sandbox
  • harness
  • agent
  • coding-agent
  • isolation
  • workspace
  • tanstack-intent

Where @tanstack/ai-sandbox 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,248 listings · 113 pages · page 31, #3 (overall #603)
All npm: every listing in weekly downloads order
PNG SVG
AI SDKs249 listings · 13 pages · page 2, #13 (overall #33)
AI SDKs: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

@tanstack/ai-sandbox weekly downloads on npm, last 90 days: 40,481 weekly downloads as of Oct 17, 2026, +693% over 90 days.@tanstack/ai-sandboxWeekly downloads on npm · Last 90 days40,481downloads / week+693% over 90 days010K20K30K40K50K60K70KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@tanstack/ai-sandbox weekly downloads on npm, last 90 days: 40,481 weekly downloads as of Oct 17, 2026, +693% over 90 days.
PNG SVG

7/30/90-day growth

@tanstack/ai-sandbox weekly downloads growth on npm: +9.3% over 7 days, +217% over 30 days, +693% over 90 days.@tanstack/ai-sandboxWeekly downloads growth on npm40,481downloads / week now7-day growth+3,437 weekly downloads+9.3%30-day growth+27,716 weekly downloads+217%90-day growth+35,374 weekly downloads+693%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@tanstack/ai-sandbox weekly downloads growth on npm: +9.3% over 7 days, +217% over 30 days, +693% over 90 days.
PNG SVG

Ranking history

@tanstack/ai-sandbox npm ranking history: currently #603 (by weekly downloads).@tanstack/ai-sandboxnpm ranking · by weekly downloads · Last 90 days#603current rank#200#300#400#500#600#700Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@tanstack/ai-sandbox npm ranking history: currently #603 (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 @tanstack/ai-sandbox
Date (UTC)Weekly downloadsChange vs. previous
40,481-2.9K
43,356+7.4K
35,985-6.9K
42,847-4.1K
46,9710
46,971+10K
36,989-55
37,044-5.5K
42,572-8.5K
51,070-3K
54,094-4.7K
58,825-6.6K
65,418+1.3K
64,131—

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/@tanstack/ai-sandbox. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.