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
OptionalextraOptionalgid?: numberVirtual group for existing host-backed mount entries. Defaults to root.
Optionalreadonly?: booleanOptionaluid?: numberVirtual owner for existing host-backed mount entries. Defaults to root.
OptionalmaxMaximum wasm memory pages per process (default: 16384 = 1GB). Initial memory is smaller and grows on demand up to this cap.
OptionalmaxAllocation-admission budget sampled from simultaneously live process address spaces before each new allocation.
A running guest can grow its own memory without a JavaScript callback, so
aggregate growth may cross this value until the next allocation observes
it. maxPages remains the hard per-process growth cap.
Retired generations are never reused and pass through a separate short, admission-threshold window before new churn proceeds.
OptionalmaxMaximum concurrent workers (default: 4)
OptionalonCalled for host-runtime diagnostics that are not guest stderr.
OptionalonCalled as lazy VFS files or trees are fetched on demand.
OptionalonCalled when a process is spawned, execs a new program, or exits.
Used by Inspector-style UIs to refresh their process table without
polling. Kernel-internal fork and posix_spawn events carry ppid;
the synthetic root spawn does not.
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.OptionalrootfsExhaustive exact URL-to-byte transport for lazy entries in rootfsImage. Intended for offline and pre-publication acceptance: when set, unbound URLs fail instead of falling through to ambient network fetch.
OptionalrootfsResolve relative lazy URLs embedded in rootfsImage before transport. This is the Node peer of BrowserKernel's lazyUrlBase contract.
Size of the data buffer for syscall data transfer (default: 65536). Increase for programs that do large pwrite() calls (e.g. InnoDB).