yagnikbarasiya2306@gmail.com

Case study · 02

Macro lens

An AI calorie and macro tracker built in Flutter. Photograph a meal to get an editable estimate of its foods and macros, follow the day against personal targets on the home dashboard, and see trends in the diary. A Node API on Supabase and a Next.js admin dashboard run the product.

Role
Mobile & full-stack developer — app, API and admin
Platform
Android & iOS app, web admin
Year
2026
Live
macrolens-eight-livid.vercel.app
Three MacroLens iPhone screens: meal scan, today’s calorie dashboard and weekly calorie trends

The challenge

Counting calories by searching food databases is slow, so most people give up within a week. The client wanted an app where you photograph a meal and get a trustworthy estimate in seconds with daily targets tailored to the person and a clear view of progress over time.

What I built

  1. 01

    Onboarding before sign-up

    Eight quick questions — goal, sex, birth date, height, weight, activity, target weight and pace — calculate daily calorie and macro targets before an account exists. Sign-up is a phone number and a one-time code via Twilio Verify.

  2. 02

    AI meal scanning

    Take or choose a photo and Gemini identifies the foods and portions. Every item is editable before saving, and scans are limited per plan.

  3. 03

    Home dashboard and diary

    A calorie gauge and macro breakdown against today’s targets, a meal log with per-meal macros, a day-by-day diary and a 7-day calorie trend chart.

  4. 04

    Reminders and account

    Local meal reminders that work offline, streak updates, and in-app account deletion.

  5. 05

    API and admin

    A Node.js and Express API on Supabase with rotating refresh tokens and row-level security, plus a Next.js admin dashboard for users, scans and subscriptions.

Screens

  • MacroLens home screen with a calorie gauge showing 1,745 of 2,454 kcal and today’s macros
    Today — calories and macros against targets
  • Scan meal screen with take photo, choose from library and add manually options
    AI meal scan
  • List of logged meals with calories, share of daily goal and protein, carbs and fat
    Meal log with per-meal macros
  • Diary trends tab with a seven-day calorie bar chart and weekly average
    Seven-day calorie trends
  • Meal reminders settings for breakfast, lunch, dinner and streak updates
    Meal reminders
  • MacroLens admin dashboard with total users, scans per month, recurring revenue and recent scans
    Admin dashboard

Tech stack

  • Flutter
  • Dart
  • Bloc
  • GoRouter
  • Node.js
  • Express
  • TypeScript
  • Supabase
  • Gemini API
  • Twilio Verify
  • Next.js

Outcome

  • Clean Flutter architecture with Bloc, GoRouter and custom lint rules that enforce the project’s conventions.
  • Hundreds of automated tests across the app and the API.
  • Admin dashboard and marketing site live on Vercel; API deployed on Render.

Next project

Fifteen flowers

Motion-led catalogue site

Get in touch

Open for freelance projects, contract roles and collaborations — mobile apps and full-stack products in particular. WhatsApp gets the fastest reply.

Based in
Rajkot, Gujarat, India
Elsewhere