About FoodRelay

Inspiration

Every day, hostel messes, restaurants, weddings and canteens throw away large amounts of cooked food, while people nearby go hungry. The problem isn't only waste, it's time. Cooked food spoils within hours, and NGOs rarely find out about surplus in time. We wanted to build something where every donation is treated as a race against a clock.

What it does

FoodRelay is a real-time coordination platform that connects food donors with nearby NGOs and volunteers, and tracks each donation from listing to delivery within a safe consumption window.

  • Donor listing with a Safe-Until timer: the donor enters food type, quantity, storage condition and cooking time. A Safe-Until Engine calculates the expiry, and a color-changing Freshness Ring counts down.
  • Smart matching: NGOs and volunteers are scored on distance, travel time, capacity and food type. A Spoilage Guard rules out anyone who can't arrive before the food expires, and each match explains why it was chosen.
  • Auto-escalation and bulk split: if an NGO doesn't respond, the request moves to the next one with a wider radius. Large donations are split across several NGOs.
  • Live 3D tracking: a 3D vehicle moves along a real road route on a 3D map, with ETA, distance and remaining safe time.
  • Pickup-status tracker: Listed, Matched, Accepted, Picked up, Delivered, with photo or code confirmation at each handoff.
  • Impact dashboard: meals saved, kg of waste avoided, CO₂ saved, people fed, and a 3D Impact Tower that grows with each rescued meal.
  • Admin panel: NGO verification and platform monitoring.

How we built it

  • Frontend: Next.js, React, TypeScript, Tailwind CSS, Framer Motion
  • 3D: Three.js and React Three Fiber (landing globe, Impact Tower), plus a Three.js vehicle on a Google Maps 3D layer
  • Maps: Google Maps API, with a free MapLibre fallback
  • Logic: separate Safe-Until and Matching modules
  • Data and real-time: a simulated event system with sample data (donors, NGOs, volunteers), structured so Firebase or Supabase can replace it
  • AI tools: Antigravity, Claude, Gemini and ChatGPT helped with code, design and sample data

Challenges we ran into

  • Making the 3D vehicle follow real roads smoothly on the map
  • Designing matching rules that balance speed, distance and food safety
  • Keeping the demo reliable, which is why we added a fallback map and a Demo Mode

Accomplishments we're proud of

  • A product built around time, not just a listing form
  • Transparent matching that explains every decision
  • A polished 3D experience that tells the story rather than just decorating it

What we learned

Good matching depends on constraints (like expiry) more than on distance alone, and honest limits build more trust than big claims.

Limitations

This prototype does not certify food safety. Real deployment needs hygiene guidelines, verified NGO partners and temperature checks. The demo uses sample data and simulated vehicle movement, with a Real GPS mode in the architecture.

What's next

  • Pilot with a few hostel messes and verified NGOs in Rewa
  • WhatsApp and SMS bot for low-tech NGOs
  • Temperature sensors in food boxes
  • Integration with restaurant billing systems
  • Real-time backend with Firebase or Supabase

Built with: Next.js, React, TypeScript, Tailwind CSS, Three.js, React Three Fiber, Framer Motion, Google Maps API, MapLibre, Recharts

Before submitting, edit the "How we built it" and "Limitations" sections to match what your website actually does. If you want, I can shorten this for a Devpost field, add a tagline, or write the "Built with" tags.

Built With

Share this project:

Updates

Submission history