Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/security / / IsolatedVMSandboxOptions
Interface: IsolatedVMSandboxOptions
Defined in: packages/security/src/sandbox/isolated-vm.ts:89
Stable
Options for createIsolatedVMSandbox(...).
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
defaultTimeoutMs? | readonly | number | Default wall-clock timeout (ms). Defaults to 5000. | packages/security/src/sandbox/isolated-vm.ts:93 |
fallback? | readonly | "fallback-to-worker-threads" | "throw" | Adapter to use if the isolated-vm peer is unavailable. Defaults to 'fallback-to-worker-threads'. Set to 'throw' for production builds that must refuse to start when the peer is missing. | packages/security/src/sandbox/isolated-vm.ts:99 |
fallbackAdapter? | readonly | SandboxImpl | Worker-threads adapter to fall back to. Required when fallback === 'fallback-to-worker-threads'. | packages/security/src/sandbox/isolated-vm.ts:101 |
memoryLimitMb? | readonly | number | Memory limit forwarded to new Isolate({ memoryLimit }). Defaults to 128 MB per DEC-148. | packages/security/src/sandbox/isolated-vm.ts:91 |
peerLoader? | readonly | () => Promise<IsolatedVMPeerModule> | Override the peer-dep loader. Tests pass a stub here so the adapter can run without the native binary. | packages/security/src/sandbox/isolated-vm.ts:108 |
warn? | readonly | (message) => void | Optional WARN logger called once per process when the fallback engages. | packages/security/src/sandbox/isolated-vm.ts:103 |