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.

  • Squizzy@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 hours ago

    How well would this work internationally? More a question on the resources but does open food facts log international barcodes? I knowour stuff is way different to the same product stocked in the US.

    • TraceApps@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 hour ago

      Barcodes work internationally. i can confirm because i have used in both europe (italy) and africa (south africa). Only difference between nutrition facts i see is that the US uses Sodium and i want to at least Europe uses Salt. I have a built in conversion where when one is used the other is automatically calculated.

      • Squizzy@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        49 minutes ago

        Brilliant, I could have worded that better. I assume a mars bar in europe and a mars bar in the US has different barcodes because they are made differently and I wasnt sure if the OpenFoodFacts was a US library but it appears to log barcodes and info globally.

        Great idea, love it tackling the subscription creep of trackers

  • CosmicGiraffe@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 hours ago

    What does the mealie integration enable? I assume it’s providing foods that can be logged, but can you also pull stuff from mealies meal planning section & populate it into the diary?

    • TraceApps@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 hour ago

      Mealie integration allows you to pull in your Meal/Recipe from your self hosted instance of Mealie via api. If you have nutrition facts set there by the recipes total weight, it will pull in that data and then you can set your serving size accordingly so it calculates properly. It also pulls in the recipe pic if set in Mealie.

  • Daniel Quinn@lemmy.ca
    link
    fedilink
    English
    arrow-up
    8
    ·
    6 hours ago

    As this is a new project, have you considered hosting your code somewhere other than GitHub? Codeberg and GitLab are similarly user-friendly platforms without the many downsides of supporting Microsoft.

  • pmtriste@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 hours ago

    This sounds great. How does the device support work? What do you think of GadgetBridge support?

  • diminou@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 hours ago

    Is there a place where we could help with translation ?

    I know a few people that would want an app like that but English is not their primary language and won’t bother checking it out at all without some kind of translation.

    • TraceApps@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      56 minutes ago

      Is there a place where we could help with translation ?

      I know a few people that would want an app like that but English is not their primary language and won’t bother checking it out at all without some kind of translation.

      Great question, and not yet. NutriTrace is English-only right now, and the UI strings are hardcoded throughout the Svelte components. To accept translations I’d first need to wire up an i18n layer (svelte-i18n is the obvious pick) and extract strings to per-locale JSON files. Then translation contributions become straightforward via PRs or something like Weblate/Crowdin. I will add this to my roadmap. Any languages in particular we should prioritize?

  • TraceApps@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    13
    ·
    12 hours ago

    Thanks all, really appreciate the kind words. Feedback is welcome on anything: bug reports, missing features, things that feel rough, or just “this works for my setup.” A few features are flagged Experimental right now and I’d like to harden them enough to drop the badge.

    Native Android app is in active development. There’s also a sister project in the works called LiftTrace under the same TraceApps umbrella, same self-hosted Docker setup but for workout tracking (sets, reps, programs, PRs). Not public yet but close.

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

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

  • loanrangerofpeanuts@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    14 hours ago

    This looks very interesting. I’ll have to load up the container and give it a try at some point in the future. Big fan of the mealie integration since I use that for all my recipes.