Interactive learning · CASE STUDY

DevJourney

Static educational platform for learning programming and Computer Science by doing: 12 tracks, 60 challenges with automatic grading, labs and visualizers, all in the browser.

The challenge

Teach programming and Computer Science with real practice, without requiring an account, installation or a server, and without sending the student's code anywhere.

The solution

A static platform with 12 tracks and 60 automatically graded challenges. JavaScript, Python and SQL run for real in the browser, inside isolated workers, with guided labs and algorithm visualizers.

Architecture

Static application with no backend. The interpreters run in Web Workers with WebAssembly (Pyodide for Python, sql.js for SQLite), progress stays in the browser and the app opens offline after the first visit.

  1. HTML / CSS
  2. JavaScript
  3. Web Workers
  4. WebAssembly
  5. Service Worker
  6. localStorage

Main features

  • 12 tracks and 60 challenges with automatic grading, progressive hints and XP scoring.
  • Real execution of JavaScript, Python and SQL in the browser, in workers with no network access.
  • Git, terminal, processes, memory, networking and HTML labs, with badges that separate real execution from simulation.
  • Algorithm visualizers (Dijkstra, sorting and trees) and an installable version that works offline.

Technical decisions and limitations

  • No account and no backend: progress stays on the device and is not synchronized across browsers.
  • The terminal, Git, networking and operating systems labs are didactic simulations, always labeled as such.
  • The Python and SQL runtimes are versioned in the repository and verified with SHA-256 at build time, with no external downloads.
  • Strict CSP: execution workers have no network access and the student's HTML preview is sanitized and isolated in an iframe.

Availability

Source code
Public
Application
Open access, no account
Case study
Available
Status
Published

Context and problem

Learning to program takes practice, but execution environments usually require installation, an account or a server that receives the student's code. DevJourney brings practice to the browser, private by design.

How it works

  1. Pick a track
  2. Challenge with progressive hints
  3. Execution and automatic grading
  4. XP, achievements and local progress

Business rules

  • 12 tracks with 60 instantly graded challenges, with progressive hints and XP scoring.
  • JavaScript, Python and SQL execute for real in isolated workers; the other labs are labeled simulations.
  • No data leaves the browser: no account, no server and no code uploads.

Technical challenges and solutions

  • Challenge: Running student code safely. Solution: Dedicated workers with their own CSP and no network access, plus a sanitized HTML preview in an isolated iframe.
  • Challenge: Shipping Python and SQL without a backend. Solution: Pyodide and sql.js in WebAssembly, versioned in the repository and verified with SHA-256 at build time.
  • Challenge: Working without internet. Solution: A Service Worker that precaches the whole app and caches runtimes on demand.

Security and privacy

  • No data leaves the browser: progress stays in local storage.
  • Strict per-page CSP, same-origin COOP, nosniff and a restrictive Permissions-Policy, applied by the hosting through a headers file.
  • Security tests with a real browser confirm the worker emits no external requests and the preview blocks scripts, handlers and remote resources.

Tests and evidence

  • Green CI on GitHub Actions at the v1.0.0 release commit.
  • In this round, the full suite ran against the public URL on Chromium and WebKit: 60 end-to-end challenges, security, offline, layout at 6 widths, accessibility (keyboard, contrast, themes) and real network performance, with no failures.
  • HTTP verification of the hosting: 17 checks of headers, WebAssembly MIME types and cache policies, all passing.

Lessons learned

  • WebAssembly makes it possible to teach with real execution without giving up privacy.
  • A well-applied CSP turns the browser into an isolated execution environment, with no server.

Current status

Version 1.0.0 published, with open source code and a public live demo. Progress is not synchronized across devices.

Documented evidence

Release v1.0.0 published with green CI on GitHub Actions. In this round, the full suite ran against the public URL: 60 challenges solved end to end, security tests (worker with no network, hostile preview with no leaks, malicious import sanitized), offline mode, a 320 to 1920 px layout matrix, accessibility and performance, on Chromium and WebKit, with no failures.

Real screenshot of the published version.
Real screenshot of the published version.
Real screenshot of the published version.