unkernel is a real Linux kernel compiled to WebAssembly, packaged so that a browser tab becomes a working Linux machine with a shell, a package manager, a persistent disk and a network stack. It is for developers who want a disposable Linux box with no virtual machine and no server behind it: in-browser playgrounds, teaching material, documentation whose examples actually run, or a shell on a laptop where you are not allowed to install anything. The repository is GPL-2.0, mostly TypeScript wrapped around the wasm kernel build, and it was published in November 2026.
What it does
Open the project's page and you get a Linux session that runs entirely on your own device. The README lists what comes with it:
- a shell and Alpine's package manager, so a missing command like
htopcan be installed on the spot withapk - a persistent disk on ext4
- internet access through the kernel's own TCP/IP stack
- a screen with sound
- unmodified distribution binaries: Node, Python and OpenSSL run exactly as Alpine or Debian ship them, with no porting step
The boot figures come from the project's own README, not from an independent test: the kernel reaches /init about 70 ms after it starts, and the Alpine prompt appears about 0.3 s after node launches. The page downloads roughly 10 MB, and Alpine runs in 48 MiB of guest memory.
How it works
The split is the interesting part. The kernel itself (Linux 7.x) is compiled into a single wasm module with a real MMU, so syscalls, the scheduler, memory management, ext4 and TCP/IP are compiled code rather than an interpreter imitating them. Programs therefore see Linux's own behavior, down to its edge cases.
Only user programs are emulated. A CPU emulator called kwemu is linked into the kernel and executes unmodified aarch64 (arm64) Linux binaries; the two are built together into one unkernel.wasm, which talks to a JavaScript SDK on the page.
The authors' benchmarks put the kernel path close to native: getppid at about 170 ns against 110 ns native and 1.7 microseconds under qemu-system, a 64-byte read at about 170 ns against 160 ns native, and fork at about 60 microseconds against 70 microseconds native. Those are the project's own measurements, so treat them as a claim to reproduce rather than a verified result.
Getting started
It needs a browser tab, and that is all: the hosted build at unkernel.dev loads about 10 MB and then runs locally, with no account, no API key and no server component. Nothing here depends on a paid service and every layer is open source, so the only cost is your bandwidth and your own CPU. The README does not list minimum browser versions, operating systems or hardware, so do not assume an old phone will cope.
The source is at github.com/pithings/unkernel. The README also has sections for running it from the terminal and for the JavaScript SDK, which is the route to embedding it in your own site; the saved copy of the README is cut off before those commands, so take the exact invocation from the repository instead of guessing at one. One licence note: GPL-2.0 is copyleft, which matters if you plan to ship this inside a closed product.
When to use it / when not
The catch is the half that is emulated. Kernel operations are fast, but user code runs on an emulated aarch64 CPU, and that shows: installing python3 takes about 3.4 seconds by the project's own figure. Anything CPU-bound in userspace will feel much slower than the syscall numbers suggest.
Use it instead of QEMU or a remote container when you need a Linux shell a reader can open in one click, with real package installs and no infrastructure to keep running. Don't use it if you need x86 binaries (userspace here is aarch64), if your workload is heavy compilation or number crunching, or if you want something with a track record: this repository is only a couple of weeks old at roughly 4,200 stars, which is interest rather than proof.
Anyone building interactive documentation, a coding course, a browser sandbox or a demo that must not phone home should take this seriously, because the hard part (a genuine kernel with real syscalls, a real filesystem and real networking inside wasm) is already done, and an entire distribution's package ecosystem comes along with it. Kernel and WebAssembly engineers will want to read the build for its own sake. Everyone else should watch rather than commit: the headline numbers are the authors' own, the userspace emulation penalty is real, and a project this young will change shape quickly.