A simple meal tracking app that helps you stay on top of your nutrition goals.
- Meal Logging: Log your meals with a simple description
- Macro Tracking: Automatically estimates protein, carbs, and fat content
- Daily Goals: Set and track daily calorie and protein goals
- Protein Preferences: Choose your preferred protein sources
- Smart Suggestions: Get meal suggestions based on:
- Remaining daily goals
- Time until your last meal
- Preferred protein sources
- History View: Review your past meals
- Clone the repository
- Install dependencies:
poetry install
- Create a
.envfile with your OpenAI API key:OPENAI_API_KEY=your_api_key_here - Run the app:
streamlit run app.py
- Enter a simple description of what you ate
- The app will estimate the macronutrients
- Review and confirm the estimates
- Save the meal to your log
- Set your daily calorie and protein goals
- Choose your preferred protein sources
- Set your last meal time of the day
- Click "Get Meal Suggestions" to see what to eat next
- Suggestions are based on:
- Your remaining daily goals
- Time until your last meal
- Your preferred protein sources
- See all your past meals
- Review your progress over time
- Repeat or delete past meals
The app stores your data in JSON files:
meals.json: Your meal historygoals.json: Your daily goalspreferences.json: Your preferences
Feel free to submit issues and enhancement requests!
This is a work in progress. Current focus areas:
- Adding macro estimation from meal descriptions
- Improving the UI/UX
- Adding more detailed progress tracking