Tool Open source

unkernel

unkernel is a Linux kernel compiled to WebAssembly that runs unmodified riscv64 Linux user-space binaries in browsers and Node.js. It includes Linux syscalls, scheduling, memory management, a real Sv39-based MMU, filesystems, networking, and device support; user programs run through the kwemu riscv64 emulator, with hot code compiled to WebAssembly by a JIT. This architecture lets Alpine Linux run in a browser with a shell, package manager, persistent ext4-backed storage, networking, and optional display, input, and sound.

View repository Visit site Mentioned in 1 video ↓

Overview

The project provides a command-line interface (`npx unkernel`) and a zero-dependency TypeScript/JavaScript SDK for creating kernels, running programs and shells, mounting host filesystems, connecting through vsock, forwarding ports, sharing memory, and configuring disks and network backends. The same kernel can run in supported browsers, Web Workers, and Node.js; browser networking uses a Wisp proxy because browsers cannot open raw TCP sockets. The project is open source: the kernel is GPL-2.0-or-later, while the JavaScript SDK and web page are MIT-licensed.

What unkernel is used for

1 use taken from transcripts — each links to the moment in the video.

  • A real Linux kernel compiled to WebAssembly, running unmodified RISC-V 64 user space in a browser tab with a JIT compiler, persistent disk, and networking; bootable to a shell in under a second and embeddable via a JavaScript SDK.

Videos mentioning unkernel

1 in the library.