NutriTrace: self-hosted nutrition and wellness tracker (AGPL, single Docker container)

4 months ago by TraceApps to c/selfhosted

EDIT 2026-05-03: v1.0.0-rc.14 is out and adds a native Android app.

Full announcement: https://lemmy.world/post/46382994

(original post below)


Hey all, sharing what I've been working on. NutriTrace is a self-hosted nutrition and wellness tracker that runs entirely on your own server in a single Docker container.

I built it because every commercial nutrition app has the same shape. You hand them years of food data, body measurements, and biometrics, and your data is held hostage when they pivot or paywall. I wanted to track macros and pull in my Fitbit data without participating in that.

Daily food diary with multi-ingredient meals, recipes, body stats, water tracking, day-level notes. Personal food database, barcode scanner, imports from Open Food Facts and USDA, plus optional Mealie integration. Statistics with trend charts, full backup, exports as CSV / JSON / full ZIP.

Optional wellness device sync from Fitbit, Withings, Garmin, and Android Health Connect. Sleep / readiness / stress scores computed from your data.

Optional AI assistant where you bring your own Claude / OpenAI / Gemini key. It queries your real data via tool use so it can answer things like "what was my average protein this month" without making numbers up. There's a voice food logger too. Both fully optional, off by default.

Tech: Svelte 4 + Express + better-sqlite3, multi-stage Dockerfile, AGPL-3.0. Native Android app is in active development; PWA installs to home screen on any modern browser today.

Repo and docker-compose example: https://github.com/TraceApps/nutritrace

Happy to answer questions.

load all comments
ProfessorScience 4 points 4 months ago

Is the docker image public? I'm getting an "unauthorized" error when attempting to pull it. I'm not getting that error for other ghcr.io images. But I'm not docker expert, so I may be doing something wrong.

path: 0 23443101, hotness: undefined, score: 4, children: 5
TraceApps 4 points 4 months ago

Is the docker image public? I’m getting an “unauthorized” error when attempting to pull it. I’m not getting that error for other ghcr.io images. But I’m not docker expert, so I may be doing something wrong.

Should be fixed now, package was set to private by default on first push. Just flipped it. docker pull ghcr.io/traceapps/nutritrace:latest works without auth now. Thanks for flagging it.

path: 0 23443101 23443393, hotness: undefined, score: 4, children: 4
ProfessorScience 4 points 4 months ago

Looks good, so I've got it up and running now. Thanks!

path: 0 23443101 23443393 23443577, hotness: undefined, score: 4, children: 2
hoover900 1 point 4 months ago

What all did you do to get it working? I'm stuck with this issue.

path: 0 23443101 23443393 23443577 23451538, hotness: undefined, score: 1, children: 1
ProfessorScience 1 point 4 months ago

I'm seeing "Could not reach server — retry" on the diary page and when going to enter foods. The diagnostics log has

[14:25:38.821] [ERROR] [diary] loadEntry error: _fetch@http://my.server:3000/assets/index-Dl7TTIk7.js:175:24686

[14:25:41.686] [WARN] [settings] direct push failed for startPage: Server responded 401
[14:25:41.689] [WARN] [settings] direct push failed for weightUnit: Server responded 401
[14:25:41.695] [WARN] [settings] direct push failed for heightUnit: Server responded 401
[14:25:41.699] [WARN] [settings] direct push failed for statsGoalLine: Server responded 401
[14:25:41.701] [WARN] [settings] direct push failed for lengthUnit: Server responded 401
[14:25:41.702] [WARN] [settings] direct push failed for distUnit: Server responded 401
[14:25:41.704] [WARN] [settings] direct push failed for statsYZero: Server responded 401
[14:25:41.705] [WARN] [settings] direct push failed for tempUnit: Server responded 401
[14:25:41.705] [WARN] [settings] direct push failed for usdaEnabled: Server responded 401
[14:25:41.706] [WARN] [settings] direct push failed for statsAvgLine: Server responded 401
[14:25:41.708] [WARN] [settings] direct push failed for offSearchCountry: Server responded 401
[14:25:41.708] [WARN] [settings] direct push failed for offUploadCountry: Server responded 401
[14:25:41.709] [WARN] [settings] direct push failed for offSearchLanguage: Server responded 401
[14:25:41.710] [WARN] [settings] direct push failed for statsTrendLine: Server responded 401
[14:25:41.710] [WARN] [settings] direct push failed for statsChartType: Server responded 401
path: 0 23443101 23443393 23451310, hotness: undefined, score: 1, children: 0
selfhosted
selfhosted

@lemmy.world

login for more options
61580
6654
5580

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

go to feed...