Interactive visualization and comparison of page replacement algorithms (FIFO, LRU, Optimal, Clock). Tune inputs, step through the simulation, and review performance statistics and charts.
- Visual step-by-step simulation of selected algorithm
- Live progress, memory frames view, and current step details
- Statistics: page faults, hits, ratios
- Charts for simulation progress and cross-algorithm comparison
- Clean UI built with shadcn-ui + Tailwind
- Vite
- React + TypeScript
- shadcn-ui
- Tailwind CSS
- Recharts
Prerequisites: Node.js and npm (or pnpm/bun). We recommend installing Node via nvm: https://github.com/nvm-sh/nvm#installing-and-updating
# 1) Clone the repository
git clone <YOUR_GIT_URL>
cd memory-magic-show
# 2) Install dependencies
npm install
# 3) Start the development server
npm run devThe app will start locally (Vite will print the URL, typically http://localhost:5173).
npm run dev: Start the development servernpm run build: Build for productionnpm run preview: Preview the production build locally
src/pages/Index.tsx: Main simulation page (controls, visualization, charts)src/components/: UI components (charts, panels, frames, etc.)src/utils/pageReplacementAlgorithms.ts: Algorithm implementationssrc/types/: Shared TypeScript types
Any static hosting works (Netlify, Vercel, GitHub Pages, etc.).
General steps:
npm run build
# Deploy the contents of the generated `dist/` folder to your hostMIT