RescuePlate is a real-time network that moves surplus food from kitchens to NGOs before it expires. I built it for Hack the Vibe 2026 (CODE-ARENAX) on the World Problem Solver track, with advanced challenges A01 (real-time data synchronization) and A05 (concurrency and transaction management). Live demo: rescueplate.imrann.my.id. Source: github.com/mr-Imran/rescueplate.
The problem
Every night in Dhaka, restaurants, wedding and community centres, university hall canteens and bakeries are left with good cooked food that is safe for only a few hours. Shelters, orphanages and community kitchens hear about it through scattered phone calls and Facebook or WhatsApp messages — usually too late — so it is thrown away.
The UNEP Food Waste Index Report 2024 estimates that households in Bangladesh waste about 82 kg of food per person per year (14.10 million tonnes in total), and that 19% of food available to consumers worldwide was wasted in 2022. Who has the problem: food donors (kitchens with surplus), NGOs (who need it and have limited capacity), and volunteers (who move it).
What RescuePlate does
- A donor posts surplus food with a quantity and a food-safety deadline (“safe until”).
- NGOs see it instantly on a live feed and claim all or part of it. Claims are capped by each NGO’s daily capacity so food is shared fairly.
- A volunteer accepts the pickup, collects the food using the donor’s 6-digit handover code, and delivers it.
- Time rules run by themselves: a claim with no volunteer after 30 minutes is released back to the feed, and food past its deadline can no longer be claimed or collected.
- An impact dashboard shows meals rescued, food and emissions saved, rescue rate and top contributors.
Unlike consumer discount apps and Bangladesh WhatsApp/phone food banks, RescuePlate is donor→NGO→volunteer with executable rules: capacity caps, race-safe claims, live sync, and a unique R9 travel-safety gate that refuses a claim when the food would expire on the road before a volunteer could deliver it.
Try it
Sign-in → Try it as… gives one-click demo accounts for every role. Open two browser windows with different personas to see live updates. Admin also gets a Demo console (/demo) with one button per judging scenario: race for the last meals, the same request sent six times, mid-transaction failure with full rollback, two simultaneous edits, drop the live connection, fast-forward the clock, ledger check, and reset demo data.
The hard parts that had to be provable
| Differentiator | Rubric |
|---|---|
| Concurrent claims cannot oversell (row locks + ledger + idempotency) | A05 Concurrency |
| Mid-transaction failure rolls back meals, claim row, and idempotency key | A05 / Demo console |
| Live feed via PostgreSQL NOTIFY in-transaction; claim payloads only to parties | A01 Realtime |
| Versioned edits + three-way merge conflict dialog (no silent overwrite) | A01 Realtime |
| Safe-until + 30-minute release + R9 route gate (18 km/h Dhaka model) | M04 Complex rules |
Stack
Browser: React + Vite + Tailwind. API: Express 5 with zod validation, pure domain rules and state machines, one transaction per service operation, PostgreSQL with LISTEN/NOTIFY into a Socket.IO bus, and a sweeper job for expiry and claim release. Deploy as one container plus PostgreSQL (Coolify for the live demo; Docker Compose, Railway, and Render configs ship in the repo).
npm install
npm run dev # PostgreSQL + API + web app
npm test # 166 tests against real PostgreSQL
Who this is for
If you care about food rescue that can survive two NGOs claiming the last meals at once — or you want a worked example of transactional realtime without Redis — try the demo personas and the admin console. The test suite and demo console exist so every claim in the README can be checked.
I maintain the project at github.com/mr-Imran/rescueplate. Live app: rescueplate.imrann.my.id.
Frequently asked questions
What is RescuePlate?
RescuePlate is a real-time web app by Mohammad Nizam Uddin Imran that moves surplus cooked food from kitchens to NGOs via volunteers before it expires. It was built for Hack the Vibe 2026 on the World Problem Solver track, with advanced challenges in realtime sync and concurrency.
Where can I try it?
The live demo is at https://rescueplate.imrann.my.id. On the sign-in page, Try it as… gives one-click demo accounts for donor, NGO, volunteer, and admin personas.
What makes claims race-safe?
Claim creation runs in one database transaction with row locks (SELECT … FOR UPDATE), idempotency keys, a non-negative remaining_meals check, and ordered locking to avoid deadlocks. Competing NGOs queue on the listing lock so meals cannot be oversold.
What is the R9 travel-safety gate?
R9 refuses a claim when haversine distance plus a Dhaka travel model (18 km/h plus handoff) means the food would expire on the road before delivery — preferring to lose the meal rather than move unsafe food.
How do I run it locally?
Need Node.js 22.9 or newer. Clone the repo, run npm install and npm run dev — a real PostgreSQL is bundled for development and tests. npm test runs 166 tests against that database.