TraceApps

joined 1 week ago
[–] TraceApps@lemmy.world 1 points 1 day ago* (last edited 1 day ago) (1 children)

Hey, thanks for trying it out!

For things you don't measure by weight (eggs being the classic example), the easiest path is to make a local entry once and then reuse it. A few ways to go about it.

The nutrition label on your egg carton is your friend here. It'll show you the serving size, usually 1 large egg at around 50g, plus the full breakdown (calories, protein, fat, carbs). Tap the + on the Foods page, type those numbers in, set Serving size to 50 and Unit to "grams". From then on, logging eggs is just typing "Quantity: 2" in the diary and the math takes care of itself.

For irregularly-sized stuff like apples or bananas, a kitchen scale is honestly the easiest path. A medium apple can swing anywhere from 130g to 220g, so weighing it once and typing the gram count gets you accurate numbers without needing a separate per-piece entry for every size.

One thing worth knowing about OFF and USDA results: the "100g" you see is just the per-100g nutrition density. That's how those databases store everything, it's a baseline reference, not a forced serving size. So you can either weigh your food and type the grams directly, or edit the entry to change the portion and unit (say to "1 piece" or "1 cup") and the totals rescale.

Once you've dialed in a handful of items you eat regularly, day-to-day logging gets a lot faster. The new Favorites and Most Used sort in rc.19 will float your top items to the top of the Foods page automatically.

[–] TraceApps@lemmy.world 1 points 4 days ago (1 children)

Just pushed rc.15 with the fix. Energy unit setting is now respected across the app, and the wizard auto-picks kJ for AU and NZ on first run.

[–] TraceApps@lemmy.world 2 points 4 days ago (2 children)

Glad you're enjoying it.

On the kJ, you're right. The setting was being respected for goals and storage but a bunch of display spots still had kcal hardcoded. Just pushed the fix to dev and it'll be in the next public release. Also added auto-detect so if your device locale is en-AU or en-NZ the wizard pre-selects kJ on first run, no toggle needed (but present now in settings).

On AI for coding, yes I utilize it. Claude Code to be specific. It makes me more efficient and helps lift the work I ship.

Will let you know when i push out the update, should be later today.

[–] TraceApps@lemmy.world 1 points 4 days ago

Glad the workaround clicked. Custom-nutrient "water" plus your own recipes is the cleanest path for comprehensive accounting without waiting on a built-in feature.

The "two lists feels more complicated than one" observation is fair and worth sitting with. Ill add this as a possible future feature

Thanks for the thoughtful feedback.

[–] TraceApps@lemmy.world 2 points 5 days ago

Thank you! Enjoy the app!

[–] TraceApps@lemmy.world 2 points 5 days ago (2 children)

Currently no, there's no per-food water field in NutriTrace, and food water doesn't count toward your daily water goal. The water tab tracks drinking water only.

What's the actual use case for you, comprehensive nutrition accounting, or trying to reduce the explicit drinking water target based on what you ate? They're different problems and the answer would shape what (if anything) makes sense to add in the future.

[–] TraceApps@lemmy.world 1 points 5 days ago

Great glad that fixed it!

 

Quick update for anyone following the project. NutriTrace is a self-hosted nutrition tracker I've been building. Single Docker container, your data stays on your hardware, no external accounts.

This release ships the first native Android app alongside the existing PWA. Signed APK is attached to the GitHub release.

What you get on Android:

  • Standalone, or connect it to a NutriTrace server for sync
  • Health Connect for steps, sleep, heart rate, body weight
  • Native barcode scanning
  • Native notifications for water reminders, meal prompts, weigh-ins, and goal celebrations
  • OIDC SSO via deep link if you run Authentik, Keycloak, Pocket ID, etc.

Release: https://github.com/TraceApps/nutritrace/releases/tag/v1.0.0-rc.14 Repo: https://github.com/TraceApps/nutritrace

Still on the v1.0 release-candidate cadence so there will be be bugs. Please feel free to post issues here or on Github.

Thanks to everyone who's tried it, provided suggestions and filed bugs along the way. If you find it useful, a star on the repo or a mention to someone looking for a self-hosted nutrition/fitness alternative helps a lot.

