Scan your whole stack
From OX Research Newsroom
Are you using @slicevm/sdk?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.14.0
@slicevm/sdk was last scanned on 23 Nov 2026 at version 0.14.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.14.0 LATEST | 23 Nov 2026 | No rules fired |
Findings for v0.14.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.14.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
One TypeScript API for running untrusted JS/TS in a Slice
sandbox, locally during development and on https://api.slicevm.com in
production. Zero runtime dependencies, ESM, Node.js 18+.
npm i @slicevm/sdk
npm i -D @slicevm/cli # only needed for local mode
import { createSlice, SliceApiError } from "@slicevm/sdk";
const slice = createSlice(); // remote if SLICE_API_KEY is set, else local
try {
const res = await slice.evalSandbox("const x: number = 21 * 2; console.log(x); x", {
fuel: 1_000_000,
memoryKb: 4096,
auditEgress: [process.env.STRIPE_SECRET_KEY!],
});
console.log(res.ok, res.result, res.stdout, res.telemetry.vmExecUs);
if (res.violation) console.warn("sandbox trapped:", res.violation);
} catch (err) {
if (err instanceof SliceApiError && err.code === "quota_exceeded") {
// upgrade plan
}
throw err;
} finally {
await slice.close();
}
createSlice({ apiKey?, baseUrl?, local?, binaryPath?, localArgs?, timeoutMs? })
local: true always uses local mode.apiKey or process.env.SLICE_API_KEY is set.client.mode tells you which one was chosen.
evalSandbox(code, options?) returns SandboxResult plus requestId and
serverTiming. Options are the contract's SandboxEvalOptions
(fuel, memoryKb, allowNet, auditEgress, deterministicSeed,
checkpoints) plus casDigest.uploadCas(bytes) uploads a .cas bundle from slice pack (remote only,
Pro and Scale plans) and returns { casDigest, bytes, modules }.close() stops the local child process. Safe to call more than once.parseServerTiming(header) parses a Server-Timing header into
{ name, dur?, desc? }[] (dur in milliseconds, per the W3C spec).A sandbox violation (fuel, memory, OCap, egress DLP) is not an exception: you get
ok: false and violation set, exactly like the HTTP API's 200 response.
Every failure is a SliceApiError with code, status, and requestId.
API codes follow the contract: bad_request, unauthorized, forbidden,
payload_too_large, rate_limited, quota_exceeded, overloaded,
not_found, internal. The client adds timeout, network_error,
local_runtime_error, and unsupported (with status 0).
Remote mode retries 503 overloaded up to 3 times and 429 rate_limited (burst
limit, or the key's runs in flight are all taken) up to 8 times, with exponential
backoff (200, 400, 800 ms plus jitter, capped at 5 s) or Retry-After when sent.
quota_exceeded and other errors are not retried.
Calls POST {baseUrl}/v1/sandbox/eval and POST {baseUrl}/v1/cas/upload
with Authorization: Bearer <apiKey>. baseUrl defaults to
https://api.slicevm.com. Uses the global fetch.
Spawns one long-lived slice mcp process per client, performs the MCP
initialize handshake, and multiplexes concurrent calls by JSON-RPC id. The
binary is found in this order: binaryPath option, SLICE_BINARY_PATH, the
@slicevm/cli package. The child does not keep your process alive when idle and is
killed when your process exits; call close() for a graceful shutdown.
Local mode requires the slice binary 0.11 or newer. Every call sends the
hosted defaults (25,000,000 fuel, 4,096 KB) unless you pass your own, and the
server is started with a fuel ceiling of 250,000,000 so Scale-sized budgets
work; your own localArgs flags take precedence.
Differences from the hosted API:
| Field or option | Local behavior |
|---|---|
telemetry |
Measured by the runtime; casMmapUs is 0 and mpkDomain is "none" |
serverTiming |
Always [] |
allowNet |
Honored per call, but only for hosts the server also allows: start it with localArgs: ["--allow-net=<host>"] |
auditEgress, deterministicSeed, checkpoints |
Same as the hosted API |
exitCode |
Same as the hosted API (runtime 0.14 or newer) |
Slice.kv |
Shared by all calls of one client (the hosted API starts every run empty) |
casDigest, uploadCas |
Throw unsupported |
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.