Booting portfolio system
20%
← Return to work

project

Breakfast

An offline Android calorie and macro tracker built around typing what you ate, with personal food ranking, recipes, and nutrition trends.

01
software
02
Developer
03
Kotlin / Jetpack Compose / Material 3 / Room / CameraX / zxing-cpp / Vico

Breakfast is an Android calorie and macro tracker built around typing what you ate. Enter 2 tbsp oats, half a tbsp peanut butter, banana and the app works out the portions, finds the foods, and logs them. The diary stays on your phone and works offline, with no account or cloud sync.

Breakfast diary showing daily calories, protein, carbs, fat and fibre totals above meals and a Log food field.
The daily diary, shown with sample data.

What it does

  • Logs several foods in one line, with grams, millilitres, servings, or phrases such as “half a tbsp.” Foods picked often and recently come first.
  • Combines a bundled USDA food catalogue with personal foods, aliases, custom servings, and recipes. Open Food Facts adds online product search, barcode lookup, and optional contributions.
  • Organizes each day into Breakfast, Lunch, Dinner, and Snacks. Editing a food later never rewrites the nutrition already logged.
  • Provides daily burn estimates, lose/maintain/gain goals, macro targets, weight trends with projected date ranges, and weekly nutrition charts. Tracking only turns off targets and weights.

Latin and Cyrillic food names both work, with separate searches. Macro colours include colour-blind options and monochrome, and the whole diary can be exported and imported as one file.

Implementation

Kotlin, Jetpack Compose, and Material 3 provide the Android interface, with Room for local storage. Parsing, food matching, and nutrition calculation are separate deterministic steps. CameraX and zxing-cpp handle barcode scanning, while Vico provides charts. The bundled USDA catalogue needs no runtime API key or network connection; Open Food Facts features use a connection when requested.

Breakfast supports Android 8.0 and later and is licensed under GPLv3. The ranking idea draws on zoxide's frequency-and-recency approach, using Breakfast's own formula.

View the source and build instructions on GitHub.