01 — Works

Tempa: AI Calorie & Fitness

AI Calorie Tracker & Fitness Coach

FlutterNestJSPostgreSQLRedisAIMobile · Android
Overview

Tempa is an AI-powered calorie tracker and fitness companion. Snap a photo of a meal and Tempa identifies the food, estimates calories and macros, and reconciles the result against an ~820,000-item food database for accurate numbers. It pairs that with personalized AI meal plans, guided workouts with muscle-map visuals, an AI nutrition coach, and AI body-scan progress tracking. I built the product end-to-end and shipped it to Google Play across 22 markets in English and Indonesian.

My Role

Full-Stack Product Developer — designed and built the entire product solo: the Flutter app (Android-first, tablet-responsive), a NestJS backend with PostgreSQL + Redis, the AI photo-analysis pipeline (cost-optimized image downscaling, database reconciliation), the ~820K-food database (Open Food Facts + USDA + Indonesian TKPI), the token-free workout visuals, Google Play in-app purchases with RTDN renewal handling, email verification via Resend, and full EN/ID localization. The AI runs on Xiaomi MiMo through an OpenAI-compatible endpoint, and the LLM layer is provider-agnostic by design — the model can be swapped at any time without touching the app.

AI Photo Calorie Analysis

The flagship feature. Snap or upload a photo of any meal and Tempa's AI identifies the foods, estimates calories and macros, and reconciles detected items against the food database server-side — so confident matches get real, exact macros instead of pure estimates. Results come back in the user's language, mapping Indonesian dishes to TKPI data and everything else to USDA. Photos are downscaled to ~768px before the AI call, making the feature ~10–19× cheaper and sustainable at scale.

AI Photo Calorie Analysis screenshot 1

Daily Goal Tracking

The Today home hub shows the day's net calories against a personalized target, with a calorie gauge, an achieved healthy-range caption, and per-macro progress for carbs, protein, fat, sugar, and fiber. Every logged meal is auto-tracked on a timeline with full macro breakdowns, and users can add a meal by photo or plan the whole day with Tempa in a tap.

Daily Goal Tracking screenshot 1Daily Goal Tracking screenshot 2

AI Nutrition Coach

A dedicated Coach tab offers conversational chat with a nutrition-coach persona, weekly progress insights, and meal-plan generation grounded in the food database for realistic, region-appropriate suggestions. The AI responds in the user's language and can turn any conversation into an actionable plan.

AI Nutrition Coach screenshot 1

Guided Workouts

A full guided-workout experience. The AI generates a complete workout program tailored to the gear the user actually has and their goal, then walks them through it step by step with sets, reps, weights, coaching cues, a dial timer, and DB-persisted progress so they can resume where they left off. Each exercise comes with recolored muscle-map diagrams and real demo photos so users always know what to work and how to move.

Guided Workouts screenshot 1Guided Workouts screenshot 2

Progress & AI Body Scan

The Trend tab charts weight and body-fat over time with current-weight, body-fat band, and multi-range history views. An AI body scan reads a photo to estimate body composition and returns tailored insights and coaching on how to keep progressing toward the user's goal.

Progress & AI Body Scan screenshot 1Progress & AI Body Scan screenshot 2