Inspiration
Inspiration
Every night, perfectly edible food is thrown away while millions go hungry.
π 1.3 billion tons of food wasted annually π 828 million people still facing hunger
The problem isnβt production β itβs coordination.
NextPlate was inspired by a simple but powerful question:
What if surplus food could move as fast as information?
We wanted to build a system where:
Restaurants donβt waste food NGOs donβt struggle to find it People can actively contribute to impact π¬ The Story (Real-World Flow)
Itβs 7 PM on a Tuesday.
A restaurant has 30 extra meals.
They open NextPlate Click a photo πΈ AI fills details automatically Listing goes live in 40 seconds
Nearby NGO gets notified β accepts pickup Volunteer arrives β scans QR β AI verifies
β 30 meals rescued β ~12kg COβ saved β 30 people fed
Zero waste. Real impact. Instantly.
π§ What I Learned
Building NextPlate wasnβt just coding β it was solving a real-world system problem.
π Technical Learnings Designing multi-role systems (Restaurant, NGO, User, Admin) Building real-time systems with Socket.IO Integrating AI pipelines with fallback strategies Handling rate limits + retries (429 handling) Implementing geo-based queries with MongoDB Creating scalable REST APIs (60+ endpoints) π€ AI Learnings Multi-key architecture for parallel AI workloads Vision AI (photo β structured data) AI fallback chain: Primary Model β Lite Model β Deterministic Output Primary ModelβLite ModelβDeterministic Output Designing AI that is useful even when it fails ποΈ How I Built It π₯οΈ System Architecture Frontend (Next.js 16 + React 19) β Backend (Node.js + Express) β MongoDB + Gemini AI + Firebase π§ Key Components β‘ Frontend: Next.js + Tailwind + Framer Motion π Backend: Express.js (20 routes, 18 controllers) π§ AI Engine: Gemini 2.0 (11 features) π Database: MongoDB Atlas (Geo queries) π Realtime: Socket.IO + Firebase FCM π³ Payments: Razorpay π© Communication: SendGrid + Twilio π€ AI Engine (Core Innovation)
NextPlate runs on a multi-key AI architecture:
π Chat Key β Conversations π Analytics Key β Predictions π Vision Key β Image Processing βοΈ Smart Retry + Fallback
If AI fails:
Retry Delay
2 π seconds ( 2 π , 4 π , 8 π ) Retry Delay=2 n seconds(2s,4s,8s)
Then fallback:
Flash β Lite Lite β Deterministic logic
This ensures 100% system reliability
πΏ Impact Calculation (Carbon Saving)
We implemented WRAP methodology:
COβe Saved
Food Weight (kg) Γ Carbon Factor COβe Saved=Food Weight (kg)ΓCarbon Factor
Example:
30 meals β 12 kg COβ saved 30 mealsβ12 kg COβ saved
Also tracked:
π§ Water saved (~1000L per kg food) π½ Meals rescued π Community impact β‘ Key Features Built πΈ Stitch Vision β Photo β auto listing π§ AI Rescue Engine β NGO decision making π Surplus Marketplace β Discounted food π» Ghost Meals β Sponsor food for others π Impact Dashboard β Carbon + meals tracking π QR Verification β Secure pickup πΊοΈ Live Map β Real-time food availability π οΈ CLI Tool β Monitor global food grid βοΈ Challenges Faced
- π₯ AI Rate Limits (429 Errors) Solved with: Exponential backoff Multi-key distribution Model fallback
- π§ Making AI Reliable
AI can fail β but products cannot.
Solution:
Built deterministic fallbacks Ensured graceful degradation
- π Real-Time Coordination
Handling:
Live orders Notifications NGO pickups
Solution:
Socket.IO event system City-based subscriptions
- π Supply-Demand Matching
Problem:
NGOs nearby couldnβt see food
Solution:
Geo-indexing (MongoDB) Live map + push notifications π What Makes NextPlate Unique β‘ 40-second food listing π€ 11 AI-powered features π Real-time redistribution network π Measurable environmental impact π Trust layer with AI verification π» Community-powered food sponsorship π§ Future Vision π± React Native mobile app β Blockchain transparency for donations π Government food safety API integration π ML-based demand prediction π Global expansion of food grid π Final Thought
NextPlate is not just an app.
Itβs a living network where:
Restaurants reduce waste NGOs get resources instantly People contribute to real impact
Every meal rescued is a life impacted.
β€οΈ Built With Purpose
NextPlate β Turning Surplus into Hope.
What it does
How we built it
Challenges we ran into
Accomplishments that we're proud of
What we learned
What's next for nextplate
Built With
- es
- firebase
- fr
- scalable

Log in or sign up for Devpost to join the conversation.