Skip to content
PluginStats

@tanstack/ai-acp weekly downloads statistics

By tanstack (53 listings) · npm · AI SDKs

Shared Agent Client Protocol (ACP) transport, session, and AG-UI translation for TanStack AI harness adapters.

View on npm Fresh · Dec 6, 2026

@tanstack/ai-acp has 8,865 recorded weekly downloads on npm, an increase of 21.4% over the past 30 days, ranking #1320 of 3,247 tracked listings.

Weekly downloads
8,865
Official API · Dec 5, 2026
7-day growth
+15.3%
+1.2K weekly downloads
30-day growth
+21.4%
+1.6K weekly downloads
90-day growth
+658%
+7.7K weekly downloads
Rank
#1320
▲ 19 in 7 days

About @tanstack/ai-acp

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

Shared Agent Client Protocol (ACP) plumbing for TanStack AI harness adapters — the code that turns a coding-agent CLI (grok, gemini --acp, …) into a chat() backend inside a sandbox.

Most apps should use a harness package directly (@tanstack/ai-grok-build, …). Reach for @tanstack/ai-acp when:

  • you want to plug an ACP agent that has no dedicated adapter package into a sandbox — use acpCompatible (the openaiCompatible of harnesses), or
  • you are building or extending a harness adapter and need the transport, session, permission, and stream-translation layers in one place.

Installation

npm install @tanstack/ai-acp @tanstack/ai @tanstack/ai-sandbox

Peer dependencies: @tanstack/ai, @tanstack/ai-sandbox. The package also depends on @agentclientprotocol/sdk for the JSON-RPC client.

What it does

Harness CLIs that support ACP expose a long-lived JSON-RPC session. They stream session updates (text chunks, tool calls, planning, permissions) while the orchestrator drives the turn with prompt. TanStack AI speaks AG-UI StreamChunks (RUN_STARTED, TEXT_MESSAGE_CONTENT, TOOL_CALL_*, RUN_FINISHED, …).

@tanstack/ai-acp sits in the middle:

┌─────────────────┐     ACP JSON-RPC      ┌──────────────────┐
│  Harness CLI    │ ◄──────────────────► │  startAcpSession │
│  (in sandbox)   │   stdio or WebSocket │  (ClientSide)    │
└─────────────────┘                      └────────┬─────────┘
                                                  │ session updates
                                                  ▼
                                         ┌──────────────────┐
                                         │  AsyncQueue      │
                                         │  translateAcpStream │
                                         └────────┬─────────┘
                                                  │ StreamChunk
                                                  ▼
                                         ┌──────────────────┐
                                         │  chat() stream   │
                                         └──────────────────┘

Responsibilities split roughly as:

LayerModuleRole
Transporttransport/*Bytes ↔ JSON-RPC: stdio (NDJSON) or WebSocket
Sessionsession/acp-clientinitialize → authenticate → newSession / loadSession → prompt
Sandbox serversession/sandbox-serverBoot an in-sandbox serve process and connect over an exposed port
Translationstream/translateACP sessionUpdate events → TanStack StreamChunks
PermissionspermissionsMap harness permission prompts to allow/reject (and optional approval ids)

Plug in any ACP agent (acpCompatible)

acpCompatible is the easy path: it builds a chat() text adapter for any ACP-compliant agent CLI without a dedicated package — the harness equivalent of openaiCompatible. Configure the harness once, select a model per call, pass it into a sandbox.

import { acpCompatible } from '@tanstack/ai-acp'
import { chat } from '@tanstack/ai'
import { defineSandbox, withSandbox } from '@tanstack/ai-sandbox'
import { dockerSandbox } from '@tanstack/ai-sandbox-docker'

// Configure the "pi" agent harness once (it speaks ACP over stdio):
const pi = acpCompatible({
  name: 'pi',
  models: ['pi-fast', 'pi-pro'], // optional — makes pi('…') type-safe
  command: ({ model, harnessCwd }) =>
    `pi --acp -m ${model} --cwd ${harnessCwd}`,
  authMethodId: 'pi-api-key', // when the harness advertises it
  refusalMessage: 'Pi refused the request.',
})

// Then drive it like any other adapter, inside a sandbox:
const stream = chat({
  adapter: pi('pi-fast'),
  messages: [
    { role: 'user', content: 'Add a health check route and run the tests.' },
  ],
  threadId: 'thread-1',
  middleware: [
    withSandbox(
      defineSandbox({
        id: 'pi-demo',
        provider: dockerSandbox({ image: 'node:22' }),
        // …workspace: clone source, install the `pi` CLI, inject its API key
      }),
    ),
  ],
})

You get the full ACP flow for free: sandbox resolution, chat()-tool → MCP bridging, session resume (via modelOptions.sessionId), permission modes, abort, and AG-UI translation.

Configuration…

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • acp
  • agent-client-protocol
  • harness
  • sandbox

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-acp weekly downloads on npm, last 90 days: 8,865 weekly downloads as of Dec 5, 2026, +658% over 90 days.@tanstack/ai-acpWeekly downloads on npm · Last 90 days8,865downloads / week+658% over 90 days02K4K6K8K10KSep 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-acp weekly downloads on npm, last 90 days: 8,865 weekly downloads as of Dec 5, 2026, +658% over 90 days.

7/30/90-day growth

@tanstack/ai-acp weekly downloads growth on npm: +15.3% over 7 days, +21.4% over 30 days, +658% over 90 days.@tanstack/ai-acpWeekly downloads growth on npm8,865downloads / week now7-day growth+1,174 weekly downloads+15.3%30-day growth+1,563 weekly downloads+21.4%90-day growth+7,696 weekly downloads+658%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-acp weekly downloads growth on npm: +15.3% over 7 days, +21.4% over 30 days, +658% over 90 days.

Ranking history

@tanstack/ai-acp npm ranking history: currently #1320 (by weekly downloads).@tanstack/ai-acpnpm ranking · by weekly downloads · Last 90 days#1320current rank#400#600#800#1000#1200#1400#1600#1800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-acp npm ranking history: currently #1320 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs378 listings · 19 pages · page 5, #13 (overall #93)
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-acp
Date (UTC)Weekly downloadsChange vs. previous
8,865+163
8,702+540
8,162+1.3K
6,903+738
6,165-779
6,944-442
7,386-305
7,691+121
7,570+353
7,217-1.3K
8,521-856
9,377+107
9,270+807
8,463—

Similar npm AI SDKs plugins

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