alienx5499/SortVision
ๅ ณไบ
SortVision is a web-based sorting algorithm visualizer ๐ฅ๏ธ that lets users explore and compare algorithms like Bubble, Quick, Merge, and more ๐. Easily adjust speed โก and array size ๐ to watch the sorting process in real-time. Perfect for students and enthusiasts looking to understand sorting mechanics!
็ฝ็ซไธๅบ็จๅผๅๅฏไปฅๅไปไน
- Interactive Visualizations: Watch sorting algorithms in action with real-time animations
- Multiple Algorithms: Explore 8 different sorting algorithms
- Customizable Parameters: Adjust speed, array size, and more
- Performance Metrics: Track comparisons, swaps, and time complexity
ๅฎๆตๆๆ ๅข้ฟ
- 24ๅฐๆถ
- 0
- 7ๅคฉ
- +2
- 15ๅคฉ
- +1
- 1ไธชๆ
- ๆญฃๅจๆถ้ๅๅฒ
ๅๅจๆๅ ็ๆๆ ๅๅๅ๏ผๅจๆ็ธไบ้ๅ ๏ผๅนถ้ๆฏๆฅๆฐๅขใ็ผบๅคฑ็ๆต้ไฟๆ็ฉบ็ฝใๆๆ ไปฃ่กจๅ ณๆณจๅบฆ๏ผไธไปฃ่กจ่ฝฏไปถ่ดจ้ใ
README.md
ๅๆ๐ฏ What is SortVision?
SortVision is an interactive web application that brings sorting algorithms to life through real-time visualization. Built with modern web technologies, it provides an engaging platform for learning and understanding various sorting algorithms.
๐ Key Features
- Interactive Visualizations: Watch sorting algorithms in action with real-time animations
- Multiple Algorithms: Explore 8 different sorting algorithms
- Customizable Parameters: Adjust speed, array size, and more
- Performance Metrics: Track comparisons, swaps, and time complexity
- Educational Insights: Learn about algorithm behavior and efficiency
- Responsive Design: Works seamlessly on desktop and mobile devices
"Visualize your data, understand sorting better!"
๐ Help Us Build Something Amazing Together!
Made algorithms click for you? You're exactly who we built this for! โจ Help other developers discover what you just experienced ๐
๐ญ "Every star motivates us to add more algorithms and features!" - The SortVision Team
๐ Table of Contents
- โจ Features
- ๐ฆพ Tech Stack
- ๐ Project Structure
- ๐ธ Screenshots
- ๐ Quick Start
- ๐จโ๐ง Detailed Setup
- ๐ ๏ธ Developer Tools
- ๐ฏ Target Audience
- ๐ค Contributing
- โญ Star History
- ๐ Awesome Contributors
- ๐ License
- ๐ฌ Feedback & Suggestions
โจ Features
๐ฎ Interactive Visualization
- Real-time visual representation of sorting steps
- Adjustable animation speed
- Pause and resume functionality
- Array size customization
- Random array generation
๐ Supported Algorithms
- Bubble Sort: Simple comparison-based algorithm
- Selection Sort: In-place comparison sorting
- Insertion Sort: Adaptive sorting algorithm
- Merge Sort: Divide-and-conquer algorithm
- Quick Sort: Efficient, in-place sorting
- Heap Sort: Comparison-based sorting using binary heap data structure
- Radix Sort: Non-comparative integer sorting
- Bucket Sort: Distribution sort that groups elements into buckets
๐ Performance Tracking
- Real-time comparison count
- Swap operation tracking
- Time complexity visualization
- Algorithm efficiency metrics
๐จ User Interface
- Modern, responsive design
- Dark mode support
- Mobile-friendly interface
- Intuitive controls
๐ฆพ Tech Stack
๐ Frontend Technologies
- Framework: React.js with Next.js
- Styling: Tailwind CSS v4 with custom animations
- Icons: Lucide React
- Audio: Web Audio API
- Analytics: Vercel Analytics & Speed Insights
- Routing: React Router DOM (client-side) with Next.js App Router
- Build Tool: Next.js
๐ ๏ธ Development Tools
- Build Tool: Vite
- Package Manager: npm/pnpm
- Code Quality: ESLint
- Version Control: Git
- Deployment: Vercel
๐ง Future Enhancements
- Backend integration with Node.js
- User preferences storage
- Algorithm performance history
- Custom algorithm support
๐ Project Structure
SortVision/
โโ .github/ # GitHub specific configurations
โ โโ ISSUE_TEMPLATE/ # Templates for GitHub issues
โ โ โโ bug_report.md # Bug report template
โ โ โโ config.yml # Issue template configuration
โ โ โโ documentation.md # Documentation request template
โ โ โโ feature_request.md # Feature request template
โ โ โโ performance.md # Performance issue template
โ โโ dependabot.yml # Dependabot configuration
โ โโ pull_request_template.md # PR template
โโ .gitignore # Git ignore configuration
โโ CODE_OF_CONDUCT.md # Community code of conduct
โโ CONTRIBUTING.md # Contribution guidelines
โโ LICENSE # MIT license file
โโ README.md # Project documentation (this file)
โโ SECURITY.md # Security policy and reporting
โโ SortVision/ # Main application directory
โโ .env.example # Environment variables template
โโ Dockerfile # Docker containerization config
โโ api/ # API endpoints
โ โโ gemini.js # Gemini AI API integration
โโ components.json # Component configuration
โโ docker-compose.yml # Docker Compose configuration
โโ eslint.config.js # ESLint configuration
โโ jsconfig.json # JavaScript configuration
โโ next.config.mjs # Next.js configuration
โโ nginx.conf # Nginx configuration
โโ package-lock.json # NPM package lock
โโ package.json # NPM package definition
โโ pnpm-lock.yaml # PNPM package lock
โโ postcss.config.mjs # PostCSS configuration
โโ public/ # Public static assets
โ โโ code/ # Algorithm implementations in multiple languages
โ โ โโ bubble/ # Bubble Sort implementations
โ โ โ โโ c/ # C implementation
โ โ โ โ โโ bubbleSort.c
โ โ โ โโ cpp/ # C++ implementation
โ โ โ โ โโ bubbleSort.cpp
โ โ โ โโ csharp/ # C# implementation
โ โ โ โ โโ bubbleSort.cs
โ โ โ โโ dart/ # Dart implementation
โ โ โ โ โโ bubbleSort.dart
โ โ โ โโ golang/ # Go implementation
โ โ โ โ โโ bubbleSort.go
โ โ โ โโ haskell/ # Haskell implementation
โ โ โ โ โโ bubbleSort.hs
โ โ โ โโ java/ # Java implementation
โ โ โ โ โโ bubbleSort.java
โ โ โ โโ javascript/ # JavaScript implementation
โ โ โ โ โโ bubbleSort.js
โ โ โ โโ julia/ # Julia implementation
โ โ โ โ โโ bubbleSort.jl
โ โ โ โโ kotlin/ # Kotlin implementation
โ โ โ โ โโ bubbleSort.kt
โ โ โ โโ lua/ # Lua implementation
โ โ โ โ โโ bubbleSort.lua
โ โ โ โโ php/ # PHP implementation
โ โ โ โ โโ bubbleSort.php
โ โ โ โโ pseudocode/ # Pseudocode representation
โ โ โ โ โโ bubbleSort.txt
โ โ โ โโ python/ # Python implementation
โ โ โ โ โโ bubbleSort.py
โ โ โ โโ r/ # R implementation
โ โ โ โ โโ bubbleSort.r
โ โ โ โโ ruby/ # Ruby implementation
โ โ โ โ โโ bubbleSort.rb
โ โ โ โโ rust/ # Rust implementation
โ โ โ โ โโ bubbleSort.rs
โ โ โ โโ scala/ # Scala implementation
โ โ โ โ โโ bubbleSort.scala
โ โ โ โโ swift/ # Swift implementation
โ โ โ โ โโ bubbleSort.swift
โ โ โ โโ typescript/ # TypeScript implementation
โ โ โ โโ bubbleSort.ts
โ โ โโ bucket/ # Bucket Sort implementations (same structure)
โ โ โโ heap/ # Heap Sort implementations (same structure)
โ โ โโ insertion/ # Insertion Sort implementations (same structure)
โ โ โโ merge/ # Merge Sort implementations (same structure)
โ โ โโ quick/ # Quick Sort implementations (same structure)
โ โ โโ radix/ # Radix Sort implementations (same structure)
โ โ โโ selection/ # Selection Sort implementations (same structure)
โ โโ devTools/ # Developer tools directory
โ โ โโ core.js # Core utilities and initialization
โ โ โโ device-info.js # Device detection and information
โ โ โโ index.js # Main entry point for debug tools
โ โ โโ monitoring.js # Performance monitoring utilities
โ โ โโ performance.js # Performance metrics tracking
โ โ โโ ui.js # Debug UI components and panel
โ โโ favicon.svg # Site favicon
โ โโ google12e2679e2ea95334.html # Google site verification
โ โโ manifest.json # PWA manifest
โ โโ mobile.css # Mobile-specific styles
โ โโ og-image.png # Open Graph image for sharing
โ โโ robots.txt # Search engine crawling instructions
โ โโ sitemap.xml # Site map for search engines
โ โโ splash.svg # App splash screen
โ โโ sw.js # Service worker for offline support
โ โโ twitter-image.png # Twitter card image
โโ scripts/ # Build and utility scripts
โ โโ generate-sitemap.js # Sitemap generator
โโ server/ # Backend server directory
โ โโ index.js # Express server for API proxy
โโ src/ # Source code directory
โ โโ App.css # App-level styles
โ โโ App.jsx # Main App component
โ โโ algorithms/ # Sorting algorithm implementations
โ โ โโ bubbleSort.jsx # Bubble sort implementation
โ โ โโ bucketSort.jsx # Bucket sort implementation
โ โ โโ heapSort.jsx # Heap sort implementation
โ โ โโ index.js # Algorithm exports
โ โ โโ insertionSort.jsx # Insertion sort implementation
โ โ โโ mergeSort.jsx # Merge sort implementation
โ โ โโ quickSort.jsx # Quick sort implementation
โ โ โโ radixSort.jsx # Radix sort implementation
โ โ โโ selectionSort.jsx # Selection sort implementation
โ โโ app/ # Next.js App Router directory
โ โ โโ [[...slug]]/ # Dynamic catch-all route
โ โ โ โโ client.jsx # Client-side component
โ โ โ โโ page.jsx # Page component
โ โ โโ favicon.svg # App favicon
โ โ โโ globals.css # Global CSS styles
โ โ โโ layout.jsx # Root layout component
โ โโ components/ # UI components
โ โ โโ MobileOverlay.jsx # Mobile device support
โ โ โโ SEOContent.jsx # SEO content component
โ โ โโ SortingVisualizer.jsx # Main visualization component
โ โ โโ chatbot/ # AI Chatbot components
โ โ โ โโ ChatAssistant.jsx # Main chatbot component
โ โ โ โโ ChatButton.jsx # Chat button trigger
โ โ โ โโ ChatModal.jsx # Chat modal dialog
โ โ โ โโ assistantEngine.js # AI engine logic
โ โ โ โโ index.js # Chatbot exports
โ โ โโ feedback/ # User feedback system
โ โ โ โโ FeedbackButton.jsx # Feedback button
โ โ โ โโ FeedbackForm.jsx # Feedback form
โ โ โ โโ FeedbackModal.jsx # Feedback modal
โ โ โ โโ githubService.js # GitHub integration
โ โ โ โโ index.js # Feedback exports
โ โ โ โโ locationService.js # Location detection
โ โ โโ panels/ # UI panels directory
โ โ โ โโ ConfigPanel.jsx # Configuration panel
โ โ โ โโ ContributionPanel.jsx # Contribution information panel
โ โ โ โโ DetailsPanel.jsx # Algorithm details panel
โ โ โ โโ MetricsPanel.jsx # Performance metrics panel
โ โ โ โโ config/ # Configuration components
โ โ โ โ โโ AlgorithmSelector.jsx # Algorithm selection
โ โ โ โ โโ ArraySizeControl.jsx # Array size controls
โ โ โ โ โโ ComplexityInfo.jsx # Complexity information
โ โ โ โ โโ ControlButtons.jsx # Control buttons
โ โ โ โ โโ SpeedControl.jsx # Animation speed control
โ โ โ โ โโ index.js # Config component exports
โ โ โ โโ contributions/ # Contribution-related components
โ โ โ โ โโ guide/ # Contribution guides
โ โ โ โ โ โโ BestPractices.jsx # Best practices guide
โ โ โ โ โ โโ ContributeGuide.jsx # How to contribute guide
โ โ โ โ โ โโ QuickReferences.jsx # Quick reference guide
โ โ โ โ โ โโ index.js # Guide component exports
โ โ โ โ โโ index.js # Contribution component exports
โ โ โ โ โโ overview/ # Contribution overview
โ โ โ โ โ โโ ContributorList.jsx # List of contributors
โ โ โ โ โ โโ ContributorStats.jsx # Contributor statistics
โ โ โ โ โ โโ RepositoryHealth.jsx # Repository health metrics
โ โ โ โ โ โโ index.js # Overview component exports
โ โ โ โ โโ ssoc/ # SSOC leaderboard system
โ โ โ โ โโ ExportButton.jsx # Data export functionality
โ โ โ โ โโ LeaderboardList.jsx # Leaderboard display
โ โ โ โ โโ LeaderboardRow.jsx # Individual row component
โ โ โ โ โโ config.js # Configuration settings
โ โ โ โ โโ exportService.js # Export service logic
โ โ โ โ โโ githubService.js # GitHub API integration
โ โ โ โ โโ index.js # SSOC exports
โ โ โ โโ details/ # Detail components
โ โ โ โ โโ AlgorithmDetails.jsx # Algorithm detail display
โ โ โ โ โโ AlgorithmInfo.jsx # Algorithm information
โ โ โ โ โโ AlgorithmSelector.jsx # Algorithm selection
โ โ โ โ โโ DataPanel.jsx # Data display panel
โ โ โ โ โโ FunFact.jsx # Fun facts about algorithms
โ โ โ โ โโ InteractiveTip.jsx # Interactive tips
โ โ โ โ โโ LanguageSelector.jsx # Programming language selector
โ โ โ โ โโ index.js # Detail component exports
โ โ โ โโ index.js # Panel component exports
โ โ โ โโ metrics/ # Metric components
โ โ โ โโ AlgorithmComparison.jsx # Algorithm comparisons
โ โ โ โโ CurrentRunMetrics.jsx # Current run metrics
โ โ โ โโ RankingCard.jsx # Algorithm ranking display
โ โ โ โโ TestControls.jsx # Testing controls
โ โ โ โโ WinnerSummary.jsx # Algorithm comparison results
โ โ โ โโ index.js # Metric component exports
โ โ โโ settings/ # Application settings
โ โ โ โโ SettingsButton.jsx # Settings button
โ โ โ โโ SettingsForm.jsx # Settings form
โ โ โ โโ SettingsModal.jsx # Settings modal
โ โ โ โโ index.js # Settings exports
โ โ โโ sortingVisualizer/ # Visualization components
โ โ โ โโ AudioControls.jsx # Audio control components
โ โ โ โโ PerformanceMetrics.jsx # Performance display
โ โ โ โโ SortingControls.jsx # Sorting control buttons
โ โ โ โโ SortingHeader.jsx # Visualization header
โ โ โ โโ SortingVisualizer.jsx # Main visualizer
โ โ โ โโ index.js # Visualizer component exports
โ โ โโ ui/ # UI component library
โ โ โ โโ VolumeControl.jsx # Volume control component
โ โ โ โโ badge.jsx # Badge component
โ โ โ โโ button.jsx # Button component
โ โ โ โโ card.jsx # Card component
โ โ โ โโ input.jsx # Input component
โ โ โ โโ select.jsx # Select dropdown component
โ โ โ โโ slider.jsx # Slider component
โ โ โ โโ tabs.jsx # Tabs component
โ โ โโ visualizations/ # Visualization components
โ โ โโ ArrayVisualization.jsx # Array visual representation
โ โ โโ index.js # Visualization component exports
โ โโ context/ # React Context providers
โ โ โโ AlgorithmState.jsx # Algorithm state management
โ โโ hooks/ # Custom React hooks
โ โ โโ useAudio.js # Audio management hook
โ โโ index.css # Global styles
โ โโ lib/ # Library utilities
โ โ โโ utils.js # Shared utility functions
โ โโ utils/ # Utility modules
โ โโ audioEngine.js # Audio engine for sound effects
โ โโ seo.js # SEO optimization utilities
โ โโ soundEffects.js # Sound effect definitions
โ โโ themeUtils.js # Theme management utilities
โโ vercel.json # Vercel deployment configuration
๐ Key Directories and Files:
public/code/: Complete algorithm implementations in 20+ programming languages for educational referencesrc/app/: Next.js App Router with dynamic routing and SEO-optimized metadatasrc/components/chatbot/: AI-powered chatbot system with advanced algorithm knowledgesrc/components/feedback/: Comprehensive user feedback system with GitHub integrationsrc/components/panels/contributions/ssoc/: SSOC (Social Summer of Code) leaderboard and contribution trackingsrc/utils/audioEngine.js: Advanced audio engine for immersive sorting visualization experienceserver/: Express.js backend server for API proxy and external service integrationapi/: API endpoints including Gemini AI integration for the chatbotscripts/: Build automation and SEO optimization scripts.github/: Comprehensive GitHub workflows, issue templates, and community guidelines
๐ธ Screenshots
Visualizer & Metric Selection Screens
| Visualizer Screen | Metric Screen | Details Screen |
| DevTools Panel | Performance Monitoring | Device Information |
๐ Quick Start
Choose an Algorithm
- Select from the available sorting algorithms
- Adjust visualization parameters
Start Visualizing
- Click "Start" to begin the visualization
- Use controls to adjust speed and pause/resume
๐ ๏ธ Developer Tools
SortVision includes a comprehensive suite of developer tools designed to enhance the development experience, debug performance issues, and monitor application behavior in real-time. These tools are intelligently restricted to development environments only and are automatically blocked in production deployments for security and performance optimization.
๐ Security & Access Control
The DevTools implement a sophisticated access control system:
- Development-Only Access: Tools are completely inaccessible in production environments
- URL-Based Authentication: Requires specific query parameters for activation
- Domain Restrictions: Automatically detects and blocks access on production domains
- Performance Protection: Prevents performance degradation in live environments
โก Accessing DevTools
Prerequisites
- Node.js development environment
- Local development server running
- Modern browser with JavaScript enabled
Access Methods
Standard Development Access:
npm run dev # or pnpm devDevTools Activation:
http://localhost:3000/?cr7=goatAlternative Local URLs:
http://127.0.0.1:3000/?cr7=goat http://localhost:3000/?cr7=goat # Next.js default port
๐ก๏ธ Security Note: The query parameter
cr7=goatacts as a development key and is intentionally obscure to prevent accidental activation. This parameter is completely ignored in production environments.
๐งฐ DevTools Feature Suite
๐ Performance Monitoring
Real-time performance tracking with detailed metrics:
Frame Rate Analysis
- Live FPS counter with historical data
- Frame time distribution graphs
- Performance bottleneck detection
- Smooth/choppy animation identification
Memory Usage Tracking
- Heap memory consumption monitoring
- Memory leak detection
- Garbage collection impact analysis
- Memory usage trends and patterns
Rendering Performance
- Component render time tracking
- Re-render frequency analysis
- DOM manipulation performance
- CSS animation performance metrics
Algorithm Execution Metrics
- Sorting algorithm performance comparison
- Step-by-step execution timing
- Memory allocation during sorting
- Optimization opportunity identification
๐ฑ Device Information Panel
Comprehensive device and browser analysis:
Hardware Specifications
- CPU core count and architecture
- Available RAM and usage
- GPU information and capabilities
- Screen resolution and pixel density
Browser Environment
- User agent string analysis
- Supported web APIs
- JavaScript engine details
- CSS feature support matrix
Network Information
- Connection type and speed
- Bandwidth estimation
- Latency measurements
- Network quality assessment
Viewport and Display
- Screen dimensions and orientation
- Color depth and HDR support
- Touch capability detection
- Device pixel ratio
๐ป Console Integration
Enhanced debugging capabilities:
Formatted Logging
- Color-coded log levels
- Structured data visualization
- Error stack trace enhancement
- Performance timing logs
Interactive Debugging
- Variable inspection tools
- Breakpoint management
- Call stack visualization
- Memory snapshot analysis
๐ Advanced Monitoring Features
Algorithm Visualization Metrics
- Animation frame consistency
- Sorting step accuracy verification
- Visual element positioning tracking
- User interaction response times
Resource Loading Analysis
- Asset loading performance
- Bundle size impact assessment
- Lazy loading effectiveness
- Critical resource identification
Error Tracking & Reporting
- Runtime error capture
- Promise rejection handling
- Component error boundaries
- Performance regression detection
๐ Using DevTools for Development
Basic Usage
Panel Management
// Toggle DevTools panel // Click "TOGGLE PANEL" button in the floating widget // Close DevTools completely // Click "CLOSE" button to hide all toolsPerformance Monitoring
// Monitor specific algorithm performance // Select algorithm and watch real-time metrics // Compare performance across different array sizes // Identify performance bottlenecks during sorting
Advanced Development Workflows
Performance Optimization
- Use FPS monitoring to identify animation issues
- Analyze memory usage during long sorting operations
- Monitor rendering performance with different array sizes
- Compare algorithm efficiency in real-time
Cross-Device Testing
- Verify responsive design across different screen sizes
- Test touch interactions on mobile devices
- Analyze performance on low-end devices
- Ensure compatibility across browser engines
Algorithm Development
- Debug new sorting algorithm implementations
- Verify correctness of sorting steps
- Optimize animation performance
- Test edge cases and error handling
Performance Optimization Tips
Memory Management
// Monitor memory during array operations // Identify memory leaks in algorithm implementations // Optimize garbage collection patternsRendering Optimization
// Track component re-renders // Identify unnecessary DOM updates // Optimize CSS animations for 60fps
โ๏ธ Technical Implementation
Architecture Overview
- Modular Design: Each tool is implemented as an independent module
- Event-Driven: Uses observer pattern for real-time updates
- Non-Intrusive: Minimal impact on application performance
- Conditional Loading: Only loads when explicitly requested
File Structure
public/devTools/
โโโ index.js # Main entry point and tool orchestration
โโโ core.js # Core utilities and initialization logic
โโโ performance.js # Performance monitoring implementation
โโโ device-info.js # Device detection and analysis
โโโ monitoring.js # Real-time monitoring utilities
โโโ ui.js # User interface components and styling
API Integration
// Example DevTools API usage
window.devTools = {
performance: {
startMonitoring(),
getMetrics(),
createReport()
},
device: {
getInfo(),
runDiagnostics(),
exportData()
}
};
๐จ Troubleshooting
Common Issues
DevTools Not Loading
# Verify development server is running npm run dev # Check URL parameters http://localhost:3000/?cr7=goat # Clear browser cache Ctrl+Shift+R (Windows/Linux) Cmd+Shift+R (Mac)Performance Issues
// If DevTools impact performance: // 1. Close unnecessary monitoring panels // 2. Reduce monitoring frequency // 3. Disable heavy metrics collectionBrowser Compatibility
// Supported browsers: // Chrome 80+, Firefox 75+, Safari 13+, Edge 80+ // Some features may be limited in older browsers
Performance Considerations
- Development Impact: DevTools add ~2-5% performance overhead
- Memory Usage: Additional 10-20MB RAM usage when active
- Network: Minimal network impact (local tools only)
- Battery: May increase battery usage on mobile devices
๐ช Advanced Features
Custom Metrics
// Add custom performance markers
performance.mark("algorithm-start");
// ... sorting algorithm execution
performance.mark("algorithm-end");
performance.measure("algorithm-duration", "algorithm-start", "algorithm-end");
Export Capabilities
- Performance reports in JSON format
- Device information as downloadable data
- Memory usage charts and graphs
- Algorithm performance comparisons
Integration with Popular Tools
- React DevTools: Enhanced component inspection
- Chrome DevTools: Extended performance profiling
- Lighthouse: Performance audit integration
- WebPageTest: Network performance analysis
๐ฏ Best Practices
Development Workflow
- Always test with DevTools enabled during development
- Use performance metrics to guide optimization decisions
- Monitor memory usage during algorithm development
- Regularly check device compatibility
Performance Testing
- Test on various device specifications
- Monitor performance across different array sizes
- Verify smooth animations at 60fps
- Check memory usage patterns
Debugging Strategy
- Use console integration for systematic debugging
- Leverage performance metrics for bottleneck identification
- Monitor device information for compatibility issues
- Track user interaction patterns
๐ก Pro Tip: Use DevTools data to create performance budgets and ensure consistent user experience across all devices and browsers.
๐จโ๐ง Detailed Setup
Prerequisites
- Node.js (v16.10.0 or higher)
- npm or pnpm package manager
- Git for version control
Installation Steps
Clone the Repository
git clone https://github.com/alienx5499/SortVision.gitNavigate to Project Directory
cd SortVisionInstall Dependencies
npm install # or pnpm installStart Development Server
npm run dev # or pnpm devOpen in Browser
- Visit
http://localhost:3000 - Start exploring sorting algorithms!
- Visit
๐ณ Docker Setup
SortVision can be run using Docker, which ensures consistent development and deployment environments across all platforms.
Prerequisites
- Docker installed on your machine
- Docker Compose (usually comes with Docker Desktop)
Running with Docker
Development Mode
# Build and start the development server docker compose up dev # Access the application at: http://localhost:7777Development mode features:
- Hot reloading enabled
- Source code mounted for live updates
- Development tools available
- Real-time compilation
Production Mode
# Build and start the production server docker compose up prod # Access the application at: http://localhost:80Production mode features:
- Optimized build
- Nginx server
- Proper caching
- Compression enabled
- Production-ready configuration
Docker Commands Reference
# Build the images
docker compose build
# Stop the containers
docker compose down
# View logs
docker compose logs
# Rebuild and restart containers
docker compose up --build
# Remove all containers and volumes
docker compose down -v
Using Different Package Managers
The Docker setup supports multiple package managers. To switch between them:
For pnpm (default):
# Already configured in Dockerfile RUN npm install -g pnpm COPY package.json ./ RUN pnpm installFor yarn:
# Modify Dockerfile to use yarn RUN npm install -g yarn COPY package.json ./ RUN yarn installFor npm:
# Modify Dockerfile to use npm COPY package.json ./ RUN npm install
Environment Variables
Docker setup respects the following environment variables:
NODE_ENV: Development/Production modePORT: Application port (default: 7777 for dev, 80 for prod)HOST: Host binding (default: 0.0.0.0)
๐ฏ Target Audience
๐จโ๐ Students
- Visual learning of sorting algorithms
- Understanding time complexity
- Algorithm comparison and analysis
๐จโ๐ซ Educators
- Interactive teaching tool
- Algorithm demonstration
- Performance visualization
๐จโ๐ป Developers
- Algorithm implementation reference
- Performance optimization insights
- Code structure examples
๐ Data Enthusiasts
- Algorithm behavior analysis
- Performance comparison
- Data structure visualization
๐ค Contributing
We โค๏ธ open source! Your contributions make this project better.
How to Contribute
Fork the Repository
git clone https://github.com/your-username/SortVision.gitCreate Feature Branch
git checkout -b feature/amazing-featureCommit Changes
git commit -m "Add amazing feature"Push to Branch
git push origin feature/amazing-featureOpen Pull Request
Contribution Guidelines
- Follow the existing code style
- Add tests for new features
- Update documentation
- Keep commits clean and meaningful
โญ Star History
Awesome Contributors
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ฌ Feedback & Suggestions
We value your input! Share your thoughts through GitHub Issues.
๐ก Let's work together to enhance the understanding of sorting algorithms!
ๆข็ดข็ธๅ ณ้กน็ฎ
ๅ ่ฝฝไธญโฆ