Skip to content
Pocket Homelab
Install

Pocket Nutrition

v0.3.0 · Self-hosted · MIT

What you eat, without the counting.

Pocket Nutrition is your food diary: what you eat meal by meal with calories, protein, carbs and fat, a glass of water in one tap, and goals worked out for you. Find food in a built-in list or by its barcode, log the recipe you cooked, or describe a meal in a sentence. One Go binary, one SQLite file.

Install Nutrition with Pocket Core in one command:

curl -fsSL https://pockethomelab.com/install.sh | sh -s -- --apps nutrition

On any Linux machine or a Mac. Already running Pocket Core? Apps → Install app → Nutrition. Add more apps to the line →

  • Included in Pocket Box
  • Sign in with Pocket Core
  • Works with Pocket Health and Pocket Kitchen and Pocket Fitness and Pocket Habits and Pocket Places and Pocket AI
The diary on an iPhone: calories left of the day, protein, carbs, fat and fibre, water, and meals planned in Pocket KitchenThe diary on an iPhone: calories left of the day, protein, carbs, fat and fibre, water, and meals planned in Pocket Kitchen

Diary

The day at a glance.

What is left of the day's budget, with the calories you burned added if you want, protein, carbs, fat, fibre and water. The meals you planned in Pocket Kitchen to log in one tap, and each meal with what you ate.

The diary: 1,649 kcal left, protein, carbs, fat and fibre, water, lunch and dinner planned in Pocket Kitchen, breakfast and lunch loggedThe diary: 1,649 kcal left, protein, carbs, fat and fibre, water, lunch and dinner planned in Pocket Kitchen, breakfast and lunch logged

Logging

Found in a few letters.

Search in English or Bosnian (“jaje” finds Egg), pick a serving and how many, and the numbers are worked out as you type. Scan a pack's barcode and it is looked up on Open Food Facts.

  • About 170 everyday foods built in, local ones too
  • Your own foods from their label
  • Copy a meal from the day before
Adding three eggs to lunch: the serving, how many, and the calories, protein, carbs, fat and fibre worked outAdding three eggs to lunch: the serving, how many, and the calories, protein, carbs, fat and fibre worked out

One tap

Your usual, first.

The foods you usually have for that meal and your favourites come first. Saved meals log your usual breakfast at once, and “Describe” turns a sentence into a meal with Pocket AI, for you to check.

  • “Two eggs, toast with butter and a coffee”
  • A recipe from Pocket Kitchen by the serving
  • A glass of water in one tap
Adding to lunch on an iPhone: search, describe, saved meals, and the usual foods for lunch with their caloriesAdding to lunch on an iPhone: search, describe, saved meals, and the usual foods for lunch with their calories

Trends

How you really eat.

Every day against your goal, days on goal, the averages, the split of protein, carbs and fat, each meal's share and your weight, over a week, 30 days, 3 months or a year.

  • Your eating in plain words from Pocket AI
  • Ideas for the next meal
  • An evening and a Monday message
Trends for 30 days: energy a day against the goal, days on goal, protein and water, the macro split and energy by mealTrends for 30 days: energy a day against the goal, days on goal, protein and water, the macro split and energy by meal

Goals

Goals worked out for you.

Calories, protein, carbs, fat, fibre and water from your height, age, weight and how active you are, with the Mifflin-St Jeor equation dietitians use. Or set your own.

  • Your weight from Pocket Health
  • Lose, keep or gain, and how fast
  • The calories you burn added if you want
Goals worked out from sex, year of birth, height and how active you are: 2,430 kcal with protein, carbs, fat, fibre and waterGoals worked out from sex, year of birth, height and how active you are: 2,430 kcal with protein, carbs, fat, fibre and water

And the rest of it

  • Bring your history

    Import MyFitnessPal's and Cronometer's exports; importing twice adds nothing. Export everything as JSON or the diary as CSV.

  • Training days

    The day's workouts from Pocket Fitness on the diary, since a training day can have more to eat, and the café you visited from Pocket Places.

  • Habits and Health

    The habit you choose ticked in Pocket Habits on logged days, and each day's calories, protein and water recorded in Pocket Health.

  • Everyone their own

    Each person has their own foods, diary, goals and connections. Admins manage accounts but see no one else's meals.

Install

One container, one folder.

Run the image with a data folder and open it on port 8080. Create the first account and log your breakfast, or import your MyFitnessPal or Cronometer history first.

Already installed on a Pocket Box, with sign-in through Pocket Core and the Ask panel on Pocket AI.

Every setting in the README →

The easiest way is the one command above. To run it on its own with Docker:

docker run -d --name pocket-nutrition -p 8080:8080 -v ./data:/data \
  -e BASE_URL=https://nutrition.example.com -e SECURE_COOKIES=true \
  ghcr.io/abjelosevic88/pocket-homelab-nutrition:latest