An AI-Powered web application designed to simplify calorie counting! Built on Node.js, Enter what you ate and let AI do the rest!
- Simple food tracking with AI: Leverages the Gemini API to parse text into individual food entries. Gemini will use existing entries from the food database, or create new food entries with estimated nutritional data when no relavant database matches are found.
- Global food database: The app combines disparate data sources into a unified, user-editable food database. This database is public and grows with every new food you eat.
- Ground-truth sources: Integrates the Open Food Facts API to retrieve real calorie and nutritional data for easy adding into the food database.
- Day-by-day tracking: The app records total calories eaten every day. You can easily view how you accomplished your calorie goals on a daily and weekly basis.
It is recommended to host your database through MongoDB directly: https://www.mongodb.com/
Obtain a connection string (URL) to your database, and place it into your .env file
Create a .env file in the root directory and add the following:
APP_VERSION=1.0.0
MONGODB_URI=your_mongodb_connection_string
GEMINI_API_KEY=your_google_ai_api_keyhttps://github.com/openfoodfacts/openfoodfacts-js
(No API key required!)
https://ai.google.dev/gemini-api/docs/quickstart
Obtain an API key and enter it in your .env file as shown above
