Photo in. Arithmetic out.

Every calorie shows its working, from the share sheet to your log.

Prawn curry with rice

Sample meal
Item Gramsg ProteinP CarbsC FatF Fibre kcal
Prawn curryFrom your library 2502811153297
Basmati riceFrom your note 16044511207
Meal 4103256164504
4 × 32 + 4 × 56 + 9 × 16 + 2 × 4 = 504 Adds up.

504 kcal

Drag the grams.

Checked before it’s kept

A vision model names the plate. A second works out new foods. Arithmetic decides.

CheckThe ruleIf it fails
Energykcal = 4P + 4C + 9F + 2 fibreSent back.
Massmacros ≤ 100 g per 100 gSent back.
Ingredientssum of ingredient kcal = dish kcalSent back.
Still wrongFails twice.Flagged on the item.

Try to fool it, per 100 g

A target that follows your training

Pick an activity level. Carbs fill what protein and fat leave.

Activity level

Very active: a regular hard training session

Goal
Targets for the selected activity level
Resting burn (BMR)1,645
Maintenance2,712
Target on a cut2,316
Protein159 g
Carbs275 g
Fat64 g
Daily calorie target by activity level Targets rise with activity level. A tick on each bar marks maintenance. 1,0002,0003,0004,000 1,6451 1,8932 2,1253 2,3164 2,7075
72 kg, 176 cm, 29, male, 18% body fat, 0.5% a week. Ticks mark maintenance. Targets never fall below the resting burn.

A range, not a verdict

Over target but under maintenance still reads as a deficit.

The Today screen: 1,812 of 2,018 kcal eaten, status Still in deficit, a range bar with minimum, target and maintenance, and protein, carbs and fat against their targets.
Today, with sample data.
The Trends screen: a bar chart of daily calories over 30 days against the target and maintenance lines, with average intake, days in range, average protein and days logged.
Trends, with sample data.

The library learns your kitchen

Each food is worked out once. Rename it and the library learns.

you_loggedmatched_towhat_happens
chiken tikkachicken tikkaLinked automatically.
paneer tikkapaneer tikka masalaAsks “Same as…?” and remembers a No.
daaldalOne key for spellings and synonyms.

Closest:

Library: chicken tikka, paneer tikka masala, dal, roti, chicken biryani, basmati rice.

Yours, on your own server

One container and one OpenRouter key.

  • Your data. One SQLite file.
  • Redis. A cache only.
  • Your phone. Share photos to it over Tailscale HTTPS.
git clone https://github.com/samridh3215/macrosnap
cd macrosnap
cp .env.example .env
docker compose up -d --build

Set APP_TOKEN and OPENROUTER_API_KEY in .env first.