Today | News | Books | Recipes Notes | QuickTake | Wiki | Browse Maps | Reference | Reddit | YouTube Chat | Games | About GitHub - pithings/unkernel: A real Linux kernel, compiled to WebAssembly. It boots to a shell in less than a second. · GitHub Open Original Page GitHub - pithings/unkernel: A real Linux kernel, compiled to WebAssembly. It boots to a shell in less than a second. · GitHub Products Platform GitHubRepository hosting, code review, and collaboration CopilotAI coding agent for tasks, projects, and automated work Build & Ship ActionsCI/CD and automation Code QualityQuality analysis, fixes, and enforcement CodespacesCloud development environments Secure Code SecurityVulnerability detection and remediation Secret ProtectionSecret scanning and leak prevention Developers LearnDocumentation BuildBuild with Copilot ExploreTrending repos Changelog Changelog Your source for the latest features, improvements, and fixes across GitHub products, all in one place. Businesses By StageEnterprises By IndustryHealthcare Evaluate GitHubWhy GitHub Add-ons GitHub Advanced SecurityEnterprise-grade code security Copilot for businessEnterprise-grade AI features Premium SupportEnterprise-grade 24/7 support Resources Learn & ConnectDocumentation SupportCustomer support GitHub Universe GitHub Universe The event for developers, by developers - talks, workshops, and what's next for GitHub. Sign up Appearance settings
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session. Repository navigation Security and quality NotificationsYou must be signed in to change notification settings Star1.3k (1.3k)You must be signed in to star a repository A real Linux kernel, compiled to WebAssembly. It boots to a shell in less than a second. GPL-2.0, MIT licenses found Code Open more actions menu NameNameLast commit message Repository files navigation A real Linux kernel, compiled to WebAssembly. It boots to a shell in less than a second. Try it ·
Performance ·
Features ·
CLI ·
How it works ·
Benchmarks ·
JavaScript SDK unkernel is Linux 7.x built as a single wasm module with a real MMU. The
kernel (syscalls, scheduler, memory management, ext4, TCP/IP) is compiled
code, not emulated, so programs get Linux's own behavior down to the edge
cases. Only user programs are emulated: unmodified aarch64 (arm64) Linux
binaries, so Alpine and Debian packages run as they are. Open a page and you have a Linux machine with a
shell, a package manager, a persistent disk, internet access, and a screen
with sound. It runs entirely on your device, with nothing to install and no
server, and every layer is open source. How it works
explains the design. Much of what makes a system feel slow lives in the kernel: starting
processes, syscalls, page faults, file and network I/O. In unkernel that
path runs at wasm speed. Boot: the kernel reaches /init about 70 ms after it starts, and the Alpine
prompt appears 0.3 s after node launches. The page downloads about
10 MB, and Alpine boots in 48 MiB of guest memory. Syscalls at close to native cost: getppid takes about 170 ns (110
native, 1.7 µs under qemu-system), a 64-byte read about 170 ns (160
native). fork at native speed: fork + exit + wait takes about 60 µs, against
about 70 µs natively and 1.2 ms under qemu-system. A JIT for user code: hot aarch64 code, including the AES, PMULL and
SHA instructions OpenSSL uses, is compiled to wasm while it runs. With
it a shell loop runs 1.6 times and sort 2.3 times as fast as on the
interpreter alone, and OpenSSL in the guest does AES-128-GCM at about
100 MB/s and SHA-256 at about 160 MB/s. The syscall and fork numbers were measured on 2026-11-14 (with the
riscv64 user space the project started with; the path through the kernel
is the same), the JIT numbers on 2026-11-18. CPU-heavy programs are well
behind native: apk search over the main index takes about 0.8 s, apk add python3 about 3.4 s. Benchmarks has the full numbers. Anything a program relies on, from /proc and epoll to cgroups and
overlayfs, behaves as it does on a server, because it runs the same code. A real MMU (arch/wasm with Sv39 page tables): fork, mmap,
copy-on-write, shared memory, threads and signals behave as they do on
hardware. This is not a NOMMU port where programs are limited to vfork. Linux's own file systems: ext4, overlayfs, tmpfs, loop devices, FUSE,
and 9p, which mounts file systems your program serves
from the host. The root file system is an overlay: a read-only distro
image under your changes, which go to a persistent ext4 disk, so
everything you change survives a reload, and a safe mode recovers a
system you broke. Linux's own TCP/IP stack, with DHCP and DNS, reaching the internet
through your host's sockets or a Wisp proxy
(Add a network). cgroups, namespaces, userfaultfd, fanotify and TUN: enough for
systemd to boot Ubuntu 26.10 to multi-user.target. Devices: a framebuffer (/dev/fb0), evdev keyboard, mouse and touch,
sound through ALSA and /dev/dsp,
AF_VSOCK, and shared memory with the
host. aarch64 user space: ARMv8.0-A with FP and AdvSIMD plus the AES,
PMULL, SHA1, SHA2, SHA512, SHA3, CRC32 and LSE atomics extensions, so
distribution binaries and
OpenSSL's hardware AES, GHASH and SHA paths run unchanged. aarch64 is a
first-class port of
every distribution, so their full, current package archives are
available. Known limits lists what is still missing. 🧰 What you can do with it Carry a Linux shell anywhere. Alpine Linux
3.24 runs in Chrome, Edge, Firefox and Safari, including on phones. Install
anything with apk add from Alpine's regular mirrors. Type a command that
isn't installed, such as htop, and its package is installed for you. apk
starts with only the main repository, because it is about 4x faster that
way; community is added the first time a command needs it. Run real runtimes and tools: Node and npm, Python, OpenSSL, curl and
wget, straight from the distribution. Debian 13 boots the same way as
Alpine (--distro debian), with apt. Write graphics and sound programs against
/dev/fb0, evdev and ALSA. Try glimmer, a tiny game with sound. Embed Linux in your app with a
zero-dependency TypeScript SDK, published as
unkernel. The same kernel file
runs in Node and in every supported browser, optionally in a
worker. Disks can be local ext4 images,
http(s) images fetched by range, or a persistent disk in IndexedDB. The SDK
is MIT-licensed, and there is no closed engine or license key behind it, so
you can ship it in your product and host it wherever you like. Talk to the guest through terminal sessions, each
with its own pty and shell, host directories and in-memory file
systems mounted in the guest, vsock byte
streams and zero-copy shared memory,
with no network in between. Script and test: the CLI types input on a
schedule, stops on a timeout, and reports how the guest ended in its exit
code. 🌐 Try it in the browser Open unkernel.dev. A desktop appears after a
download of about 10 MB, with a shell in its Terminal window. Your changes
are saved in the browser. The Dock opens the apps (so do ⌘K on a Mac and
Ctrl-Shift-O elsewhere); Settings has the options and export or reset for
your disk, System the diagnostics. Ctrl-A n (or ⌘A n on a Mac) or + on
a Terminal window's tabs opens another terminal with its own shell, up to
9; Ctrl-A and a digit switches, and Ctrl-A ? lists every shortcut. The
wallpaper is a random photo from Lorem Picsum
by default, so the page fetches one from picsum.photos on every load;
the built-in wallpaper or a preset (Settings > Desktop) stops that. The page takes a few URL parameters: Links | Open - Skip to content | | Open - Sign in | | Open - GitHubRepository hosting, code review, and collaboration | | Open - CopilotAI coding agent for tasks, projects, and automated work | | Open - ActionsCI/CD and automation | | Open - Code QualityQuality analysis, fixes, and enforcement | | Open - CodespacesCloud development environments | | Open - Code SecurityVulnerability detection and remediation | | Open - Secret ProtectionSecret scanning and leak prevention | | Open - All Features |
Browse another page: |