OptionalbimContext: unknownCreate a sandboxed execution environment.
The sandbox runs scripts in an isolated QuickJS WASM instance with only the bim.* API exposed. No DOM, fetch, or network access.
Optionalconfig: SandboxConfig
Permissions and resource limits
The sandbox instance (call dispose() when done)
Dispose the active sandbox and free WASM resources.
Evaluate a script in the active sandbox. Creates a sandbox if none exists yet.
Optionalconfig: SandboxConfigEvaluate TypeScript code (transpiles to JS first, then runs).
Optionalconfig: SandboxConfigGet the bim.* API schema exposed to sandboxed scripts.
Get default resource limits.
Get default permissions.
Transpile TypeScript to JavaScript without executing it.
bim.sandbox — Secure script execution in QuickJS-WASM