WORLD 2-1
Ration
A nutrition tracker for a small group of friends: calories, macros and about 90 nutrients, private by design, with optional AI that runs on your own key.
CONTEXT
Calorie apps are ad-driven and put your data in someone else's cloud. I wanted one for myself and a small group of friends: invite-only, self-hostable, and honest about nutrition instead of gamifying it.
IDEA
One open-source tracker spanning web, iOS and Android, private by design. Every account is invite-only with per-user row-level security, and the optional AI features (photo log, describe a meal, recipe drafts, a health-only coach) run on your own OpenRouter key, which never leaves the device.
CRAFT
An Expo and React Native app with a Supabase backend. The food database is built from USDA FoodData Central, about 14,000 generic foods with full micronutrients, plus the Canadian Nutrient File, barcode lookup and custom foods and recipes. Daily targets come from BMR formulas, activity level and goal; Apple Health and Health Connect sync adds what you actually burned. Features are tested in isolation, including a browser smoke-test harness, before first contact with a live backend.
OUTCOME
Open source at github.com/spojskic/ration-calorie-tracker and running at ration.safetpojskic.com entirely on free tiers. All planned features are written and tested; the first run against a real backend and phones is the next quest.