M
Back to Projects
WebsiteCompleted2026

TerminalQuest

A gamified platform for learning Linux, programming and the web through real missions solved in a simulated terminal and in-browser code editors, with XP, ranks, streaks, duels and a bilingual course library.

mhyar.ir/projects/terminal-quest
TerminalQuest2026
Type:
Website
Year:
2026
Status:
Completed
Technologies
9
01

Overview

TerminalQuest is a complete learning game that teaches Linux and software development by making the player actually do the work. It ships 614 missions across 160 stages and forty tracks, from a ninety-mission Linux path to Bash, C, C++, Python, JavaScript, TypeScript, Go, Rust, SQL, HTML, CSS, React, Next.js, Node.js, Docker, Kubernetes, Playwright, Flutter, Kotlin, PyTorch and LangChain. Missions run against a real simulated shell with more than sixty commands, pipes, redirection, sudo, Tab completion and a virtual filesystem that commands genuinely mutate, while code missions execute in eval-free Python and simulated JavaScript, Go, Rust, SQL, React, Next.js, Playwright, Dart, Kotlin and Flutter runners, an HTML/CSS live preview and a server-side grader that never sends the expected answer to the browser. On top of the missions sits a full course of 313 chapters and 1,096 lessons, XP from 15 to 350 per mission, a level curve of 25·(L−1)², eleven ranks from Terminal Cadet to Root Commander, daily streaks on Tehran midnight, a daily quiz, async 1v1 duels with server-side escrow and settlement, a weekly league and lifetime Elo. Accounts support email, Telegram, GitHub and Bale sign-in, generated beam avatars and a downloadable player card, while an admin console manages users, roles, bans, progress resets, content and plan entitlements. The React front end is backed by a Go API on PostgreSQL, with a crawlable server-rendered marketing site, blog, plans, sitemap, RSS and JSON-LD, plus an installable PWA and an Android shell.

02

Key Features

614 Missions across 160 Stages and 40 Tracks
Interactive Shell with 60+ Commands and a Mutable Virtual Filesystem
In-Browser Code Runners and Live HTML/CSS Preview
Server-Side Grading Without Exposing Answers
313-Chapter, 1,096-Lesson Course Library
XP, Levels, 11 Ranks, Daily Streaks and Quizzes
Async 1v1 Duels, Weekly League and Lifetime Elo
Email, Telegram, GitHub and Bale Sign-In
Ten Terminal Models with CRT Effects and Fullscreen Mode
Bilingual English / Persian RTL Interface
Installable PWA with an Offline App Shell
Android App and Full Admin Console
03

Development Process

Challenges Faced

  1. 01

    Building a convincing Linux shell in the browser, with pipes, redirection, sudo, completion and a virtual filesystem that actually changes, while never running untrusted code

  2. 02

    Simulating many language runtimes in one editor while keeping grading authoritative and the expected answers off the client

  3. 03

    Designing progression that stays fair at scale: XP curves, ranks, streaks, duel escrow, league seasons and lifetime Elo all calculated server-side

  4. 04

    Serving a crawlable, bilingual marketing site and blog plus a heavy SPA from a single Go API on a modest VPS

  5. 05

    Supporting Telegram and Bale sign-in on a host where those networks are filtered, without a direct webhook

Solutions Implemented

  1. 01

    A self-contained shell engine with its own command table, virtual filesystem and parser, so missions can mutate real state without a backend process

  2. 02

    A single editor pipeline with per-language runners and graders behind one interface, keeping expected output and hidden tests on the server

  3. 03

    All economy and competition rules implemented as transactional server operations, with the client only rendering the resulting state

  4. 04

    Server-rendered marketing, blog and plan pages with edge caching and catalog snapshots, so crawlers get real HTML and the API survives launch spikes

  5. 05

    One-time ticket sign-in relayed by a Telegram bot hosted outside the filtered network, with the API storing only the ticket HMAC