Hasty Briefsbeta

Bilingual

I ported Kubernetes to the browser

2 days ago
  • #Kubernetes
  • #TypeScript
  • #Browser
  • Webernetes is a partial port of Kubernetes to TypeScript, enabling clusters to run in the browser.
  • It is about 140KiB gzipped and avoids WebAssembly due to size constraints, instead being a from-scratch TypeScript implementation.
  • The project includes features like pod lifecycles, DNS, networking, and deployments, with a browser-based image registry.
  • Almost all code was generated by LLMs, but rigorous manual review and integration testing against k3s were used to ensure correctness.
  • It includes 204 integration tests and 1,855 unit tests to validate behavior matches real Kubernetes.
  • The author spent two months on the project, with significant LLM token usage, costing over $1,800 in the final week.
  • Webernetes is intended for interactive educational content, not production, and future expansions are planned based on user needs.