LeetCode 150 Mastery & Interactive Engine — System Architecture

Modular SPA, 240Hz Euler spring physics, Acorn AST tracer, QuickJS WASM sandbox, and streaming AI assistant

LeetCode 150 Mastery & Interactive Engine — System Architecture Modular SPA, 240Hz Euler spring physics, Acorn AST tracer, QuickJS WASM sandbox, and streaming AI assistant Single Page App · Vanilla ES Modules · Responsive UI · Client Presentation & Interaction Layer Single Page App Vanilla ES Modules · Responsive UI Dual Theming Engine · Obsidian Dark & Monochrome Light · Client Presentation & Interaction Layer · WCAG AA >= 4.5:1 Dual Theming Engine Obsidian Dark & Monochrome Light WCAG AA >= 4.5:1 240Hz Spring Cursor · Semi-Implicit Euler Integrator · Client Presentation & Interaction Layer · Sleep Threshold 240Hz Spring Cursor Semi-Implicit Euler Integrator Sleep Threshold Streaming Chat Widget · Stable Split + Live Tail Reveal · Client Presentation & Interaction Layer · Zero Layout Thrash Streaming Chat Widget Stable Split + Live Tail Reveal Zero Layout Thrash Mermaid & KaTeX Engine · Dynamic Client Theming Sync · Client Presentation & Interaction Layer Mermaid & KaTeX Engine Dynamic Client Theming Sync Dry-Run Visualizer · Step/Play/Scrub State Player · Client Presentation & Interaction Layer · docs/dryrun Dry-Run Visualizer Step/Play/Scrub State Player docs/dryrun Vercel Edge /api/chat · 60s Max Duration · SSE Proxy · Secure Serverless API Gateway · maxDuration: 60s Vercel Edge /api/chat 60s Max Duration · SSE Proxy maxDuration: 60s Upstash Rate Limiter · Sliding Window + In-Memory Floor · Secure Serverless API Gateway · Security Guard Upstash Rate Limiter Sliding Window + In-Memory Floor Security Guard Token & Tool Budgeter · 15s Tool Reserve · 52s Wall Guard · Secure Serverless API Gateway Token & Tool Budgeter 15s Tool Reserve · 52s Wall Guard OpenAI GPT-4o / LLM · Byte-for-byte SSE Stream · Architecture component · External AI OpenAI GPT-4o / LLM Byte-for-byte SSE Stream External AI GitHub OAuth 2.0 · Developer Identity Provider · Architecture component GitHub OAuth 2.0 Developer Identity Provider 159 Markdown Guides · 450 LeetCode Solution Blocks · Deterministic Offline Tracing Pipeline 159 Markdown Guides 450 LeetCode Solution Blocks Acorn AST Instrumenter · Depth-Free Region Alignment · Deterministic Offline Tracing Pipeline · Self-Recursion Safe Acorn AST Instrumenter Depth-Free Region Alignment Self-Recursion Safe QuickJS WASM Sandbox · Hermetic Emscripten Runner · Deterministic Offline Tracing Pipeline · Zero-Leak Sandbox QuickJS WASM Sandbox Hermetic Emscripten Runner Zero-Leak Sandbox Static Traces (.json) · Envelope v1.1 Validated Catalog · Deterministic Offline Tracing Pipeline Static Traces (.json) Envelope v1.1 Validated Catalog CSP SHA-256 Gate · Zero 'unsafe-inline' Integrity · Quality Gates & Verification Pipeline · Cryptographic CSP CSP SHA-256 Gate Zero 'unsafe-inline' Integrity Cryptographic CSP Playwright Test Suite · WCAG Contrast & Layout Invariants · Quality Gates & Verification Pipeline · Zero Flake Matrix Playwright Test Suite WCAG Contrast & Layout Invariants Zero Flake Matrix Vercel Production Edge · Static Assets + Edge Functions · Quality Gates & Verification Pipeline Vercel Production Edge Static Assets + Edge Functions SSE Query Stream SSE AST parse probes envelope Client Presentation & Interaction Layer Secure Serverless API Gateway Deterministic Offline Tracing Pipeline Quality Gates & Verification Pipeline Legend Frontend Backend Database Cloud Security External