damn.academy 0.4.0: browser-based DevOps learning platform with Linux and Kubernetes
Overview of damn.academy 0.4.0: running Linux and Kubernetes inside a browser tab, state-based task validation, and offline mode support.

The damn.academy educational platform is a free open-source project designed to help users master DevOps engineering from scratch. Released on December 1, version 0.4.0 brings numerous technical innovations that make learning interactive, accessible, and capable of running entirely inside a browser. The developers avoided using heavy cloud virtual machines for every student to keep the project completely free and eliminate complex environment setup steps for users.
- The platform runs entirely in the browser using TypeScript without a backend, storing progress in IndexedDB and supporting offline mode via a service worker.
- The DevOps course includes 16 blocks and about 110 hours of practice, covering everything from Linux and networking to Kubernetes and infrastructure as code.
- Tasks are validated not by matching typed command strings, but by evaluating the actual state of the target machine or cluster via the unified dt.facts/v1 contract.
- The architecture relies on a modular registry with automatic Vite chunk loading and supports self-hosted deployment on corporate servers.
Technical Architecture and Vite-Powered Modularity
Technically, damn.academy is implemented as a static TypeScript website bundled with Vite without heavy UI frameworks. The pages are rendered using a minimalist h() function that constructs DOM elements directly. This approach was adopted from specialized media project engines where fast loading times are critical. The project features over twenty different simulators, editors, and diagrams that are automatically discovered and merged by the system using import.meta.glob.
Each learning module exports its metadata, and the registry combines them into a unified map of lessons, questions, and exams. Build checks are strictly enforced: duplicate module identifiers trigger a compilation error. Thanks to this modular structure, the landing page renders from a lightweight manifest, while heavy simulators and interactive diagrams are loaded dynamically only when navigating to specific sections. The platform also supports offline usage through service worker generation and caching machine images upon first use.
Read alsoLearn DevOps Engineer career for free directly in browserKubernetes Simulator and State-Based Validation Concept
The core of the practical assignments relies on validating tasks against objective system state facts rather than exact command syntax. The platform linter strictly prohibits checking typed text, requiring validation through the unified dt.facts/v1 contract instead. The platform checks for specific files on disk, running processes, or pods in particular states. This ensures the exact same verification logic works whether the student is using a lightweight simulator, a real Linux environment inside a browser tab, or a remote server.
Most Kubernetes assignments run inside kube-lite, a custom three-node k3s cluster simulator (nodes cp-1, worker-1, and worker-2) running in TypeScript at version v1.37.1+k3s1. The simulator replicates real cluster behavior: it includes a resourceVersion counter, change logs, watch mechanisms, Conflict errors on outdated writes, and proper controllers for Deployment, ReplicaSet, DaemonSet, Job, and StatefulSet. The scheduler reports authentic FailedScheduling events, Kubelet manages node leases and image pull states from ErrImagePull to ImagePullBackOff, and the network stack correctly assigns ClusterIPs alongside iptables rules.
Source: Все публикации подряд на Хабре



