Loading repository data…
Loading repository data…
Mayank-Garg7 / repository
A full-stack interactive DSA Visualizer built with React (Vite + Tailwind) & FastAPI. It visually demonstrates how sorting algorithms (Bubble, Merge, Quick Sort) work step-by-step with real-time animations, play/pause controls, and speed adjustment. Designed as an educational tool to help students understand Data Structures & Algorithms by visuals.
A full-stack interactive Data Structures & Algorithms visualizer that helps users understand how sorting algorithms work step-by-step using real-time animations.
Built using:
visualizer-frontend/
├── src/
│ ├── components/
│ │ ├── Visualizer.jsx
│ │ ├── Controls.jsx
│ │ ├── Bar.jsx
│ │ ├── StatsPanel.jsx
│ │ └── ActionDisplay.jsx
│ └── pages/
visualizer_backend/
├── app/
│ ├── api/routes/
│ │ └── sorting.py
│ └── algorithms/
│ ├── sorting.py
│ ├── merge_sort.py
│ └── quick_sort.py
cd visualizer_backend
python -m venv venv
venv\Scripts\activate # (Windows)
# source venv/bin/activate (Mac/Linux)
pip install fastapi uvicorn
uvicorn app.main:app --reload
Backend runs at:
http://127.0.0.1:8000
cd visualizer-frontend
npm install
npm run dev
Frontend runs at:
http://localhost:5173
| Algorithm | Endpoint |
|---|---|
| Bubble Sort | /sort/bubble |
| Merge Sort | /sort/merge |
| Quick Sort | /sort/quick |
This project demonstrates:
Built by Mayank Garg a Python + Frontend Developer focused on:
Give it a star ⭐ and feel free to fork it!
version: "3.9"
services:
backend:
build: ./visualizer_backend
ports:
- "8000:8000"
volumes:
- ./visualizer_backend:/app
command: uvicorn app.main:app --host 0.0.0.0 --reload
frontend:
build: ./visualizer-frontend
ports:
- "5173:5173"
volumes:
- ./visualizer-frontend:/app
command: npm run dev