An interactive visualizer of popular sorting algorithms built using React. It helps understand how each algorithm works step-by-step by animating array comparisons and swaps in real-time.
🚀 Live Demo – Try it on Vercel
- React.js – Component-based UI rendering and state management
- JavaScript – Core logic for sorting algorithms and animations
- Bootstrap – Used for styling and responsive layout using class-based utilities
- 🔁Random Array Generator – Create a fresh set of bars to visualize
- 📏Array Size Control – Adjust size dynamically (up to 350 bars)
- 🧠Sorting Algorithms Included: Merge Sort, Bubble Sort, Insertion Sort etc
- 🎞️Live Animations – Visual step-by-step highlights of comparisons and swaps
sorting-algorithm-visualizer/
├── src/
│ ├── components/
│ ├── sortingAlgorithms/
│ │ └── BubbleSort, HeapSort etc
│ ├── App.css
│ └── App.js⚡️ For faster local development, consider migrating the codebase to Vite — the src structure remains compatible.
git clone https://github.com/rangari-rani/sorting-visualizer.gitnpm installnpm startThe app will be available at:
🌐 http://localhost:3000
📫 Connect with me on LinkedIn – Rani Rangari
⭐ If you found this project helpful or insightful, feel free to leave a ⭐!

