
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@executor-js/codemode-core
Advanced tools
Core primitives for "code mode" — the pattern where an LLM writes TypeScript/JavaScript that calls into a pre-registered set of tools, executed in a sandbox. This package provides the shared type surface (`Tool`, `SandboxToolInvoker`, `CodeExecutor`), JSO
Core primitives for "code mode" — the pattern where an LLM writes TypeScript/JavaScript that calls into a pre-registered set of tools, executed in a sandbox. This package provides the shared type surface (Tool, SandboxToolInvoker, CodeExecutor), JSON Schema helpers, and error types used by every runtime that implements the contract.
Most callers depend on this transitively through @executor-js/execution and a sandbox runtime like @executor-js/runtime-quickjs. Install directly when you're authoring a new runtime.
bun add @executor-js/codemode-core
# or
npm install @executor-js/codemode-core
Implement a runtime that satisfies CodeExecutor:
import type { CodeExecutor, ExecuteResult, SandboxToolInvoker } from "@executor-js/codemode-core";
import { Effect } from "effect";
export const makeMyRuntime = (): CodeExecutor => ({
execute: (code: string, invoker: SandboxToolInvoker) =>
Effect.gen(function* () {
// Spin up your sandbox, expose `invoker` as `tools.<path>(...)`, run
// the code, collect logs, and return an ExecuteResult.
void code;
void invoker;
const result: ExecuteResult = { result: undefined, logs: [] };
return result;
}),
});
The runtime is passed a SandboxToolInvoker that bridges sandbox-side tool calls back to the executor. The sandbox-visible API is whatever you decide — @executor-js/runtime-quickjs exposes a tools proxy object; a runtime targeting Cloudflare Workers might use something else.
Pre-1.0. APIs may still change between beta releases. Part of the executor monorepo.
MIT
FAQs
Core primitives for "code mode" — the pattern where an LLM writes TypeScript/JavaScript that calls into a pre-registered set of tools, executed in a sandbox. This package provides the shared type surface (`Tool`, `SandboxToolInvoker`, `CodeExecutor`), JSO
The npm package @executor-js/codemode-core receives a total of 1,641 weekly downloads. As such, @executor-js/codemode-core popularity was classified as popular.
We found that @executor-js/codemode-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.