Reduce household food waste by 40% with AI-powered tracking and smart recipe suggestions.
https://foodsaver-ai.vercel.app/
Every year, households waste 40% of purchased food, contributing to 8-10% of global greenhouse gas emissions. If food waste were a country, it would be the third-largest emitter of greenhouse gases globally
FoodSaver AI helps households reduce food waste through three intelligent features:
- ๐ฅ Smart Pantry Tracker: Track food items and receive alerts before they expire
- ๐ค AI Recipe Generator: Get personalized recipes using ingredients about to spoil
- ๐ Impact Dashboard: Visualize your environmental impact with real-time metrics
- Node.js (v14 or higher)
- npm or yarn
- OpenAI API key (for recipe generation)
# Clone the repository
git clone https://github.com/WhiiteRose/FoodSaver-AI.git
cd FoodSaver-AI
# Install dependencies
npm install
# Create .env file with your OpenAI API key
echo "VITE_OPENAI_API_KEY=your_api_key_here" > .env
# Start the development server
npm run devThe app will open at http://localhost:5173
# Build and run
docker compose up --build -d
# Open the app
http://localhost:8080
# Stop containers
docker compose downYou can also run without Compose:
docker build -t foodsaver-ai .
docker run --rm -p 8080:80 foodsaver-aiThis repository now includes:
- CI:
.github/workflows/ci.yml- Runs on
pushandpull_request - Installs dependencies and builds the app
- Runs on
- CD Vercel:
.github/workflows/deploy-vercel.yml- Preview deploys on Pull Requests
- Production deploy on the default branch (
mainormaster)
Add these repository secrets in GitHub (Settings > Secrets and variables > Actions):
VERCEL_TOKENVERCEL_ORG_IDVERCEL_PROJECT_ID
How to get IDs quickly:
npx vercel link
cat .vercel/project.jsonThen push to trigger deployment.
- React - Frontend framework
- Vanilla CSS - Styling with modern animations
- OpenAI API - AI-powered recipe generation
- Chart.js - Data visualization
- Local Storage - Client-side data persistence
If just 10,000 households reduce food waste by 30%, we could prevent:
- 1,500 tons of annual food waste
- Equivalent to removing 500 cars from the road for a year
- Conservation of thousands of gallons of water
- Add food items with expiration dates
- Categorize items (produce, dairy, meat, etc.)
- Get notifications for expiring items
- Quick-add common foods
- Generate recipes based on expiring ingredients
- Dietary preference support
- Save favorite recipes
- Share recipes with friends
- Track food saved (pounds)
- CO2 emissions prevented
- Water conserved
- Money saved
- Achievement badges and milestones
- Add Food Items: Click "Add Item" and enter your food details
- Get Alerts: Receive notifications when items are about to expire
- Generate Recipes: Click "Get Recipe" to create meals from expiring ingredients
- Track Impact: View your environmental contribution in the dashboard
This is a hackathon project, but contributions are welcome!
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License.
Created for Hack for Humanity 2026 Hackathon
- Hack for Humanity organizers
- OpenAI for their API
- The open-source community
Together, let's make a difference one meal at a time! ๐๐