@plimsollmark/client weekly downloads statistics
By plimsollmark · npm · AI SDKs
TypeScript client for plimsolld, with AI SDK, Trigger.dev and Mastra executeCode add-ons
@plimsollmark/client has 468 recorded weekly downloads on npm, an increase of 63.1% over the past 30 days, ranking #2278 of 3,247 tracked listings.
About @plimsollmark/client
@plimsollmark/client
A TypeScript client for plimsolld, plus three add-ons that give an agent an
executeCode tool backed by plimsoll: one for the Vercel AI SDK,
one for Trigger.dev chat agents and one for
Mastra agents. All three sit on the same client and the same
per-conversation sandbox layer, so they behave the same way.
The client has no runtime dependencies (Node >= 22.18). It speaks Connect's JSON
protocol over fetch and keeps the promises the Go client keeps:
- it states the protocol number on every request;
- it checks every answer's run record: it recomputes the request and result digests
from what it sent and received (run-records.md), refuses a
result of another kind than the request's and a record that ends before it starts, and an
answer that does not check, or has no record, is a
data_losserror with the result attached, because the code may have run; - it checks the reported isolation tier against the caller's floor the same way;
- in a session it tracks the chain of records, so a call made by anyone else who holds the session ID is caught at the next call, and at close;
- an error says whether anything ran:
notDispatchedis set only when the daemon stated that nothing did, and only then is a retry safe; - every request carries a fresh
Plimsoll-Request-Idand an answer counts only if it carries the ID back: one that does not (another request's answer, served by an intermediary, or a daemon older than protocol 3) hasanswerNotBoundset and nonotDispatched, and a success of that kind is adata_losserror.
The tier it reports is configuration and provider evidence, never runtime attestation (the README's provider table says what each tier means).
Install
npm install @plimsollmark/client
The package's version is the plimsoll release it ships in: version X.Y.Z was built and
tested against plimsolld vX.Y.Z. The add-ons need their framework installed beside it:
ai and zod for /ai-sdk, @trigger.dev/sdk, ai and zod for /trigger, @mastra/core and zod for /mastra.
This package has no dependencies, so it brings nothing into your installation; the
frameworks do. One worth knowing about: @trigger.dev/sdk 4.7 pins socket.io-client
4.7.5, whose engine.io-client resolves a ws affected by two advisories fixed in 8.21.0
(GHSA-58qx-3vcg-4xpx and GHSA-96hv-2xvq-fx4p, EXTERNAL · advisory ↗).
npm applies overrides only from your application's own package.json, so this
package's override cannot reach your installation. Until Trigger.dev moves, add one
there, as this repository's tests do:
"overrides": { "engine.io-client": "^6.6.7" }
The client
import { PlimsollClient } from "@plimsollmark/client";
const plimsoll = new PlimsollClient({ baseUrl: "https://plimsoll.internal:8443", token: process.env.PLIMSOLL_TOKEN });
const info = await plimsoll.describe(); // provider, tier, supportsSessions, ...
const r = await plimsoll.runJavaScript("console.log(6 * 7)", { minimumIsolation: "container", timeoutMs: 10_000 });
r.stdout; // "42\n"; a non-zero r.exitCode is a normal result, not an error
const s = await plimsoll.openSession({ minimumIsolation: "container" }); // docker, openshell or e2b
await s.runProject({ files: [{ path: "a.js", content: "console.log(1)" }], steps: ["node a.js"] });
await s.runJavaScript("console.log(require('fs').readdirSync('.'))");
// A cell runs in an interpreter the session keeps alive: what it defines is there next time.
await s.runCell({ language: "python", code: "import csv\nrows = list(csv.reader(open('t.csv')))", files: [{ path: "t.csv", content: "a,b\n1,2\n" }] });
(await s.runCell({ language: "python", code: "len(rows)" })).stdout; // "2\n": the last expression is printed
await s.close(); // checks the daemon's call count against the chain this client saw
A cell's files are written into the session's work directory, the interpreter's working
directory, before the code runs. Its result adds interpreterStarted (this call began with
a fresh interpreter, so nothing defined earlier exists) and interpreterEnded; its exit code
is 0 when the code ran, 1 when it raised and 124 at the deadline. Python needs python3 in
the daemon's image (plimsoll/sandbox-python has it, with NumPy and SciPy);
describe() lists the languages a session's cells run in on sessionEnvironment.languages.
close() sends one CloseSession however many times it is called, and every later call
gets the first one's summary or error: the daemon forgets a session at its first close and
would answer a second with NotFound. A close refused not dispatched (aborted before it was
sent, say) closed nothing, so a later close() tries again.
Cleartext HTTP is accepted only to a loopback address unless you pass insecureHttp: true.
executeCode for an agent: CodeSandboxes
The executeCode tool takes code, a language ("python" or "javascript"; the
languages option sets which the tool offers and the default, Python first unless you
say otherwise) and optional files: text files written into the working directory before
the code runs, so the model can hand the code another tool's output by path instead of
pasting it into the source. The value of the code's last expression is printed, as in a
notebook.
Every call of a conversation runs in the same sandbox, so code one call ran can change what later calls see: a call's output is only as trustworthy as the calls before it in that conversation (what a session gives up). The tool's calls are cells, which carry no grant, so no API access is shared between them.…
Description from the npm listing.
- sandbox
- code-execution
- ai-agents
- trigger.dev
- ai-sdk
- mastra
- code-interpreter
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm AI SDKs plugins
All 20 @plimsollmark/client alternativesData 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/@plimsollmark/client. First seen Oct 16, 2026; last successful collection Nov 6, 2026. See the methodology.