calories Svelte Themes

Calories

A simple nutrition tracking app.

Calories

A simple nutrition tracking app.

Features

  • Meal Logging - Snap a photo or describe your meal to log calories and macros
  • Personalized Goals - Set calorie and macro targets based on your body and goals
  • Progress Tracking - Track calories, protein, carbs, and fat with visual progress rings
  • Weight Tracking - Monitor your weight trend over time

Tech Stack

Getting Started

Prerequisites

  • Bun
  • A PostgreSQL database
  • S3 bucket
  • OpenRouter API key

Installation

# Clone the repository
git clone https://github.com/joeychilson/calories.git
cd calories

# Install dependencies
npm install

# Copy environment variables
cp .env.example .env

# Set up your database
npm run db:push

# Start the development server
npm run dev

Environment Variables

See .env.example for required environment variables.

Benchmark Results

Tested on the Nutrition5k dataset (Google Research) with 500 food images.

Metric Result
Calories MAPE 43.9%
Calories MAE 102 cal
Success Rate 100%
Model Gemini 2.5 Flash

Limitations

  • Accuracy decreases for very small (<50 cal) and very large (>500 cal) portions
  • Hidden ingredients (oils, dressings, sauces) remain difficult to estimate
  • Performance may vary across different food cultures and presentation styles

License

MIT

Top categories

Loading Svelte Themes