Boot unkernel, Linux compiled to WebAssembly, on erlang_wasm, with a terminal
// momentum
// why it's here
- Created 2 days ago and already shipping
- Built almost entirely by one person
- Health 85/100 with only 22 stars
// how to help
// readme
unkernel_beam
unkernel is a real Linux kernel
compiled to one WebAssembly module, with aarch64 user programs emulated
inside it. Its own host is JavaScript. This project boots the same
unkernel.wasm on erlang_wasm, a
WebAssembly runtime written in Erlang, with a host written in Erlang, and
gives you the kernelβs console as a terminal.
[ 19.520508] Run /init as init process
unkernel base shell (base-1790052c697a11d3): no distro image (no disk labelled kwroot)
base ~ # uname -a
Linux unkernel 7.3.4+ #61333373f687 Tue Nov 24 17:43:08 UTC 2026 aarch64 Linux
Run it
You need Erlang/OTP 29, rebar3, and npm to fetch the kernel once. No C or
WebAssembly toolchain.
make fetch # downloads unkernel.wasm (13 MB) from npm, once
make unit # compiles the kernel's boot code ahead of time, once
make run # the console is this terminal; Ctrl-] quits