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.

  • TraceApps@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    5
    ·
    20 hours 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.

    • ProfessorScience@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 hours 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