Unkernel hands-on: real Linux in WebAssembly, tested
Unkernel compiles a real Linux kernel to WebAssembly. In our Node 24 test it booted Alpine in under a second but ran jobs 3.6x to 27x slower than native.
4 min read
Drafted with AI from the sources linked in this article, then fact-checked and edited by Claire Whitmore before publishing. How we work

By the numbers
- from launching Node to Alpine powering off, three runs in our test
- 0.76-0.97 s
- slower than native Docker Alpine on a 300,000-step shell loop in our test
- 27x
- slower on a SHA-256 hash of 64 MiB, its closest result to native
- 3.6x
A project called unkernel compiles a real Linux kernel into a single WebAssembly module, and it reached the Hacker News front page on November 28. We installed it from npm and ran it under Node 24 on an Apple M3 Pro Mac. It booted Alpine Linux in under a second. It also ran our four test jobs 3.6 to 27 times slower than the same jobs in a normal Docker container.
What unkernel is
WebAssembly, or Wasm, is a compact code format that browsers and Node.js run inside a sandbox. Unkernel builds Linux 7.3.4, with its own patches, into one Wasm module, according to the project's GitHub repository. The kernel itself runs as native Wasm code.
The programs inside it are ordinary Linux binaries for aarch64, the 64-bit Arm format. A CPU emulator called kwemu runs them. It is written in the Zig language and linked into the kernel. A just-in-time compiler turns code that runs often into Wasm while it runs. Because the binaries are unmodified, Alpine and Debian packages work as they are.
The project is by Pooya Parsa, known online as pi0, and lists Vercel as a sponsor, Sulat reports. Sulat dates the repository to November 12. New builds ship almost daily: the releases page lists one on November 26 and v0.2.0-261127-3b71fa5 on November 27. The kernel side is licensed under the GPL, and the JavaScript SDK under MIT.
How it differs from older browser Linux projects
Tools such as v86, JSLinux and container2wasm emulate a whole computer. They imitate the CPU and the memory hardware, then run a normal Linux on top. Unkernel compiles the kernel itself to Wasm and gives it real page tables, so only the user programs are emulated, the README says. iMasters gives the same description.
Switching between tasks relies on JSPI, a newer Wasm feature that lets code pause and resume. That is why the browser version needs Chrome or Edge 137 or later, Firefox 153 or later, or Safari 27 or later. The README lists Node 24 for building from source but names no minimum version for running it. In September we covered a different route to the same goal, when TryNix ran Nix packages in a browser tab.
What we measured
We ran unkernel version 0.2.0-261127-3b71fa5 from npm on November 28. It ran in Node 24.22.3 inside Docker, on an Apple M3 Pro with 18 GB of memory. On first use it downloaded a 3.9 MiB Alpine image from the project's GitHub release and verified it.
The kernel log reached the first user program, /init, at 0.044 seconds. Three full runs with the image cached took 762, 921 and 967 milliseconds. That covers starting Node, booting to the Alpine prompt and powering off. The guest reported Alpine 3.24.4, kernel 7.3.4+, one CPU and 2,006 MiB of memory.
We then ran four short jobs inside unkernel and in a plain Alpine 3.24.3 Docker container on the same Mac. Both run the same Arm binaries. Each job ran once, so treat the ratios as rough.
| Job | Native Docker Alpine | Unkernel | Slower by |
|---|---|---|---|
| Shell loop, 300,000 steps | 0.43 s | 11.78 s | 27x |
| Sort 300,000 numbers | 1.08 s | 17.65 s | 16x |
| SHA-256 of a 64 MiB file | 0.30 s | 1.09 s | 3.6x |
| Gzip and gunzip the sort file | 0.09 s | 2.46 s | 27x |
The README reports that its compiler runs a shell loop 1.6 times faster than its interpreter. Our numbers show that even with it, everyday shell work is far from native speed.
Package installs gave mixed results. The console runs as a user called "user", so apk add failed with a permission error. Typing python3 triggered a helper that fetched the package index and installed Python with 18 packages. A second install as root stopped with an I/O error and hung until our 300-second limit. A native Docker install stalled at the same time, so the network may be to blame. We therefore give no install time.
Limits to know before you use it
The README lists several gaps. There is no IPv6 and no UDP beyond DHCP and DNS. Nothing outside can open a connection into the guest; the SDK's vm.connect() and vm.fetch() calls work around that. A crash inside the Wasm kernel ends the whole session.
iMasters adds that there is no ptrace, so strace and gdb do not work inside the guest. The web page boots up to 4 CPUs on desktop browsers and 2 in Firefox and on phones. The command-line tool boots 1 CPU by default.
What this means for developers
- Try it in one line. On Node 24,
npx unkernelboots Alpine;--distro debianpicks Debian, and--mountshares a folder from your machine. - Use it for sandboxes and demos. iMasters names client-side sandboxing and short-lived test environments as uses, and the sub-second boot fits them.
- Do not use it for heavy work. In our test, the shell loop and the gzip job each ran 27 times slower than native.
- Expect missing debug tools. Without ptrace,
straceandgdbwill not run inside the guest. - Pin a version. Builds change almost daily, so lock the exact npm version in anything you ship.
Sources
Related articles

Ladybird alpha: first release for macOS and Linux
Ladybird 2026.47.7 is the browser's first alpha. A table built from its release index shows which Macs and Linux systems get an official build.

TryNix runs any Nix package in a browser tab
TryNix boots a Linux kernel compiled to WebAssembly and runs any of 310,083 nixpkgs versions in a tab. Python 3 takes 7.5 seconds on a first visit.

React 19.3 ships View Transitions and Fragment Refs
React 19.3 shipped on September 9, 2026. View Transitions and Fragment Refs are now stable, and the release carries no breaking changes.
The weekly digest
One email every Friday with the week's top stories from all seven desks: AI, dev tools, coding, the tech industry, startups, what's next and tech travel. Free, no spam.