01. Problem Identification
Many households simply dump recyclable plastics, metals, and cardboards into landfills because sorting trash is inconvenient and yields no incentive. Meanwhile, individual scavengers and collection agencies struggle to find sorted waste in their vicinity, leading to high coordination costs.
Absence of an incentive model (points valuation) for household waste sorting.
High resource waste as scavengers manually inspect arbitrary trash sites.
Difficulty coordinating exact collection pickup locations and waste pictures.
02. The Solution
TrashHub bridges this gap with an installable, mobile-responsive PWA. Households list sorted waste packages with direct pinpoint map coordinates, photos, and estimated points. Scavengers accept orders nearby, verify weight upon arrival, and credit points to the user's digital wallet.
Supports home screen installation and fast offline service worker performance for waste collectors.
Uses Leaflet/Google Maps API to drop coordinates (_lat, _long) for waste pickup locations.
Supabase security layers ensure secure data separation between households, cleaners, and admin roles.
03. Crafting & Engineering
System Architecture Flow
Technology Selection
Key Engineering Challenges Solved
- Enforcing secure multi-role database tables (Customer, Cleaner, Admin) without bloating Next.js middleware execution limits.
- Synchronizing offline PWA state queries when waste collectors enter deep landfill zones with zero network signals.
- Rendering multiple coordinates map clusters on low-end mobile devices without degrading scroll frame rates.