[–] TraceApps@lemmy.world 1 points 5 days ago (2 children)

Thanks for catching this. The Cronometer adapter was treating the parsed gram count as a serving multiplier, so a 750g entry got its calories multiplied by 750. The "NaNg" had the same root cause: the portion was stored as the raw string "750.00 g", which JS coerces to NaN when the diary tries to multiply it for display.

The layout overlap on the duplicate-day dialog is should now be fixed too (added a divider so the buttons have proper visual separation from the radio options).

Both are hopefully now fixed and pushed in rc.14. Grab the latest package, delete the affected day from your diary, and re-import. Items should hopefully now come in with the right values.

Thanks again for the detailed report.

[–] TraceApps@lemmy.world 1 points 5 days ago

Thanks for implementing it that fast! Unfortunately I wasn’t able to test it.

I found the new section in the readme. So I followed it. I created an admin account (which confused me a bit - my user already had admin permissions. So why is it necessary to create another admin user?). Then I wanted to logout and login with the admin again. But I wasn’t able to figure out how to log out. So I just deleted the cookies and local storage.

After that I was greeted by the login page. So I logged in as admin, entered the User Management - and found an interface to manage users. Ok, sounds logic to find a user management tool in the “user management” menu entry. But the readme said, that there should be oidc settings. Maybe they got lost in a merge conflict or something like that. I was testing on rc12.

Anyways I would prefer an env variable to configure oidc. I like to separate the technical configuration (like credentials, etc) from the user space configuration.

This comment may sound super negative, but I’m actually very grateful you addressed this feature. Thanks!

Thanks for the detailed walkthrough. A few of the rough edges you ran into are fixed in the latest release:

The admin-account confusion makes sense in hindsight. If you were already running NutriTrace single-user, you genuinely didn't need an admin account, that step exists because OIDC requires user management to be on. The README now spells that out as a prerequisite up front so it doesn't feel like surprise paperwork.

Logout has a real home now. Profile lives at the very top of Settings as a card showing your name and photo, and Log Out is right there inside it. No more digging through the cookie jar.

The "where are the OIDC settings" question was on me. They were buried inside User Management. They're now their own top-level section called Authentication, sitting right under User Management, with presets for Authentik, Keycloak, Authelia, Pocket ID, Auth0, Google, and a generic OIDC option for anything else.

And on your env-var preference, that's in too. You can configure providers entirely from .env or docker-compose.yml. Single-provider shorthand:

OIDC_ISSUER=https://auth.example.com/ OIDC_CLIENT_ID=nutritrace OIDC_CLIENT_SECRET=... OIDC_DISPLAY_NAME=Authentik OIDC_REDIRECT_URIS=https://nutritrace.example.com/api/auth/oidc/callback/1

Multi-provider works with OIDC_PROVIDER_2_, OIDC_PROVIDER_3_, etc. Anything you define this way shows up in the Settings UI with a lock badge and is read-only there, so it's clear where the source of truth lives. Full doc in .env.example and the README.

Pull the latest and give it another shot when you have a minute. Please confirm the env-var path actually works for your IdP when you have a chance.

Thanks again.

[–] TraceApps@lemmy.world 1 points 5 days ago* (last edited 5 days ago) (4 children)

I gave this a shot, but when I press the “preview” button I just get a little popup that says “Invalid CSRF token”.

Hmm... i think i see the issue. The preview / commit upload was missing the CSRF token, so the server was rejecting it before it even read the file. Just pushed a fix. Once you pull it down, hard-refresh the page (Ctrl+Shift+R / Cmd+Shift+R) to grab the new bundle and try again.

[–] TraceApps@lemmy.world 1 points 1 week ago (2 children)

OIDC feature has been added to app in latest build (1.0.0-rc9). Please test and let me know how it works for you. I successfully tested with Authentik.

[–] TraceApps@lemmy.world 1 points 1 week ago* (last edited 1 week ago) (6 children)

Import feature has been added to app as experimental in latest build (1.0.0-rc9). Please test and let me know how it works for you.

 

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.

view more: next ›