Back to services

MacroTrackr

Privacy-respecting macro tracking: use the managed app or self-host the AGPLv3 stack.

View alternatives to MacroTrackr
Suggest edit
Open source
Self-hostable
AGPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

MacroTrackr is an open-source macronutrient (macro) and calorie tracker. Its official tagline is "Know what you ate. Without the admin.", meaning you can know what you ate without the hassle. It focuses on fast logging and a clear interface: log the protein, carbs, and fat in each meal, set your targets, and review your eating trends over the week. It offers an official hosted version, and you can also run it on your own server and keep control of your data.

Key Features

  • Macro tracking: Log protein, carbs, and fat, with calories calculated automatically.
  • Food search: Search a food database and import the nutrition data for each serving directly.
  • Goal setting: Set a target weight and get the daily calories you need automatically.
  • Custom macro ratios: Set your own split of protein, carbs, and fat.
  • Weight and habit logging: Record your weight and daily habits, with streak counts for consecutive days.
  • Progress insights: View averages, trends, and the number of logged days over any time period.
  • Saved meals: Save the meals you eat often and log them in one click later.
  • Free calculators: TDEE, BMR, macro, weight loss, and protein requirement calculators.
  • Data migration and export: Import your history from other tools. The Pro plan supports CSV export, and you can delete your data at any time.

Pricing

  • Free ($0, forever): Unlimited logging of meals, macros, and calories. Set macro goals and a weight goal, track weight changes, view progress for the last 7 days, and save up to 5 meals. No credit card required to sign up.
  • Pro ($3.99/month, save 37% with annual billing): 30-day and 90-day views and full history, trends and insights across all time periods, unlimited saved meals and habits, and CSV export at any time.
  • Self-hosted (free): Deploy the open-source version with Docker Compose. Your data stays on your own machine, sign-in is handled locally, and you can switch to a hosted plan later.

Who It's For

  • People who lift, build muscle, or cut fat and need precise control over their macros
  • Everyday users who want a simple, fast food tracker
  • Privacy-minded self-hosters and homelab users who want to keep their own diet data

Tech Stack

  • Backend: Bun + Elysia API, with SQLite as the database
  • Frontend: React + Vite
  • License: GNU AGPL v3.0

Self-Hosting

The repository ships with a Docker Compose configuration that uses the prebuilt images on Docker Hub and local authentication by default:

git clone https://github.com/arogan178/macrotrackr.git
cd macrotrackr
mkdir -p data
docker compose pull
docker compose up -d
  • The frontend is available at http://localhost:5173 by default. The backend API is not exposed directly; nginx in the frontend container proxies /api.
  • The backend runs as UID 1000, so the data/ directory must be writable by it. If needed, run sudo chown 1000:1000 data first.
  • The SQLite database is stored at ./data/macrotrackr.db.
  • In self-hosted mode, billing is disabled by default, analytics are also disabled by default, and there is no email functionality. If you forget your password, reset it by running bun run reset-password <email> on the server.
  • The repository provides one-click deployment templates for homelab platforms such as Unraid, CasaOS/ZimaOS, Umbrel, and Cosmos Cloud.

Notable Points

  • Open source under the AGPLv3 license, with the hosted and self-hosted versions running on the same core code.
  • The free plan has no cap on logging; only the longer history views require a Pro subscription.
  • Focused on data ownership: you can export or delete your data at any time.