Skip to content
Projets

À propos

An open-source web app for nutrition and weight tracking

Développement web et applicatif

Comment ces chiffres sont mesurés

What you can do

  • 🥗 Nutrition tracking: calories, protein, fats, carbs, sugar, and salt
  • 🗂️ Personal food database with nutrition values for each product
  • ⚖️ Weight tracking
  • 📱 PWA and multi-device support

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Food Diary

food-diary Docker Hub

Food Diary is a free, open-source web app for nutrition and weight tracking. It was created in 2018 to help its author deal with health problems caused by being overweight.

Why use it:

  • Instant daily totals. Log what you eat and immediately see your calories, protein, fats, carbs, sugar and salt for the day. Paper can't do that.
  • Your data stays yours. It runs on your own server. No subscription, no ads, no account with anyone else.
  • Only the essentials. Food logs, your own product list and weight tracking, plus AI that fills in nutrition values from a photo and MCP access for Claude or any other MCP client.

You run your own copy. There is no hosted version to sign up for. You need a server or container platform that runs Docker, a Google account to sign in with, and a domain with HTTPS to use it anywhere other than the machine it runs on.

What it doesn't do:

  • No barcode scanning
  • No shared database of foods — you add the products you eat yourself
  • No calorie or macro goals
  • No exercise or activity tracking
  • No syncing with fitness trackers
  • One person per install; no social or sharing features
  • No app-store app — install it from the browser as a PWA

Quick start

Try the demo — it runs in your browser against sample data, with no server behind it. Features that need a server, like AI photo recognition, are turned off.

To run your own copy:

  1. Get a server and a domain.
  2. Set up Google sign-in.
  3. Download compose.yml and .env.example, copy .env.example to .env and fill it in.
  4. Run docker compose up -d and open https://<your-domain>.

Features

  • 🥗 Nutrition tracking: calories, protein, fats, carbs, sugar, and salt
  • 🗂️ Personal food database with nutrition values for each product
  • ⚖️ Weight tracking
  • 📱 PWA and multi-device support
  • 📸 AI-powered food recognition from photos
  • 🤖 Read-only access for LLMs through an MCP connector
Food Diary app mobile screen showing daily nutrition tracking interface with meal entries and nutrition summary Food Diary app mobile screen showing product form with AI suggestions from uploaded image Food Diary app mobile screen showing weight tracking interface with chart and weight logs
Food Diary app desktop screen showing daily nutrition tracking interface with meal entries and nutrition summary

MCP server

Food Diary has a built-in remote MCP server, protected by OAuth. Access is read-only and off by default.

Connect Claude, or any other compatible MCP client, and ask it about the data you've logged. For example:

  • "How has my protein intake changed over the last month?"
  • "What patterns in my diet could I improve?"
  • "Plan my meals for next week based on what I usually eat."

For more details, see the MCP server setup guide.

Self-hosting

The deployment guide covers running Food Diary on a VPS with Docker Compose or on a container platform, the full configuration reference, updating, and backups.

Browser support

The app runs in these browsers and later:

Browser Minimum version
Chrome 117
Edge 121
Firefox 121
Safari (macOS) 17.0
Safari (iOS) / iPadOS 17.0

These are the floors of MUI v9, the component library the frontend is built on.

Contributing

See CONTRIBUTING.md for development setup, the release process, and where to ask questions.

License

The project is licensed under the AGPLv3. See the LICENSE file for more information.

Credits: the favicon is Twemoji 1f96c, © 2020 Twitter, Inc and other contributors, licensed under CC-BY 4.0.

Explorer des projets similaires

Chargement…