Inspiration
Food insecurity isn’t caused by a lack of generosity, it’s caused by a lack of coordination. Food banks often receive large volumes of donations, yet critical items still run out. Donors don’t know what’s urgently needed. Administrators don’t know what’s coming in. And people in need don’t always know where to go.
We wanted to solve food insecurity as a logistics problem, not just a donation problem.
That’s how FoodBridge was born.
What it does
FoodBridge is a real-time food distribution coordination platform that connects food banks, donors, and people in need.
It provides:
- Live Inventory Tracking – Items are automatically categorized as Stable, Low, or Critical based on dynamic threshold logic.
- Urgency Alerts – When an item is marked urgent, the system triggers automated email notifications to ensure immediate action.
- Donor Pledges – Donors can pledge items directly from the dashboard, reducing guesswork.
- Admin Analytics Dashboard – Administrators can monitor inventory trends and supply volatility in real time.
- “Need Food?” Locator – Individuals can find their nearest food hamper using built-in location matching logic.
Instead of reacting to shortages, FoodBridge predicts and surfaces them before they escalate.
How we built it
FoodBridge is built using a modern, event-driven full-stack architecture:
- Frontend: React + TypeScript
- Styling: Tailwind CSS
- Backend & Database: Supabase (PostgreSQL with real-time subscriptions)
- Deployment-ready: Vercel-compatible
Real-Time Synchronization
We leveraged Supabase’s real-time database subscriptions to create a reactive UI. When inventory values change, the frontend automatically updates without refresh.
Status logic is dynamically calculated using threshold comparisons:
$$\text{Item Status} = Critical (if stock \le minimum) $$ $$\text{Item Status} = Low (if stock \le minimum + buffer) $$ $$\text{Item Status} = Stable (otherwise) $$
Automated Email Alerts
When an item’s urgent flag is triggered in the admin portal, a backend listener detects the database change and triggers an automated email notification. Urgency is not just visual, it initiates action.
Location Matching Logic
The “Need Food?” feature uses stored hamper location data and proximity logic to match users with their nearest distribution center based on input location data.
Relational Structure
We designed normalized tables linking:
- Inventory items
- Donation pledges
- Status flags
- Administrative controls
This allowed clean synchronization between donor actions and stock updates.
Challenges we ran into
1️⃣ Real-Time State Consistency
Managing live updates between donor and admin dashboards required careful state handling to avoid inconsistent UI changes.
2️⃣ Email Trigger Reliability
Ensuring alerts were sent only when urgency changed and not on every update required backend logic.
3️⃣ Data Modeling
Designing relational tables that linked pledges to inventory while preserving scalability required multiple revisions.
Accomplishments that we're proud of
- Fully functional real-time synchronization across multiple dashboards
- Automated urgency email alerts
- Integrated analytics inside the admin portal
- A working location-based food assistance feature
- Clean, polished UI built within 48 hours
- Production-ready architecture that can scale
Most importantly, we built a system that doesn’t just display data, it also reacts to it.
What we learned
- Real-time systems require disciplined state management.
- Backend event listeners are powerful but must be controlled carefully.
- Solving social problems requires systems thinking, not just interfaces.
- Clear UX design matters as much as backend complexity.
- Scalability must be considered from day one.
We also learned that food insecurity is fundamentally a coordination problem and coordination can be engineered.
What's next for FoodBridge
FoodBridge is designed to scale.
Next steps include:
- Multi-location food bank network integration
- Cross-center surplus redistribution alerts
- Predictive shortage forecasting using historical analytics
- SMS notifications for faster response
- Role-based authentication and access control
- City-wide dashboard aggregation
Our long-term vision is to transform fragmented food banks into a synchronized, data-driven distribution ecosystem.
Food insecurity is a logistics challenge.
FoodBridge turns it into a solvable systems problem.
Built With
- css
- git
- github
- postgresql
- react
- supabase
- tailwind
- typescript
- vercel
- vite
Log in or sign up for Devpost to join the conversation.