A free, open-source calorie tracking application powered by AI. Track your daily nutrition with advanced food analysis - no account needed!
- AI-Powered Text Analysis: Get instant nutritional information for any food or meal using OpenAI's advanced language models
- Image Analysis: Upload food photos for automatic analysis and nutritional breakdown
- Weight Tracking: Monitor your weight progress with an interactive chart and set target weight goals
- Enhanced Model Selection: Choose from GPT-4o-mini (recommended), GPT-4o, GPT-3.5 Turbo, GPT-4, or use your own custom model
- Customizable Analysis Prompts: Tailor the text and image analysis prompts to improve results for your specific needs
- Chronological Meal Display: View your meals in chronological order with newest entries at the top
- No Account Required: Start tracking immediately - no sign-up, no hassle
- Daily Summaries: View your daily calorie and nutrition totals
- Favorites System: Save your frequently eaten meals for quick access
- Data Portability: Export and import your nutrition data for backup or transfer between devices
- Debug Mode: View token usage and detailed analysis information for technical users
- PWA Support: Install as a mobile app on any device
- Offline Capable: Continue using the app even without internet
- Dark Theme: Easy on the eyes with a modern dark interface
- Local Storage: All data stored locally on your device for privacy
- Detailed About Page: Learn how the app works and get tips for best results
- Node.js 18+
- An OpenAI API key (Get one here)
- Clone the repository:
git clone https://github.com/tahaygun/ai-calorie-tracker.git
cd ai-calorie-tracker- Install dependencies:
npm install- Start the development server:
npm run dev- Open http://localhost:3000 in your browser
npm run build
npm start- Next.js 14: React framework for production
- TypeScript: Type-safe code
- Tailwind CSS: Utility-first CSS framework
- OpenAI API: AI-powered food analysis with model selection
- next-pwa: Progressive Web App support
- Local Storage: Client-side data persistence
- Installable on mobile devices
- Offline support
- Push notifications (coming soon)
- Background sync (coming soon)
The app supports multiple OpenAI models:
- GPT-5.6 Terra: Recommended balance of nutritional-analysis quality and cost
- GPT-5.6 Luna: Lower-cost option for frequent meal logging
- GPT-5.6 Sol: Highest-quality option for difficult meal descriptions and images
- GPT-5.5 and GPT-5.4: Previous-generation options for existing preferences
- Custom Models: Use your own fine-tuned models or other OpenAI models
You can change models in the Settings page, accessible from the main navigation.
The app now supports customizable analysis prompts:
- Text Analysis Prompt: Customize how the AI interprets your text descriptions
- Image Analysis Prompt: Tailor the AI's approach to analyzing food images
- Prompt Export/Import: Your custom prompts are included in data export/import
- Default Restoration: Easily reset to the app's optimized default prompts
Customize these in the Settings page under "AI Customization".
The app now supports food image analysis:
- Click the camera icon in the meal input form
- Upload a photo of your food
- The AI will analyze the image and identify food items
- Review and adjust the nutritional information as needed
- Add the meal to your daily log
Tips for best image analysis results:
- Ensure good lighting and clear visibility of all food items
- Take photos from above to show all items on the plate
- For packaged foods, consider including the nutrition label in the image
- Images are compressed automatically for faster upload and processing
Track your weight progress with the built-in weight tracker:
- Visual Progress: See your weight journey with an interactive chart
- Target Weight: Set and visualize target weight goals
- Detailed History: View and manage all your weight entries
- Date Selection: Record weights for specific dates
- Add Notes: Include optional notes with each weight entry
- Data Integration: Weight data is stored locally and exportable with your other app data
Access the weight tracker from the navigation menu and start monitoring your progress alongside your nutrition intake.
The app now features data import and export capabilities:
- Export Data: Back up all your meal data, favorites, and settings
- Import Data: Restore your data on a new device or after clearing your browser
- Privacy-Focused: All data transfers happen locally with no server involvement
Access these features from the Settings page under "Data Management".
For technical users or troubleshooting:
- Token Usage Tracking: View prompt and completion tokens used for API calls
- Detailed Response Information: See how the AI interpreted your food descriptions
- Performance Optimization: Useful for minimizing API costs or identifying issues
Enable Debug Mode in the Settings page.
Contributions are welcome! Feel free to:
- Fork the repository
- Create a new branch (
git checkout -b feature/improvement) - Make your changes
- Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature/improvement) - Create a Pull Request
This project is available under a dual-license model:
-
GNU GPL v3 License - For non-commercial use:
- Free to use, modify, and distribute
- Any modifications must be open-sourced
- Perfect for personal use, educational purposes, and open-source projects
-
Commercial License - For business use:
- Allows commercial use and integration
- Keep modifications private
- Priority support and updates
- Contact @tahaygun for commercial licensing
For more details, see the LICENSE file.
[Coming Soon]
Made with ❤️ by @tahaygun