Projects About Donate GitHub
Back to the bench

Shipping, v2.2.0. Open source under AGPL-3.0. Self-hosted.

Nutreek

A self-hosted weekly nutrition planner — plan meals, track macros, and let adaptive TDEE keep your targets honest.

NutreekThe week's meals, planned. It opens at today.

This week

One page a day. The tabs on the edge go straight to one.

Monday

What it is

Nutreek is a self-hosted web app for your weekly nutrition plan. You build a week of meals from ingredients and recipes, and it computes the macros — calories, protein, carbohydrates and fat — per meal, per day and per week, with adherence bars against your targets.

Ingredient data comes from a local OpenFoodFacts index — full-text search in under 50 ms, offline — so lookups stay fast and private. On your phone, point the camera at a barcode and the product opens ready to add.

It runs natively as a single Go binary, or as one Docker container. SQLite is embedded, so there is no separate database to operate. The interface is in English and Italian, in light and dark, and installs on a phone like an app.

Monday
Tuesday

The week, one day at a time

Nutreek week view: day tabs with calories, the day's meals with macros, a calorie ring, water and a workout
The meals with their macros, and beside them the calorie ring, water and workouts.
The week view in dark mode
The same week in dark mode.
Tuesday
Wednesday

Features

  • Weekly plansA calorie ring and macros per meal, day and week, water and workouts, cheat meals, and one-click copy from the previous week.
  • IngredientsA local copy of OpenFoodFacts, updated daily: full-text search offline, with product photos.
  • Barcode scannerScan a pack from any food picker: your own ingredients first, then the local OpenFoodFacts copy.
  • On your phoneInstalls as an app, with a bottom bar. Light, dark or system, in four colours.
  • Recipes and templatesRecipes from ingredients or imported from a URL (schema.org/Recipe), with a photo and quantities you edit in place, in grams or pieces; weekly templates applied in one click.
Wednesday
Thursday

More features

  • Auto plan generatorA greedy planner builds a whole week from meal variants to hit your macro targets.
  • Adaptive TDEEEstimates your real energy needs from your weight and intake trend, and suggests target updates.
  • Weight, hydration, workoutsDaily tracking with trend charts, a workout log with calories burned and a weekly dashboard.
  • Coach modeA plan library, client assignment, frozen plan history and a coach dashboard.
  • Shopping list and REST APIThe week's shopping grouped by aisle, with a cart and a two-column print, and a bearer-token REST API.
Thursday
Friday

A closer look

The barcode scanner open over the food picker
The barcode scanner, from the food picker.
The scanned product ready to add
The scanned product: pick the grams, see the calories.
Three phone screens: the week, the scanner and the shopping list
On the phone, with the bottom bar.
Recipe list with calories and macros per serving
Recipes, with macros per serving.
Friday
Saturday

Planning ahead

Nutrition plan with the variants of breakfast and lunch
The plan: variants for each meal.
Shopping list grouped by aisle
The shopping list, by aisle.
Statistics in dark mode with estimated energy needs
Statistics and adaptive TDEE.
Coach panel with a client and the plan library
The coach panel and plan library.
Saturday
Sunday

Under the hood

BackendGo 1.27+ (chi, scs, goose, bcrypt, nosurf), hand-written SQL
DatabaseSQLite via modernc.org/sqlite — pure Go, no CGO
Frontendhtml/template + HTMX + Tailwind CSS; installable as a PWA
DeployStatic binary or a distroless Docker image (~20 MB), health-checked
Your dataOne SQLite file, with optional scheduled backups and retention
Administration: users, features and the OpenFoodFacts sync
Administration for the owner.
Sunday
Notesfor next week
Open source, self-hosted. Nutreek is released under the AGPL-3.0: run it at home or for your clients, and if you offer a modified version as a service, share your changes. The code, the releases and the container image are on GitHub.

Updating stays in your hands. Once a day a running copy checks GitHub for a newer release and tells its owner, with the two commands to update; a page left open across an update offers to reload.

Want to look first? The live demo gives you a throwaway account with twelve weeks of made-up meals, as yourself, a coach or a coach's client. No sign-up; it is deleted after two hours without use.

If it's useful to you, a donation genuinely helps.

Open the demo Source code Donate

Notes

That's the week.

Back to the bench