Food rescue and waste operations

Smart Food Redistribution System

Run donor intake, food inspection, logistics, NGO claims, compost conversion, and product tracking from one operational workspace backed by the Express and MySQL API in this project.

Total food items
--
All donation records in inventory
Good food
--
Claim-ready after inspection
Bad food
--
Diverted to compost or reuse
Pending
--
Waiting for inspection outcome
NGOs served
--
Unique organizations with claims
Good quantity
--
Available quantity across good inventory

Operational flow

Donations enter as inventory, move through inspection, then branch into NGO claims if good or compost if bad.

1. Intake

Register donors, waivers, and new food items with expiry and quantity details.

2. Verify

Inspectors score food quality, which updates condition automatically.

3. Route

Claim good food for NGOs and convert bad food into compost batches.

Working notes

Good food can be claimed only once. Bad food creates or links to compost batches. Trips can be linked directly to food records. Upcycled products stay attached to their compost source batch.

Add donor

Capture the food source first so inventory and waivers can reference it.

Create waiver

Use waivers to track legal consent from donors before pickup or allocation.

Donor directory

ID Name Type Pincode Actions

Waiver log

ID Signed date Donor

Add food inventory

New donations enter as Pending until inspection or a status update is applied.

Status controls

Use the quick actions in the table to adjust condition directly, or submit an inspection report.

Good

Claimable by NGOs while quantity is still above zero.

Pending

Awaiting inspection or manual review.

Bad

Automatically eligible for compost batch creation.

Inventory register

ID Food Donor Category Quantity Expiry Status Actions

Add inspector

Inspectors are volunteers with certification metadata.

Record inspection

Scores of 7 or more become Good, below 5 become Bad, and 5 to 6 stay Pending.

Inspector roster

ID Name License Certification

Inspection reports

Date Inspector Food Score Status Notes

Add driver

Drivers are saved as volunteers and linked to trip records.

Create trip

Link a trip to a driver and optionally attach the specific food item being moved.

Driver roster

ID Name License Vehicle type

Trip log

ID Start time Vehicle Driver Food Distance

Register NGO

Beneficiary NGOs can claim only good-condition food with available quantity.

Create claim

The backend uses transaction checks to prevent double-claims and zero-quantity claims.

NGO network

ID Name Capacity Type

Claims

Date NGO Food Quantity Status

Create compost batch

Bad food normally creates a batch automatically, but you can also add one manually here.

Compost overview

Batches stay linked to the exact source food item so waste diversion remains traceable.

One food item can belong to only one compost batch. Upcycled products are created from these batches.

Compost batches

Batch ID Food source Process type Start date Quantity

Add upcycled product

Track saleable or reusable output generated from compost batches.

Reuse loop

This section closes the operational loop by turning non-distributable food into useful inventory.

Traceability

Every product links back to one compost batch and one food source.

Inventory

Use price and stock to manage resale or internal distribution planning.

Upcycled products

ID Name Source food Process Price Stock