unkernel: a real Linux kernel compiled to WebAssembly
unkernel is Linux 7.x built as a single WebAssembly[1] module with a real MMU[2]. The kernel is compiled code, not emulated, so programs get Linux's own behavior, and only user programs are emulated with a JIT[3]. Unmodified riscv64 Linux binaries run on it, so Alpine and Ubuntu packages work as they are. It runs entirely on the user's device, with nothing to install and no server, and every layer is open source.
The kernel reaches /init about 70 ms after it starts, the Alpine prompt appears 0.3 s after node launches, and the page downloads about 10 MB. A getppid syscall[4] takes about 170 ns (110 ns native), and fork + exit + wait takes about 60 µs, against about 70 µs natively. CPU-heavy programs are still well behind native speed.
The project ships a CLI, run with npx unkernel, and a zero-dependency TypeScript SDK published as unkernel under the MIT license. Ubuntu 24.04 can boot systemd to multi-user.target, and apk installs Alpine packages from its regular mirrors.
Read the original github.comDiscussion
Discussion
Commenters mostly joke, asking to install a browser or sl on it. Practical questions include whether it can use more than one CPU core, why it says riscv64 if it is compiled to WebAssembly, and whether WebUSB could pass a device to the kernel, though one doubts the speed would suffice. Others call it a one-night project and praise it.
Links from the post and discussion
- Slashdot story linked by a commenter m.slashdot.org
Sources
-
GitHub
Unkernel : A real Linux kernel, compiled to WebAssembly



