How clouden56/projectkitchen works
Fridge Recipe Tracker is an interactive terminal app for managing food inventory, finding items nearing expiry, and generating safety-checked recipes intended to reduce food waste. Its main workflow collects recipe preferences, sends inventory and constraints to Gemini, evaluates the returned recipe against domain rules, saves the evaluation to history, and displays the result. The README documents additional inventory and history management capabilities. Relationships are based on the README and shown excerpts; internal data and AI details not shown in the excerpts are kept at subsystem level.
Main entry points: main.py Application coordinator · data_manager.py Inventory and history operations · ai_manager.py Recipe generation and validation · io_manager.py Prompts and displays
Components 9
Application Coordination
- Application coordinator
main.py
Terminal Experience
- Prompts and displays
src/io_manager.py
Recipe Intelligence
- Recipe generation and validation
src/ai_manager.py - Safety, matching, and waste scoring
src/logic_manager.py
Inventory and History
- Inventory and history operations
src/data_manager.py - Inventory JSON
data/inventory.json - Recipe history JSON
data/recipe_history.json
Other components
- Kitchen user
- Google Gemini API
Connections 11
- Kitchen user → Prompts and displays: enters preferences
src/io_manager.py - Application coordinator → Prompts and displays: requests and displays
main.py - Application coordinator → Inventory and history operations: loads and updates
main.py - Application coordinator → Recipe generation and validation: requests recipe
main.py - Recipe generation and validation → Google Gemini API: calls API
src/ai_manager.py - Application coordinator → Safety, matching, and waste scoring: evaluates recipe
main.py - Application coordinator → Inventory and history operations: saves evaluation
main.py - Inventory and history operations → Inventory JSON: reads and writes
README.md - Inventory and history operations → Recipe history JSON: reads and writes
README.md - Application coordinator → Inventory and history operations: queries expiring items
main.py - Application coordinator → Inventory and history operations: filters recipe history
main.py