Skip to content
PluginStats

callscript weekly downloads statistics

By vercel-labs (8 listings) · npm · MCP servers

a tool-calling script language for LLMs - the model authors ONE small script (plain JS, compiled to a validated, bounded, inert JSON plan - never executed) instead of calling tools one at a time. Adapter-based: mount AI SDK tools or plain { name, execute

View on npm Fresh · Dec 6, 2026

callscript has 21,167 recorded weekly downloads on npm, a decrease of 27.6% over the past 30 days, ranking #1022 of 3,247 tracked listings.

Weekly downloads
21,167
Official API · Dec 5, 2026
7-day growth
+4.8%
+974 weekly downloads
30-day growth
-27.6%
-8.1K weekly downloads
90-day growth
+2147%
+20.2K weekly downloads
Rank
#1022
▲ 5 in 7 days

About callscript

callscript

Code Mode, without the sandbox.

Experimental. callscript is a Vercel Labs project. APIs may change between releases.

The model writes JavaScript - and it never runs. Instead of calling tools one at a time, the model authors ONE small script in TypeScript and it compiles into an inert JSON plan: validated whole before anything runs (every issue reported at once), executed with bounded call counts, steps scheduled by data dependency. The only things that can execute are the tools you mounted.

Install

npm install callscript

Two small runtime dependencies (acorn, zod), no sandbox, no service: the engine is a library that runs wherever your JS runs. The adapter's peer (ai) is optional and only needed by its own entrypoint.

Quick start

Mount your AI SDK tools on an engine and hand the model the ready-made tools - execute runs the script it authors; search and describe let it discover mounted tools without carrying every definition in its prompt:

import { generateText } from "ai";
import { callscript } from "callscript";
import { toAISDKTools, fromAISDKTools } from "callscript/ai-sdk";

const engine = callscript({
	tools: fromAISDKTools(tools, { namespace: "github" }),
});

await generateText({
	model: "anthropic/claude-sonnet-5",
	prompt: "Close every stale open issue in the 'api' repo.",
	tools: toAISDKTools(engine), // execute + search + describe
});

Why

Classic tool calling has a shape problem: one call per model round-trip. Every intermediate result travels back through the context window just so the model can look at it and decide the next call: slow, token-expensive, and the plan lives nowhere you can inspect it.

Code Mode fixes this by having the model write real TypeScript that calls the tools, then executing that program. The insight is right: models are better at writing programs than at emitting tool-call chains, and intermediate data should flow between calls without a detour through the context. But the price is that you are now executing arbitrary LLM-authored code, so you need a sandbox: an isolate, a container, a worker. That is infrastructure to run, and a security boundary you must get exactly right.

callscript is Code Mode without the sandbox. The model still authors one program - in the JavaScript it already writes, with loops, branches, and dataflow - but nothing it writes ever executes as code: the script compiles into inert JSON with a pure expression subset. The only things that can execute are the tools you mounted. That one change buys the rest:

  • No sandbox needed: there is no arbitrary code to contain. Expressions are a side-effect-free JS subset (no I/O, no globals, no imports), so the engine runs wherever your JS runs: serverless, edge, the same process as your app.
  • Statically checkable: because the plan is data, the whole thing validates before anything runs: unknown tools, misshaped args, unbound references, every issue reported at once. Arbitrary code can only fail at runtime, one error at a time.
  • Bounded by construction: fan-outs declare max and the engine enforces call limits; a runaway loop is a validation error, not an incident.
  • Serializable and resumable: a JSON plan plus a serializable record means runs can suspend (approval gates, external events) and resume with settled steps reused. Pausing arbitrary code mid-execution is famously hard.
  • Parallel for free: steps are scheduled by data dependency, so independent calls run concurrently without the model having to write Promise.all correctly.
  • Plain-value results: sandboxed code hands results back as logged text you parse afterwards; script steps return plain values the next step - and the host - reads directly.
  • Auditable: what will run and what ran are the same inert artifact: reviewable before execution, replayable after.

Expressions are a small language for pure transforms between calls, not general computation. If a step genuinely needs code, then you can have a code tool exposed to the agent.

The JS surface

The authoring format is the JavaScript the model already writes - so the entire language instruction (jsLanguageCard, what engine.describe() puts in the prompt) is one card of ~500 tokens, and the validator's pointed messages teach the rest on retry:

// close stale issues
const issues = await github.listIssues({ repo: "api" });
const stale = issues.filter(i => i.stale);
if (stale.length === 0) return { closed: 0 };
const closed = await Promise.all(
  stale.slice(0, 10).map(i => github.closeIssue({ repo: "api", number: i.number })));
return { count: closed.length };

This is parsed, never executed: each statement compiles into a step of the same inert plan - const x = await tool(...) is a call step, const x = expr a pure derivation, if (cond) return v a guard, Promise.all(list.map(...)) a bounded fan-out (the visible slice is the bound), try/catch the error branch (e compiles to $errors.<id>), and the trailing return the output projection. What is stored, hashed, validated, approved, and resumed is always the JSON plan; the JS text is a frontend, not a runtime.

Semantics match the JS reading: awaited calls run in statement order (the compiler inserts after edges where no data already orders them), and Promise.all - the spelling the model already knows for concurrency - runs calls in parallel. A call's second argument carries per-step options: github.closeIssue(args, { reason: "why", suspend: true, onError: "skip" }). An un-awaited call to a mounted tool detaches (fire-and-forget) and a later script joins it with const r = await job.…

Description from the npm listing.

  • llm
  • tool-calling
  • agents
  • ai-sdk
  • code-mode
  • mcp

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

callscript weekly downloads on npm, last 90 days: 21,167 weekly downloads as of Dec 5, 2026, +2147% over 90 days.callscriptWeekly downloads on npm · Last 90 days21,167downloads / week+2147% over 90 days05K10K15K20K25K30K35KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
callscript weekly downloads on npm, last 90 days: 21,167 weekly downloads as of Dec 5, 2026, +2147% over 90 days.

7/30/90-day growth

callscript weekly downloads growth on npm: +4.8% over 7 days, -27.6% over 30 days, +2147% over 90 days.callscriptWeekly downloads growth on npm21,167downloads / week now7-day growth+974 weekly downloads+4.8%30-day growth-8,078 weekly downloads-27.6%90-day growth+20,225 weekly downloads+2147%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
callscript weekly downloads growth on npm: +4.8% over 7 days, -27.6% over 30 days, +2147% over 90 days.

Ranking history

callscript npm ranking history: currently #1022 (by weekly downloads).callscriptnpm ranking · by weekly downloads · Last 90 days#1022current rank#850#900#950#1000#1050Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 43 observations · Updated Dec 5, 2026pluginstats.com
callscript npm ranking history: currently #1022 (by weekly downloads).

Listing placement

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

Listing placement

MCP servers468 listings · 24 pages · page 10, #4 (overall #184)
MCP servers: 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 (170)
Recent weekly downloads observations for callscript
Date (UTC)Weekly downloadsChange vs. previous
21,167-723
21,890+1.9K
19,989+1.9K
18,093+701
17,392-941
18,333-1.4K
19,739-454
20,193-1.6K
21,820-2.2K
24,064-1.6K
25,677-979
26,656+211
26,445-1.6K
28,075—

Similar npm MCP servers plugins

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