pkirilin/food-diary
关于
An open-source web app for nutrition and weight tracking
网站与应用开发可以做什么
- 🥗 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
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Food 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.
探索相关项目
加载中…