An interactive algorithm reference and simulation lab. Browse algorithms by category, read their formal analysis, step through animated executions in a playground, and compare two algorithms head to head.
Live demo: aaas72.github.io/MASTER-INDEX
- Algorithm catalog — searchable gallery and table views, filtered by category (sorting, searching, graphs, dynamic programming, data structures)
- Detail pages — complexity analysis and formal notation rendered with KaTeX
- Playground — step-by-step execution with play/pause controls, a history slider, a live console and the code being executed
- Visualizers — bars, arrays, graphs, trees, matrices, linked lists and geometry on an infinite canvas
- Versus mode — compare two algorithms side by side on a performance radar
- Dashboard — manage the algorithm dataset (JSON) with schema validation
- PDF export — download an algorithm sheet or a versus comparison as a PDF
The simulation engine is centralized and modular: a dispatcher routes each algorithm to a category simulator, which records the run as a sequence of state snapshots that every visualizer — and the history slider — can replay.
data/algorithms.json ──▶ lib/schemas (Zod validation)
│
▼
lib/engine/simulator.ts ← dispatcher
│
┌──────────┬──────────┼──────────┬─────────────┐
sorting searching graph dp structures (lib/engine/simulators)
└──────────┴──────────┼──────────┴─────────────┘
▼
snapshots ─▶ components/visualizer/* ─▶ playground · detail · versus
app/ # Routes: algorithms, categories, playground, versus, archive, dashboard, documentation
components/ # algorithms · playground · visualizer · versus · dashboard · shared
lib/engine/ # Simulation engine, simulators and validator
lib/schemas/ # Zod schemas for algorithm data
locales/en/ # UI strings
utils/ # Benchmark engine, PDF export, simulation defaults
Engine rules and the visual design system are documented in SIMULATION_ENGINE_RULES.txt and design-guidelines.md.
Requirements: Node.js 20+
npm install
npm run dev # http://localhost:3000/MASTER-INDEXProduction build (static export to out/):
npm run buildEvery push to main builds the site as a static export and publishes it to GitHub Pages through GitHub Actions. A self-hosted setup with Nginx and PM2 is described in SERVER_SETUP.md.
- MASTER-INDEX-REP — the reference implementations of the algorithms in TypeScript, Python and C++
Abdellah Sheikh — abdellahsheikh.dev · LinkedIn