Back to Projects
Case Study 01Systems · WebAssembly · EdTech

LinLearn

Browser-Native Linux & DevOps Training

Browser-native Linux and DevOps training platform featuring an interactive Linux terminal, incident simulation, learning missions, command assistance, cognitive mastery tracking, and XP progress.

01 · Project Overview

What LinLearn Does

LinLearn is a browser-native Linux and DevOps training platform built around an interactive Linux terminal, Simulation Mode (distinct from a fully operational local VM while provisioning), incident simulations, learning missions, command assistance, cognitive mastery tracking (BKT model), and XP/streak learning progress—backed by Next.js, TypeScript, v86 WebAssembly, IndexedDB, Supabase Auth/RLS, Redis rate limiting, and Groq AI.

02 · Motivation

Why I Chose This Project

I built LinLearn to combine practical systems education with browser-native WebAssembly virtualization and responsible AI engineering—giving learners real Linux environments without cloud VM spin-up latency while enforcing strict data isolation and usage quotas.

03 · Real-World Problem

Learners studying Linux and DevOps often struggle to practice real troubleshooting safely without provisioning external servers, and lack guided feedback when diagnosing Nginx, Docker, or permission incidents.

04 · Problem Statement

Deliver an interactive x86 Linux training environment directly in the browser with persistent local state, realistic production-incident simulations, and an AI tutor protected by authentication, Row-Level Security, and rate limits.

06 · Proposed Solution

A Next.js + TypeScript application embedding a v86 WebAssembly x86 Linux VM with IndexedDB state persistence, paired with Supabase Auth/RLS, Redis rate limiting, and Groq AI tutoring workflows.

05 · Project Objectives

Core Engineering Goals

  • Run a full x86 Linux VM entirely in the browser using WebAssembly (v86).
  • Simulate live production incidents covering Nginx, Docker, and Linux permissions.
  • Provide an AI tutor for mock interviews, command generation, cheat-sheet creation, and terminal error analysis.
  • Track adaptive mastery with IndexedDB persistence.
  • Enforce secure authentication, Supabase Row-Level Security (RLS), Redis rate limiting, and AI usage quotas.
System Architecture

LinLearn Component Topology

4 Components · 4 Flows
Client / Input

Next.js + v86 WASM

Browser x86 Linux VM & IndexedDB

API & Security

Supabase Auth & RLS

Session Security & Row-Level Isolation

API & Security

Redis Guard

Rate Limiting & AI Usage Quotas

Intelligence / Logic

Groq AI Tutor

Incident Guidance, Commands & Interviews

Request & Data Flows

  1. Next.js + v86 WASMSupabase Auth & RLS
    Authenticated session & mastery sync
  2. Next.js + v86 WASMRedis Guard
    Rate limit & quota check
  3. Redis GuardGroq AI Tutor
    Authorized inference prompts
  4. Groq AI TutorNext.js + v86 WASM
    Error analysis, commands & feedback
The Next.js + TypeScript frontend boots a client-side x86 Linux VM via WebAssembly (v86) with IndexedDB persistence. AI tutor and learning requests flow through Supabase Auth/RLS and Redis rate/quota guards before invoking Groq AI.
08 · Technology Stack

Tools & Frameworks

  • Next.js
  • TypeScript
  • WebAssembly
  • v86
  • IndexedDB
  • Supabase
  • Redis
  • Groq AI
09 · Implementation & Contributions

What I Built

  • Built the Next.js and TypeScript platform integrating a browser-native x86 Linux VM via WebAssembly (v86) and IndexedDB persistence.
  • Designed live production-incident simulations (Nginx, Docker, permissions) and adaptive mastery tracking.
  • Implemented AI tutor workflows with Groq AI: mock interviews, command generation, cheat-sheet creation, and terminal error analysis.
  • Configured Supabase authentication, Row-Level Security, and Redis-backed rate limiting and AI usage quotas.
10 · Important Features

Key Capabilities

  • Interactive Linux terminal with Simulation Mode (distinct from a fully operational VM)
  • Incident simulation (Nginx, Docker, permissions)
  • Learning missions & sandbox challenges
  • Command assistance, cheat sheets & AI tutor
  • Cognitive mastery tracking (BKT model)
  • XP, streaks & learning progress
  • Supabase Auth/RLS & Redis rate limiting
11 · Development Workflow

Engineering & Delivery Process

  1. 01Type-safe full-stack development in Next.js and TypeScript.
  2. 02Client-side VM integration with WebAssembly (v86) and IndexedDB persistence.
  3. 03Database access policy design with Supabase Row-Level Security and Redis quota guards.
12 · Technical Challenges

Hard Problems Encountered

  • Running a responsive x86 Linux environment inside the browser while persisting learner progress locally.
  • Preventing uncontrolled LLM API consumption across interactive AI tutor and error analysis flows.
  • Ensuring each learner's saved progress and session history remain strictly isolated at the database layer.
13 · Solutions

How I Solved Those Challenges

  • Integrated the v86 WebAssembly emulator with IndexedDB persistence so learners can boot and resume Linux environments directly in the browser.
  • Added Redis-backed rate limiting and explicit AI usage quotas before forwarding requests to Groq AI.
  • Enforced Supabase Row-Level Security policies tied to authenticated user sessions.
14 · Screenshots & Visuals

System Visual Preview

Dashboard preview shows LinLearn in Simulation Mode during VM environment provisioning (not a completed terminal session). Live deployment is available at linlearn.vercel.app/dashboard.

15 · What I Learned

Engineering Takeaways

  • Integrating WebAssembly (v86) virtualization and IndexedDB persistence in a Next.js application.
  • How database-enforced Row-Level Security simplifies multi-tenant authorization.
  • Designing cost-aware AI applications with Redis rate limiting and explicit usage quotas.
Details Requiring Confirmation
  • • Additional screenshots of the production-incident simulation views if you want them embedded.
Next Case Study

RetailIQ — Smart Retail Video Analytics

Read Next