EcoTrack is a comprehensive AI-driven waste management platform designed to revolutionize how households and businesses handle waste. Built with modern web technologies, it provides intelligent waste classification, gamified rewards, and enterprise-grade analytics.
EcoTrack addresses the global waste crisis by making waste segregation simple, rewarding, and data-driven. The platform uses AI to classify waste in real-time, awards eco-points for responsible disposal, and connects users with verified recycling centers.
"Turning waste into worth through AI-powered classification and community engagement"
To achieve 90%+ waste segregation accuracy globally and support UN SDG 12 (Responsible Consumption & Production)
- Household Users: Personal waste tracking with gamification
- Business Users: Enterprise dashboard with compliance reporting
- Secure login/signup with localStorage persistence
- Role-based access control
- Image Upload: Drag-and-drop or click to upload waste images
- Camera Feed: Support for direct camera capture
- Mock AI Classification: Simulates TensorFlow.js waste categorization
- Biodegradable: Wet waste, food scraps, organic matter
- Non-Biodegradable: Dry waste, plastic, metal, e-waste
- Confidence Score: Real-time accuracy percentage (85-100%)
- Bin Recommendation: Color-coded guidance (🟢 Green Bin / 🔴 Red Bin)
- Instant Feedback: Points awarded immediately after scan
- Visual Analytics:
- Chart.js pie chart showing waste segregation history
- Real-time data visualization
- Impact Metrics:
- Total Waste Recycled: Tracked in kilograms
- CO₂ Saved: Environmental impact calculation
- Virtual Trees Earned: Gamified milestone (1 tree per 10kg)
- Eco-Points: Cumulative rewards balance
- Activity Feed: Scrollable timeline of recent scans with:
- Waste type classification
- Confidence scores
- Points earned
- Timestamps (relative time format)
- Eco-Points Economy:
- Earn 15 points per biodegradable scan
- Earn 10 points per non-biodegradable scan
- Redemption Marketplace:
- Mamaearth: 20% off (500 points)
- The Body Shop: ₹500 voucher (800 points)
- Paper Boat: Free bundle (600 points)
- Tata Green: Plant a real tree (1000 points)
- ITC: Eco-stationery kit (400 points)
- Local Artisans: Handmade jute bag (300 points)
- Brand Partnerships: Integration with 6+ eco-conscious brands
- Real-time Balance: Live point tracking across all pages
Enterprise interface for Business Pro subscribers:
- Overview Dashboard: Team statistics and compliance metrics
- Team Management: Multi-account administration
- Regional Analytics: Bar chart showing compliance by region
- Compliance Reporting: Automated reports for government regulations
- Data Export: Generate sustainability reports
Three-tier pricing model:
| Plan | Price | Features |
|---|---|---|
| Freemium | ₹0/month | Basic tracking, AI classification, eco-points, community support |
| Premium | ₹99/month | + Scheduled pickups, advanced AI insights, 2x points, priority access |
| Business Pro | ₹5,000/month | + Unlimited teams, compliance reports, API access, dedicated support |
- Interactive Map: Leaflet.js integration with OpenStreetMap
- 6 Sample Recyclers: Pre-populated Delhi/NCR locations
- Recycler Profiles:
- Name, address, phone number
- Accepted waste types (badges)
- GPS coordinates with markers
- Pickup Scheduling: Button to request collection (Premium feature)
- Search & Filter: Find nearby authorized centers
- Frontend: Pure HTML5, CSS3, JavaScript (ES6+)
- UI Framework: Vanilla JS with custom component architecture
- Charts: Chart.js 4.x for data visualization
- Maps: Leaflet.js 1.9.4 for interactive mapping
- Icons: Font Awesome 6.4.0
- Fonts: Google Fonts (Inter family)
- Storage: LocalStorage for client-side persistence
- Color Palette:
- Forest Green:
#2D5A27(Primary brand color) - Dark Green:
#1a3d17(Hover states) - Light Green:
#4a8542(Accents) - Earthy Sand:
#E8DCC4(Secondary backgrounds) - White:
#FFFFFF(Base)
- Forest Green:
- Typography: Inter font family (300-800 weights)
- Responsive Breakpoints:
- Desktop: 1024px+
- Tablet: 768px - 1023px
- Mobile: < 768px
// Global State
currentUser: {
id, name, email, role, ecoPoints,
totalWaste, co2Saved, virtualTrees
}
wasteHistory: [{
type, confidence, points, timestamp
}]
rewards: [{ brand, title, cost, description }]ecotrackUser: Current logged-in user objectecotrackUsers: Array of all registered userswasteHistory: Complete scan history with timestamps
All navigation is client-side (no server required):
| Page | Function | Access |
|---|---|---|
/ (Auth) |
showAuthPage() |
Public |
#dashboard |
navigateTo('dashboard') |
Authenticated |
#scanner |
navigateTo('scanner') |
Authenticated |
#rewards |
navigateTo('rewards') |
Authenticated |
#business |
navigateTo('business') |
Business Role Only |
#pricing |
navigateTo('pricing') |
Authenticated |
#recyclers |
navigateTo('recyclers') |
Authenticated |
handleLogin(event) // Process login form
handleSignup(event) // Create new account
logout() // Clear session and reloadhandleImageUpload(event) // Load image file
classifyWaste() // Mock AI classification
mockAIClassification() // Generate random result (85-100% confidence)
displayClassificationResult(result) // Render results + update stats
resetScanner() // Clear and restartupdateDashboard() // Refresh all metrics
createWasteChart() // Render Chart.js pie chart
renderActivityFeed() // Display recent scansrenderRewards() // Display all available rewards
redeemReward(rewardId) // Process redemption transactioninitMap() // Initialize Leaflet map
renderRecyclers() // Display recycler cards
schedulePickup(recyclerId) // Request collection- Real TensorFlow.js Model: Replace mock with actual trained model
- Image preprocessing pipeline
- Custom waste classification dataset
- Model loading and inference
- Backend API Integration: RESTful API for data persistence
- User authentication (JWT tokens)
- Waste scan history sync
- Real-time leaderboard
- Payment Gateway: Stripe/Razorpay for Premium/Business subscriptions
- Email Notifications: Welcome emails, reward alerts, pickup confirmations
- Real-time Chat: Support system for users
- Advanced Analytics:
- Weekly/monthly trend reports
- Carbon footprint calculator
- Peer comparison (anonymized)
- Social Features:
- Community challenges
- Leaderboards (city/region)
- Social sharing (Twitter, Facebook)
- IoT Integration:
- Smart bin connectivity
- QR code tracking for physical waste
- Mobile Apps: React Native iOS/Android versions
- Multi-language Support: Hindi, regional Indian languages
- Dark Mode: Theme switcher
- Accessibility: WCAG 2.1 AA compliance
- Screen reader optimization
- Keyboard navigation
- High-contrast mode
- PWA Features: Offline mode, push notifications
- Export Data: CSV/PDF download of personal history
- Train TensorFlow.js Model:
- Collect/label waste dataset (Kaggle, custom photography)
- Use transfer learning (MobileNet/Inception)
- Export to TensorFlow.js format
- Integrate model loading in scanner
- Optimize Performance:
- Image preprocessing (resize, normalize)
- Web Workers for inference
- Caching for repeat predictions
- API Development:
- Node.js + Express.js REST API
- MongoDB/PostgreSQL database
- Authentication (Passport.js, JWT)
- CRUD operations for users, scans, rewards
- Cloud Deployment:
- Host API on AWS/GCP/Azure
- Set up MongoDB Atlas or RDS
- Configure CORS for frontend
- Integrate Razorpay/Stripe:
- Subscription management
- Webhook handlers for payment events
- Invoice generation
- Upgrade Flow:
- Premium/Business checkout pages
- Trial period (7 days free)
- Business Dashboard Enhancements:
- Real-time team activity tracking
- Custom report builder
- API access for third-party integrations
- Compliance Tools:
- Automated report generation (PDF)
- Government regulation templates
- Audit trail logging
- Mobile Apps:
- React Native development
- Camera integration
- Push notifications
- Performance Optimization:
- CDN for static assets
- Database indexing
- Caching strategies (Redis)
- Marketing Launch:
- Landing page redesign
- SEO optimization
- Social media campaign
- Color Psychology: Green evokes nature, growth, sustainability
- Minimalism: Clean, uncluttered interfaces reduce cognitive load
- White Space: Breathing room enhances readability and focus
- Rounded Corners: Friendly, approachable feel vs. sharp corporate edges
- All layouts designed for small screens first
- Touch-friendly button sizes (48px minimum)
- Responsive grid systems
- Hamburger menu for mobile navigation
- High color contrast (WCAG AA compliant)
- Semantic HTML structure
- Alt text for all images (to be added)
- Keyboard navigation (to be enhanced)
# Clone repository
git clone https://github.com/yourusername/ecotrack.git
# Open in browser
open index.html
# Or use a local server
python -m http.server 8000
# Visit http://localhost:8000Household User:
- Email:
demo@eco.com - Password:
demo123
Business User:
- Email:
business@eco.com - Password:
business123
- ✅ Chrome 90+
- ✅ Firefox 88+
- ✅ Safari 14+
- ✅ Edge 90+
{
id: Number, // Unique identifier (timestamp)
name: String, // Full name
email: String, // Unique email
password: String, // Plain text (DEMO ONLY - hash in production)
role: String, // 'household' | 'business'
company: String, // Business name (optional)
ecoPoints: Number, // Current points balance
totalWaste: Number, // Kilograms recycled
co2Saved: Number, // Kilograms CO₂ offset
virtualTrees: Number, // Trees earned (1 per 10kg)
createdAt: String // ISO timestamp
}{
type: String, // 'Biodegradable' | 'Non-Biodegradable'
confidence: Number, // Percentage (0-100)
points: Number, // Points awarded (10 or 15)
timestamp: Number // Unix timestamp
}{
id: Number, // Unique identifier
brand: String, // Partner brand name
title: String, // Reward description
cost: Number, // Points required
description: String, // Detailed info
image: String // Placeholder URL
}- Signup: Create account as "Household"
- Scan Waste: Upload banana peel photo
- Get Classification: "Biodegradable - 94% confidence"
- Earn Points: +15 eco-points
- Track Impact: See dashboard update (CO₂ saved, trees)
- Redeem Rewards: Exchange 500 points for Mamaearth discount
- Schedule Pickup: Contact recycler for bulk collection
- Signup: Create account as "Business" (TechCorp Ltd.)
- Add Team Members: Invite 25 employees
- Monitor Activity: View real-time compliance dashboard
- Generate Reports: Download monthly sustainability report
- Meet Compliance: Submit to government for SWM Rules 2016
- Scale Operations: Upgrade to Business Pro for API access
We welcome contributions! Here's how:
# Fork the repository
# Create feature branch
git checkout -b feature/your-feature-name
# Make changes and commit
git commit -m "Add: Brief description"
# Push to your fork
git push origin feature/your-feature-name
# Open Pull Request- HTML: Semantic tags, proper indentation (2 spaces)
- CSS: BEM methodology, mobile-first
- JavaScript: ES6+, camelCase naming, JSDoc comments
MIT License - See LICENSE file for details
- Website: https://ecotrack.app (coming soon)
- Email: support@ecotrack.app
- Twitter: @EcoTrackApp
- GitHub Issues: Report bugs
Developed by Team IGNITERS
- Chart.js - Data visualization
- Leaflet.js - Interactive maps
- Font Awesome - Icons
- Google Fonts - Typography
- OpenStreetMap - Map tiles
- UN Sustainable Development Goal 12
- India's Solid Waste Management Rules (2016)
- Global waste crisis statistics from Our World in Data
If you find EcoTrack useful, please ⭐ star this repository!
Made with 💚 for a sustainable future
Q1 2024: ✅ MVP Launch (Current Version)
Q2 2024: 🔄 Real AI Model Integration
Q3 2024: 🔄 Backend API & Mobile Apps
Q4 2024: 🔄 Enterprise Features & IoT
Q1 2025: 🔄 International Expansion
Last Updated: 2024-01-15 Version: 1.0.0 Build: Production