Skip to content

Latest commit

ย 

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฑ WasteWise - Track, Reduce, Repurpose Your Waste

WasteWise Logo Version License

Transform waste sorting into a rewarding experience with AI-powered scanning, gamification, and real-time environmental impact tracking.

Live Demo โ€ข Documentation โ€ข Report Bug โ€ข Request Feature


๐Ÿ“‹ Table of Contents


๐ŸŒ Introduction

WasteWise is a cutting-edge waste management platform developed for the Ignite Hackathon 2025. It empowers users to sort, track, and repurpose waste using AI, gamification, and environmental analytics.

Problem Statement

  • 40% of recyclable materials end up in landfills due to improper sorting
  • Limited awareness of proper disposal methods
  • Low engagement in sustainable practices
  • No real-time feedback on environmental impact

Our Solution

WasteWise combines AI-powered computer vision, gamification, and community engagement to make waste management:

  • โœ… Simple - Scan items with your device camera
  • โœ… Educational - Learn proper disposal instantly
  • โœ… Engaging - Earn points and compete on leaderboards
  • โœ… Impactful - Track real-time environmental contributions

โœจ Features

๐ŸŽฏ Core Features

1. AI-Powered Waste Scanning

  • Computer Vision: Identifies waste items with 92.3% accuracy
  • Real-time Classification: Recyclable, organic, trash
  • Smart Recommendations: Disposal guidance based on location
  • Flexible Input: Camera capture or gallery upload

2. Gamification & Rewards System

  • Points System: Earn points for correct scans
  • Level Progression: Eco-warrior ranks and badges
  • Achievements: Unlock badges for milestones
  • Rewards Redemption: Exciting Vouchers, eco-products, Badges
  • Daily Challenges: Extra points for completing targets

3. Environmental Impact Tracking

  • Real-time Metrics: COโ‚‚ saved, items scanned, accuracy rates
  • Trends & Charts: Visualize waste reduction over time
  • Environmental Equivalents: Trees saved, water conserved
  • Personal Dashboard: Holistic eco-footprint tracking

4. Community Engagement

  • Global & Friends Leaderboards
  • Social Sharing: WhatsApp, social platforms
  • Community Challenges: Collaborative environmental goals
  • Weekly Rankings: Track improvements

5. User Authentication & Profile Management

  • JWT-based Auth with refresh tokens
  • Protected Routes with role-based access
  • Profile Customization & preferences
  • Session Management: Secure login/logout

6. Educational Resources

  • Daily eco-tips and sustainability insights
  • Step-by-step sorting guidance
  • Material recyclability information
  • Environmental impact education

๐ŸŽจ UX Enhancements

  • Responsive: Mobile, tablet, desktop optimized
  • Smooth Animations: Framer Motion transitions
  • Toast Notifications: Real-time feedback
  • Skeleton Loaders: Smooth loading experience

๐Ÿ“ค Image Analysis Page

The user takes or uploads an image, the model classifies and outputs its type. Along with additional tips:

alt text

๐Ÿ›  Tech Stack

Frontend

Technology Purpose Version
React UI Library 18.3.1
TypeScript Type Safety 5.9.3
Vite Build Tool 7.1.7
React Router Routing 6.30.1
TailwindCSS Styling 4.1.14
Framer Motion Animations 12.23.24
Shadcn/ui Component Library Latest
Radix UI Accessible Components Latest

State Management & Data Fetching

  • React Context API - Auth & global state
  • React Hook Form - Form validation
  • Zod - Schema validation

UI Components & Icons

  • Lucide React - Icons
  • Recharts - Data visualization
  • Sonner - Toast notifications

Backend Integration

  • Axios - HTTP client with interceptors
  • JWT Authentication - Secure token-based auth
  • Cookie Management - Secure sessions

Development Tools

  • ESLint - Linting
  • TypeScript ESLint - Type-safe linting
  • PostCSS & Autoprefixer - CSS processing

๐Ÿš€ Getting Started

Prerequisites

  • Node.js v18+
  • npm / yarn / pnpm / bun
  • Git

Installation

git clone https://github.com/AustinVarshney/Ignite-Hackathon-2025.git
cd Ignite-Hackathon-2025
npm install

Environment Variables

VITE_API_URL=http://localhost:3001/api
VITE_ENABLE_ANALYTICS=true
VITE_ENABLE_PWA=true
VITE_APP_NAME=WasteWise
VITE_APP_VERSION=1.0.0

Start Development Server

npm run dev

Visit: http://localhost:5173

Build for Production

npm run build
npm run preview

Linting

npm run lint

๐Ÿ“ Project Structure

src/
โ”œโ”€โ”€ assets/          # Images, fonts
โ”œโ”€โ”€ components/      # React components
โ”œโ”€โ”€ contexts/        # React Contexts
โ”œโ”€โ”€ hooks/           # Custom hooks
โ”œโ”€โ”€ lib/             # Utilities
โ”œโ”€โ”€ pages/           # Page components
โ”œโ”€โ”€ services/        # API services
โ”œโ”€โ”€ App.tsx          # Root component
โ”œโ”€โ”€ main.tsx         # Entry point
โ””โ”€โ”€ index.css        # Global styles

๐Ÿ”ง Implementation Details

Authentication Flow

1. User submits credentials
2. Backend validates & returns JWTs
3. Store tokens in localStorage & cookies
4. Include access token in API requests
5. Automatic token refresh
6. Secure logout

State Management

  • AuthProvider: User & token state
  • Server State: React Query
  • Local/Form State: useState & React Hook Form

API Integration

const api = axios.create({ baseURL: import.meta.env.VITE_API_URL, withCredentials: true });
api.interceptors.request.use(config => { /* add auth token */ return config; });
api.interceptors.response.use(response => response, async error => { /* refresh token */ });

Routing Strategy

<ProtectedRoute><Dashboard/></ProtectedRoute>
Routes: /, /login, /register, /home, /scan, /impact, /rewards, /community, /profile

๐ŸŒฑ Environmental Impact

  • COโ‚‚ Saved: Correctly sorted items
  • Trees Equivalent: COโ‚‚ to trees
  • Water Saved: Through recycling
  • Landfill Diversion: Waste reduced
totalCO2Saved = scannedItems.reduce((sum, item) => sum + impactMetrics[item.type].co2, 0);
treesEquivalent = totalCO2Saved / 5;

๐Ÿ“ธ Screenshots

  • Landing Page: Landing Page

  • Dashboard: Home Page

  • Scan Interface: Scan Page

  • Rewards System: Rewards Page

  • Community Leaderboard: Community Page

  • Impact Tracking: Impact Page


๐Ÿ”ฎ Future Enhancements

  • Multi-item detection, barcode scanning, material analysis
  • Social features: group challenges, chat, referral bonuses
  • Advanced analytics & export (PDF/CSV)
  • Enterprise dashboard, API integration
  • CI/CD, testing, image optimization, offline support, i18n, WebSockets

๐Ÿงฉ Contributing

Contributions are always welcome ๐Ÿ’ก

To contribute:

  1. Fork the repository
  2. Create a new feature branch
  3. Commit your changes
  4. Open a pull request

๐Ÿ‘ฅ Team

Name Role
Austin Varshney Frontend Developer
Rupesh Varshney Backend Developer
Aryan Parashar AI & ML Developer
Prakhar Saxena AI & ML Developer

โญ Star this repository if you found it helpful!

Made with โค๏ธ and โ™ป๏ธ for a sustainable future

Footer

About

Live website

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages