A local-first web application for visualizing algorithms and data-structure problems commonly encountered on LeetCode and similar coding platforms.
Supported JavaScript code is instrumented into execution traces and replayed step by step as interactive D3.js and SVG visualizations.
Live website: edmndx.github.io/Algorithms
Demo.mp4
- Step-by-step algorithm visualization
- Monaco JavaScript editor
- Automatic source instrumentation
- Play, pause, step, seek, reset, and speed controls
- Active source-line highlighting
- Trace import and export
- Zoom and pan
- Web Worker execution
Arrays · Matrices · Linked Lists · Trees · Graphs
React · TypeScript · D3.js · SVG · Monaco Editor · Web Workers · Comlink · Zod · Vite
Requires Node.js 24 and npm 11 or newer.
git clone https://github.com/edmndx/Algorithms.git
cd Algorithms
npm ci
npm run dev
npm run buildGitHub Actions builds and deploys the website to GitHub Pages on every push to main. You can also run the Deploy to GitHub Pages workflow manually from the repository's Actions tab.
The workflow publishes dist/. Vite's base path is /Algorithms/ so assets and Web Workers load correctly from the project URL.