GitHub Open Source
2.01K subscribers
3.13K photos
3.4K links
๐ŸŒŸ GitHub Open Source ๐ŸŒŸ

Discover fascinating projects from GitHub! We curate the best repositories, highlight innovative ideas, and share tips for developers. Join us to explore hidden gems and fuel your tech passion! ๐Ÿš€
Download Telegram
๐Ÿš€ unkernel ยท ๐Ÿ“ฆ pithings/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
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