NutriTrace
Self-hosted personal nutrition tracker — single Docker container, AGPL-3.0, no telemetry, no cloud sync.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Overview
NutriTrace is part of the TraceApps family of self-hosted apps. The family has four apps in total; the other three are CookTrace (recipes), LiftTrace (workout logging) and NoteTrace (notes). NutriTrace runs as a single Docker container on your own server or NAS. In the browser it is a Svelte-based PWA, and on mobile there is a native Android app. It has no cloud tenancy, no telemetry and no analytics, and users don't need to sign up for any account on a service operated by NutriTrace. All third-party integrations must be turned on manually and are configured separately per user or per instance.
The official positioning is this: if you have used MyFitnessPal, Cronometer, MacroFactor or Lose It and want that kind of functionality on your own NAS, NutriTrace is built for you.
Key Features
- Food diary: Meals are customizable; the defaults are breakfast, lunch, dinner and snacks. The diary also supports daily notes, water tracking, body measurements, an Activity section for logging exercise manually, and an intermittent fasting (IF) widget with preset plans. When you add a food, nutrition values preview live as you change the portion size. Whole meals can be copied or moved to other meals and other days. A logged recipe can be broken into individual ingredient entries with the Split Recipe feature.
- Library of foods, meals and recipes: Entries support photos, barcodes and favorites. You can filter by source (local / Open Food Facts / USDA / Mealie / shared by others), search with fuzzy matching, and unit conversion takes mass into account.
- Barcode and nutrition label scanning: Scan a barcode or a nutrition facts label to add foods quickly.
- Three calorie target modes:
- Fixed: set a fixed target manually;
- Dynamic: uses the previous day's expenditure measured by a wearable as the baseline, adjusted for weight loss (−20%), maintenance or weight gain (+20%);
- Adaptive: learns your TDEE from the last 35 days of intake and weight data, using 1 kg ≈ 7,700 kcal. It needs at least 21 days of data and shows a confidence level. The algorithm code is open source, so you can inspect it yourself.
- Health dashboard (Wellness): Syncs sleep, HRV, resting heart rate, steps, blood oxygen and workout data from Fitbit (via Google Health), Withings, Garmin and Android Health Connect, and calculates sleep, Readiness and Resilience scores.
- Statistics charts: View trends for nutrients, body measurements, exercise, health metrics and fasting. Charts can show goal lines, moving averages and trend lines.
- Trace AI assistant: Uses tool calling to read your diary, health data and goals before answering, rather than making things up. It supports Claude, OpenAI, Gemini, and any OpenAI-compatible service, such as Ollama, LM Studio, LocalAI, vLLM, DeepSeek, Groq and OpenRouter.
- Multi-user and SSO: Supports local users, invitations and role management, as well as OIDC single sign-on. Official configuration examples are provided for Authentik, Keycloak, Pocket-ID, Authelia, Google Workspace and Auth0. Foods and meals can optionally be shared with other users.
- Federation API and MCP: Provides an
/api/v1interface authenticated with scoped Bearer Tokens. LiftTrace uses this interface to push calories burned during workouts to NutriTrace. NutriTrace also supports the Model Context Protocol (MCP).
Target Users and Use Cases
- Privacy-conscious users who want to keep their diet and health data on their own hardware;
- Users who already run a home server or NAS and enjoy self-hosting;
- Users of MyFitnessPal, Lose It, Cronometer or Waistline who want to switch to a free, ad-free option. An official migration guide is provided;
- Users who want to manage fat loss, muscle gain or weight maintenance with the help of wearable data.
Core Strengths
- Free forever when self-hosted: The server, PWA and source code are all free, under the AGPL-3.0 license;
- No telemetry, no ads, no subscriptions;
- Simple, controllable data: Your data is just a SQLite file plus an uploads directory, so you can back up and restore it with
cp; - Inspectable algorithms: The adaptive TDEE implementation is fully open source;
- Health data as a first-class citizen: Wearable data directly affects the Dynamic calorie target;
- Works with other TraceApps apps: For example, it interoperates with CookTrace and LiftTrace.
Deployment
The officially recommended deployment method is Docker Compose, and all TraceApps apps share the same installation documentation. On first launch, a setup wizard calculates your initial calorie target using the Mifflin-St Jeor equation. The documentation also covers the following setups:
- Reverse proxy configuration, and LAN HTTPS / plain HTTP access (
INSECURE_COOKIES); - Remote access through Cloudflare Tunnel or Tailscale;
- Docker Secrets (
*_FILEenvironment variables); - Three layers of backup: data volume copies, full in-app backup ZIPs, and portable JSON exports, with scheduled automatic backups supported;
- Email via SMTP, and push notifications via Apprise, Gotify and ntfy.
Worth Noting
- The official comparison is candid: NutriTrace has none of MyFitnessPal's social features, nor its food database of user uploads built up over many years. Food data mainly comes from your own entries, plus live lookups against Open Food Facts and USDA.
- The Dynamic target mode requires a wearable that reports calories burned.
- The AI features require you to configure an API for a cloud model yourself, or connect a local LLM.
Discover more
KitchenOwl
Cross-platform shopping list, recipe storage, expense tracker, and meal planner following the material design language.
What To Cook?
Get a recipe to cook today, based on the ingredients you have at home.
Bar Assistant
Manage your home bar while adding your ingredients, searching for cocktails and creating custom cocktail recipes.
Fork Recipes
Manage your food recipes with simplicity.
ManageMeals
Manage recipes, import recipes by URL and organize them without any ads or unnecessary text.
RecipeSage
A recipe keeper, meal plan organizer, and shopping list manager that can import recipes directly from any URL.