Skip to content
ecliptikPublic

About

πŸ™ A personal calorie tracking and goal setting app for iPhnes and iPads

Topics

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Onigiri πŸ™

Website Β· User Guide Β· Privacy Policy

A personal calorie, nutrition, and water tracker for iPhone, iPad, and Apple Watch. Everything logged is saved to Apple Health, there's no account to sign up for and data always remains yours.

Runs on iPhone, iPad, and Apple Watch (iOS 18 / watchOS 10 or newer).

Built 100% agentically with Claude Code.

The Today screen: calorie balance headline, sodium and water, the daily goal gauge, energy meters, and the log

Features

  • Calorie & nutrition tracking β€” your day at a glance: what you ate minus what you burned (Apple Health active + resting energy), with the calories you have left for the day.
  • Weight goal β€” set a target weight and date. Onigiri works out the daily calorie budget to get there and projects your finish date from your real weight trend (smart scale β†’ Apple Health).
  • Private by default β€” no analytics, no ads, no servers, no tracking. Everything remains on your device: online lookups and AI are opt-in switches, offered once at onboarding and changeable anytime in Settings.
  • Barcode, label & menu scanning β€” one camera, no mode to pick: it reads a nutrition-facts label, turns a photographed menu board into a list, or (with AI) identifies food straight from a photo, with barcode scans and food search filled in from OpenFoodFacts and USDA FoodData Central when online lookups are on. Visual Intelligence feeds the same reader: point Camera Control at food, a label or a menu and pick Identify from Photo.
  • Nutrition from a page, a PDF, or a menu β€” Share β†’ Onigiri from Safari reads nutrition figures on-device from a web page, PDF, link, image, or menu document: a single food fills the form, a whole restaurant guide becomes a searchable list you log from item by item, and AI estimates dishes with no calories printed.
  • AI features (optional β€” off by default) β€” one switch adds nutrition estimates from a description or photo (refinable afterward in your own words, e.g. "no dressing" or "it's tofu, not chicken"), label/menu reading fallbacks, and meal-name suggestions, each reviewed before saving and marked with a small ✨, running on-device with Apple Intelligence or your own Anthropic/OpenAI key or local server (details).
  • Siri β€” "Log water in Onigiri," "Log chicken and rice in Onigiri," "How many calories do I have left in Onigiri?": log water, saved meals, and favorite foods by voice, ask about your day, and (with AI on) describe a food and confirm the estimate hands-free. The same shortcuts work from Spotlight, the Action button, and the watch.
  • Fast logging β€” log foods and water in a tap or two. Every entry is editable, with swipe to edit or delete and one-tap undo.
  • Custom meals β€” bundle the foods you eat together into a meal, then log the whole thing in one tap.
  • Water tracking β€” set your serving size and daily goal; log from the app, a widget, the watch, or a long-press on the add button.
  • Apple Watch app β€” log on the go from a Favorites-then-Recent list, check your balance at a glance, and add balance and water complications to your watch face.
  • Widgets β€” a Today widget (small, medium, large, and extra large on iPad and iOS 27 β€” with the Active/Resting split and today's log) with your calorie ring and a one-tap Log button, plus a month-stats card, water and streak widgets, and a Control Center water button.
  • Light & dark mode β€” the app and its widgets follow your system appearance (screenshots below are light mode).

Screenshots

Foods Goal Calendar
Food library with meals and foods Goal: weight trend, progress toward the target, and the projected date range Calendar: month grid of earned onigiri and streaks

iPad

Today on iPad: sidebar navigation with the day summary and the log side by side

Apple Watch

Apple Watch: balance headline with a one-tap Log button and Log water

Home Screen widget

The medium Today widget on the Home Screen β€” calorie ring, burned and eaten, sodium and water, and a Log button β€” beside the stock iOS widgets

How the daily goal works

Onigiri reads your weight, what you eat, and what you burn from Apple Health, then turns them into a daily goal you can act on.

  1. Set a goal β€” a target weight and date. Onigiri works out the daily calorie deficit you need to get there (burning more than you eat).
  2. Eat within your budget β€” your budget is your average daily burn minus that deficit. As you log food, the Today ring shows how much you can still eat today and stay on pace.
  3. Lose weight β€” finish each day at or under your budget and you hit the deficit; do it consistently and the scale follows.

Example. Your average burn is ~2,500 kcal/day and your goal needs a 500 kcal/day deficit, leaving a 2,000 kcal budget. You've eaten 1,850 so far, so the ring reads 150 kcal left β€” room for 150 more and you'll still land on your target deficit by bedtime.

  • kcal left β‰₯ 0 β†’ on track (still losing at your target pace).
  • Over budget β†’ you'll fall short of the pace for your target date (you may still lose, just slower).
  • Eat nothing more and the deficit only grows β€” you'd stop losing only if you ate all the way up to your full burn (~2,500).

The Daily goal card shows the same thing from the deficit side: "350 of 500 kcal deficit" is what counts so far β€” the rest of the day's burn is still coming, which is why that reading and "150 kcal left" point at the same 500 target.

Architecture at a glance

  • SwiftUI apps for iOS and watchOS; shared OnigiriKit Swift package for models and logic
  • HealthKit is the log store: every food/water log is written as Health samples (dietary energy, sodium, water). Weight and energy burn are read from Health. This gives free iPhone↔Watch log sync, visibility in the Health app, and zero lock-in.
  • SwiftData stores only the library: foods, meals, goals, settings. Synced to the watch via WatchConnectivity.
  • XcodeGen (project.yml) generates the Xcode project β€” no .xcodeproj merge conflicts.

See plans/PLAN.md for the full design and roadmap.

Development setup

  1. Xcode 26 (Mac App Store), then:
    sudo xcode-select -s /Applications/Xcode.app
    sudo xcodebuild -license accept
    xcodebuild -downloadPlatform iOS -downloadPlatform watchOS
  2. brew install xcodegen
  3. cp local.yml.example local.yml (set your team ID there for device builds; the empty default builds for the simulator)
  4. xcodegen generate in the repo root, open Onigiri.xcodeproj
  5. Xcode β†’ Settings β†’ Accounts β†’ add your Apple ID (free personal team is fine)
  6. On iPhone and Watch: Settings β†’ Privacy & Security β†’ Developer Mode β†’ on
  7. For scripts/deploy-phone.sh: cp scripts/local-devices.env.example scripts/local-devices.env and fill in your device name and watch IDs

Free personal team note: apps expire after 7 days β€” re-deploy weekly (⌘R with your phone connected, or scripts/deploy-phone.sh).

License

PolyForm Noncommercial 1.0.0 β€” read it, build it, modify it, and run it freely for any noncommercial purpose. Commercial use, including selling this app or a derivative of it, is not permitted. Releases through v2.2.0 were published under MIT and remain so.

Required Notice: Copyright (c) 2026 Micheal Waltz

The Onigiri name and icon identify this project and its official builds; distribute forks under a different name and icon. This is a personal project β€” issues are welcome, pull requests generally aren't (see CONTRIBUTING.md).

About

πŸ™ A personal calorie tracking and goal setting app for iPhnes and iPads

Topics

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages