pkirilin/food-diary
Tentang
An open-source web app for nutrition and weight tracking
Pengembangan web dan aplikasiYang dapat Anda lakukan
- 🥗 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
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- +1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliFood Diary
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:
- Get a server and a domain.
- Set up Google sign-in.
- Download
compose.ymland.env.example, copy.env.exampleto.envand fill it in. - Run
docker compose up -dand openhttps://<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
|
|
|
|
|
|
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.
Jelajahi proyek terkait
Memuat…