BlueOnyx
KubernetesDevOpsTypeScriptOpen SourcePlatform Engineering

When Kubernetes Fits in 140 KB and Runs in a Browser Tab

Blue OnyxPublished on 1 juillet 20265 min read
Bureau minimaliste avec laptop et accessoires modernes

Teaching Kubernetes Without Spinning Up a Single Server

Kubernetes has cemented itself as the de facto standard for container orchestration across enterprise environments. Yet behind that widespread adoption lies a challenge that anyone involved in developer education knows all too well: standing up a Kubernetes environment — even for purely educational purposes — is expensive, slow, and painful to maintain over time. Interactive tutorial platforms like Killercoda or KodeKloud depend on real infrastructure: servers to provision, monitor, and fund.

That is exactly the problem Sam Rose, Senior Developer Educator at ngrok, set out to solve in a radically different way: porting the fundamental components of Kubernetes directly into the browser.

Webernetes: Reimplementing What Actually Matters

The project is called Webernetes. Over two months, Rose produced nearly 100,000 lines of code spread across 552 commits and 629 files. The TypeScript codebase actually exceeds 126,000 lines when excluding comments and ancillary files. Once compiled and compressed, the entire package fits in roughly 140 KB — barely the size of a decent-quality JPEG.

The test coverage is serious: 204 integration tests, calibrated against a real k3s cluster for behavioral accuracy, and 1,855 unit tests. There is no WebAssembly involved: Webernetes is pure TypeScript, running natively inside the browser's JavaScript engine.

What the project implements is far from trivial: full pod lifecycle management, cluster DNS, IP address allocation, Deployments and ReplicaSets tracking, container garbage collection, and even a simulated CNI (Container Network Interface) layer for inter-pod communication. Some capabilities remain out of scope — ConfigMaps, Secrets, persistent volumes — but for educational or demonstration use cases, the behavioral fidelity is close enough to replicate what engineering teams encounter in production.

What This Means for DevOps Teams in Practice

The value here extends well beyond technical novelty. For any team producing documentation, tutorials, or onboarding content around Kubernetes, dependency on hosted infrastructure carries a real operational cost: cloud spend, provisioning latency, and the risk of content decay when environments go unmaintained.

With Webernetes, an interactive tutorial becomes a static artifact: a single web page, no backend, no cluster running quietly in the background. Developers can manipulate pods and deployments directly in their browser, with nothing to install. For platform engineering teams looking to accelerate internal Kubernetes adoption, this is a concrete avenue worth exploring — particularly for enriching developer portals or internal knowledge bases.

A Signal for the Platform Engineering Ecosystem

The project points to a broader trend taking shape across the DevOps ecosystem: reimplementing systems originally designed for distributed clusters within highly constrained environments — browser, edge, embedded. After lightweight Kubernetes distributions like k3s and k0s, seeing the orchestrator's core run inside a browser tab illustrates just how far optimization can go when the functional scope is tightly defined.

For ngrok — whose tunneling tool is well known in developer circles — Webernetes signals a deliberate push into technical education. The code is published open source on GitHub and a live demo is already available. For DevOps and platform engineering teams looking to modernize their training tooling without inflating their cloud bill, this is exactly the kind of project worth putting on your radar.

Share