Logo Lanfrica

haithemnasr/AI-Powered-Ramadan-Food-Optimizer

Domain:

natural language processing

Record type:

software
Creator:
hai
Host:
AI assistant that helps Tunisian families reduce food waste during Ramadan πŸŒ™ β€” input your leftovers, get authentic recipes in Tunisian Darja, track your environmental impact. Built with FastAPI + Google Gemini + PWA. # πŸŒ™ B9atlek (Ψ¨Ω‚Ψ§ΨͺΩ„Ωƒ) β€” AI-Powered Ramadan Food Optimizer > **"Ψ¨Ω‚Ψ§ΨͺΩ„ΩƒΨŸ"** β€” *"What do you have left?"* β€” A question asked every night in Tunisian kitchens, now the starting point of a smarter, greener Ramadan. B9atlek is a Progressive Web App (PWA) that uses AI to help Tunisian families reduce food waste during Ramadan. You input what you cooked today and what leftovers you have β€” the AI responds in **Tunisian Darja** with authentic recipes, storage tips, and a real-time estimate of food and money saved. --- ## ✨ Key Features - πŸ€– **AI Recipe Suggestions** β€” Powered by Google Gemini 2.5 Flash, responding entirely in Tunisian dialect - 🎀 **Voice Input** β€” Speak your leftovers in Arabic/Tunisian (ar-TN) via the Web Speech API - πŸ“… **Ramadan Calendar** β€” Interactive 30-day Islamic calendar with decade info (Mercy / Forgiveness / Liberation), powered by the AlAdhan API - πŸ“Š **Impact Dashboard** β€” Real-time stats: kg of food saved, COβ‚‚ avoided, and Tunisian dinars recovered - πŸ“± **PWA** β€” Installable on any phone like a native app, with partial offline support - 🎨 **Immersive Ramadan UI** β€” Shooting stars, lanterns, glassmorphism, gold/night palette, full RTL layout --- ## πŸ“ Project Structure ``` AI-Powered-Ramadan-Food-Optimizer/ β”‚ β”œβ”€β”€ backend/ # FastAPI server + Gemini AI integration β”‚ β”œβ”€β”€ main.py # API routes (/, /optimize, /health) β”‚ β”œβ”€β”€ ai.py # Google Gemini prompt engineering β”‚ β”œβ”€β”€ requirements.txt # Python dependencies β”‚ β”œβ”€β”€ .env.example # API key template β”‚ └── README.md # Backend setup guide β”‚ β”œβ”€β”€ frontend/ # Vanilla HTML/CSS/JS client β”‚ β”œβ”€β”€ index.html # Main app page β”‚ β”œβ”€β”€ style.css # Ramadan-themed design system β”‚ β”œβ”€β”€ script.js # Voice input, calendar, stats logic β”‚ β”œβ”€β”€ manifest.json # PWA configuration β”‚ β”œβ”€β”€ sw.js # Service worker (offline caching) β”‚ β”œβ”€β”€ icon-192.png # PWA icon (1 …