๐ unkernel ยท ๐ฆ
Run a full Linux kernel in your browser or Node.js with unkernel, which boots Alpine Linux in under a second.
โโโโโโโโโโโโโโ
โญ 3 507 stars ยท ๐ด 234 forks
๐ท TypeScript ยท ๐ GPL-2.0 ยท ๐ข commit today
๐ฅ 11 contributors
You are trying to demo a CLI tool or a Linux-based runtime to a client, but you are stuck waiting for a cloud VM to provision or dealing with complex container permissions.
Every second spent setting up a remote environment or debugging cross-platform binary compatibility is a second you aren't shipping code, and the overhead of traditional virtualization is too heavy for a simple web-based demo.
unkernel lets you bring the entire Linux user space into the client's browser, allowing you to run native binaries instantly without a server, though it remains limited by the performance overhead of Wasm compared to bare metal.
๐งญ How it works
unkernel is a Linux 7.x kernel compiled into a single WebAssembly module that uses a real MMU and scheduler. It runs unmodified aarch64 binaries by emulating the CPU while executing kernel syscalls, file I/O, and networking natively within the Wasm environment.
This allows standard distributions like Alpine and Debian to boot directly in the browser or via a TypeScript SDK without virtualization or server-side dependencies.
โจ Key features
โธ Boots Alpine Linux to a shell in under 300ms.
โธ Supports standard aarch64 binaries including Node, Python, and OpenSSL.
โธ Implements a real MMU for proper fork, mmap, and copy-on-write behavior.
โธ Provides persistent storage via ext4 disk images in IndexedDB.
โธ Includes a TypeScript SDK for embedding Linux environments into web apps.
โธ Supports guest graphics and sound via /dev/fb0 and ALSA.
๐ฏ Who should try it
Developers who need to run Linux CLI tools, package managers, or full OS environments directly in the browser or Node.js.
๐ Why it matters now
Recent advancements in WebAssembly and browser APIs like JSPI have finally made running a full, non-emulated Linux kernel performant enough for practical use.
โ Verdict
An impressive technical achievement for portable Linux environments; use it for demos and sandboxed tooling, but don't expect it to replace your primary development server for heavy compute.
๐ Quick start
โโโโโโโโโโโโโโ
๐ฌ Your take?
Would you use this to provide a 'try it now' experience for your CLI tool, or is the browser-based Linux environment too heavy for your users?
โ๏ธ Forward this to a dev who should see it.
๐ GitHub repository
๐ Full breakdown
๐ Project homepage
๐ฃ @GitHub_Open_Source โ daily open-source picks
========================================
#opensource #typescript #devtools #github
pithings/unkernelRun a full Linux kernel in your browser or Node.js with unkernel, which boots Alpine Linux in under a second.
โโโโโโโโโโโโโโ
โญ 3 507 stars ยท ๐ด 234 forks
๐ท TypeScript ยท ๐ GPL-2.0 ยท ๐ข commit today
๐ฅ 11 contributors
You are trying to demo a CLI tool or a Linux-based runtime to a client, but you are stuck waiting for a cloud VM to provision or dealing with complex container permissions.
Every second spent setting up a remote environment or debugging cross-platform binary compatibility is a second you aren't shipping code, and the overhead of traditional virtualization is too heavy for a simple web-based demo.
unkernel lets you bring the entire Linux user space into the client's browser, allowing you to run native binaries instantly without a server, though it remains limited by the performance overhead of Wasm compared to bare metal.
๐งญ How it works
unkernel is a Linux 7.x kernel compiled into a single WebAssembly module that uses a real MMU and scheduler. It runs unmodified aarch64 binaries by emulating the CPU while executing kernel syscalls, file I/O, and networking natively within the Wasm environment.
This allows standard distributions like Alpine and Debian to boot directly in the browser or via a TypeScript SDK without virtualization or server-side dependencies.
โจ Key features
โธ Boots Alpine Linux to a shell in under 300ms.
โธ Supports standard aarch64 binaries including Node, Python, and OpenSSL.
โธ Implements a real MMU for proper fork, mmap, and copy-on-write behavior.
โธ Provides persistent storage via ext4 disk images in IndexedDB.
โธ Includes a TypeScript SDK for embedding Linux environments into web apps.
โธ Supports guest graphics and sound via /dev/fb0 and ALSA.
๐ฏ Who should try it
Developers who need to run Linux CLI tools, package managers, or full OS environments directly in the browser or Node.js.
๐ Why it matters now
Recent advancements in WebAssembly and browser APIs like JSPI have finally made running a full, non-emulated Linux kernel performant enough for practical use.
โ Verdict
An impressive technical achievement for portable Linux environments; use it for demos and sandboxed tooling, but don't expect it to replace your primary development server for heavy compute.
๐ Quick start
npx unkernelโโโโโโโโโโโโโโ
๐ฌ Your take?
Would you use this to provide a 'try it now' experience for your CLI tool, or is the browser-based Linux environment too heavy for your users?
โ๏ธ Forward this to a dev who should see it.
๐ GitHub repository
๐ Full breakdown
๐ Project homepage
๐ฃ @GitHub_Open_Source โ daily open-source picks
========================================
#opensource #typescript #devtools #github