OptionaldataOptionaldefaultHost default pthread slots when a wasm binary declares -1 (default: 16).
OptionalenableAttach a real-TCP backend in the worker so wasm programs can dial
external hosts via Node net.Socket.
OptionalexecVirtual path → host filesystem path for exec resolution inside the worker
OptionalextraOptionalmaxMaximum wasm memory pages per process (default: 16384 = 1GB). Initial memory is smaller and grows on demand up to this cap.
OptionalmaxMaximum concurrent workers (default: 4)
OptionalonCalled when a process is spawned, execs a new program, or exits. Used by Inspector-style UIs to refresh their process table without polling.
OptionalonCalled when a process writes PTY output
OptionalonCalled when the worker can't resolve an exec path locally. Return the program bytes or null if not found.
OptionalonCalled when a process writes to stderr
OptionalonCalled when a process writes to stdout
OptionalrootfsOpt in to mount-based VFS for this kernel boot.
"default" — load <repoRoot>/host/wasm/rootfs.vfs, falling back
to the resolver-managed programs/rootfs.vfs artifact, and apply
DEFAULT_MOUNT_SPEC via resolveForNode. The worker constructs
a VirtualPlatformIO (rootfs at /, host-fs scratch dirs at
/tmp etc.).ArrayBuffer | Uint8Array — use the supplied image bytes
instead of reading from disk. Same mount spec applied.undefined (default) — use raw NodePlatformIO (every host
path reachable). Preserves the pre-cutover behaviour for the
direct-host-fs callers (demos, scripts) that haven't migrated
to a VFS-only world yet.
Size of the data buffer for syscall data transfer (default: 65536). Increase for programs that do large pwrite() calls (e.g. InnoDB).