All projects
03 / Personal project · Nutrition tracker
Co-built with AI

Kinetix Nutrition

A calorie and macro tracker with meal planning, progress tracking, portion adjustments and grocery list generation.

A personal nutrition tracker connecting meal planning, food quantities, progress and groceries. AI can interpret a food description or photo and propose food references and portions for review. Deterministic calculations produce the totals. Guest access and verified accounts use the same application.

Open project
ReactTypeScriptSupabaseOpenAIVercel
Kinetix Nutrition’s sample workspace, showing meal planning, daily calorie and macro totals, and navigation to food entry and groceries.

Captured from the live product, October 2026 · Sample planning workspace. Sample records stay separate from personal tracking; guests can also try reviewed AI food entry.

01 / Context

Problem and requirements

A nutrition plan is useful only if a person can adapt it to what they actually eat. Portion changes need to flow through meal totals and shopping quantities, while uncertain inputs and sample data remain clearly distinguishable from personal records.

My contribution

Personal project, co-built with AI: built the planning interface, calculation rules and a sourced 103-food catalogue, then added owned cloud workspaces, dietary filters and reviewed AI text and photo entry.

  • Keep clearly labelled samples separate from personal tracking.
  • Require review of AI food references and portion estimates before logging.
  • Never invent nutrition values for unsupported foods.
  • Apply saved eating patterns and ingredient exclusions to new plans, substitutions and food-entry review.
  • Preserve edits and surface cloud-save conflicts instead of silently overwriting work.
02 / System overview

System design

A deliberately simplified view of the product. The decisions below explain the boundaries that matter.

Browser

Planning and review

Manual entry, portion changes, tracking and groceries. AI proposals are editable and require confirmation before logging.

Application server

Vercel Functions

Verifies the native session, validates food references and quantities, reserves AI allowance and checks workspace revisions before saving.

Private data

Shared Supabase, owned workspace

Kinetix tables keep each identity’s workspace separate. Browser caches preserve local edits; cloud conflicts pause saving for a deliberate resolution.

External service

AI text and photo interpretation

Proposes supported foods and estimated grams. Reference values and deterministic calculations produce totals; a photograph cannot measure a meal.

The applications share Supabase Auth, with separate app data and a session on each domain. Native guests own their work; email verification can retain that identity. Privileged credentials and AI allowance decisions stay on the server. The recorded scenarios below inspect specific application rules; the release checks describe what was verified in the live applications.

03 / Engineering judgment

Engineering decisions

01

Interpretation and calculation have different jobs

AI proposes supported food IDs and gram quantities; reference data and typed calculations produce the nutrition totals. A person reviews the proposal before logging. Unsupported items need a reference choice or explicit omission, rather than invented values.

02

A photo is a starting point

Photo recognition cannot measure a portion or reveal every ingredient. The interface treats its output as an editable estimate. Manual food entry and planning remain available when AI is exhausted or unavailable. Guests get ten successful analyses; the server reserves their allowance atomically.

03

Preferences are constraints

Four eating patterns and nine ingredient exclusions filter new plans, recipe choices, substitutions and food-entry review. Plant-based always uses vegan ingredients. Saving preferences rebuilds unlogged meals while preserving historical logs. Filters describe generic reference ingredients; they do not establish brand ingredients or cross-contact safety.

04

Private data, recoverable edits

Native guest and verified identities own their cloud workspace in the shared Supabase project. Account-specific browser caches preserve local edits. Revision checks pause a conflicting save, and reloading cloud data archives the local copy first. Linking and verifying an email retains the same guest identity.

04 / Evidence & boundaries

Verification and limitations

  • The live application includes AI text and photo interpretation, native guests, verified accounts and private cloud saving. Food references and quantities remain editable before confirmation.
  • The catalogue contains 103 identified USDA foods. Source checks exercise all four eating patterns and all 512 ingredient-exclusion combinations. A live guest test saved a vegan, soy- and gluten-excluding profile, retained it after reload, blocked excluded food entry and logged a newly added lentil reference without AI.
  • Release checks on 26 October 2026 reviewed a real text proposal, changed a portion and confirmed the foods before logging. A production photo check returned a supported food reference and estimated grams; the deployed API rejected further AI at zero credits.
  • Hosted checks verified private save and reload, cross-owner denial, conflicting revisions and account conversion that retained the workspace. Source and SQL tests cover calculation rules, unknown foods, quota races and failure refunds with mocked AI.
  • The recorded source checks below document deterministic calculations, planned-ingredient grocery updates and storage recovery. These checks do not measure photo accuracy or nutritional outcomes.
Explore the recorded source checks
Recorded source behavior / 26 October 2026

What the code returned.

Choose a scenario to see what the project code actually returned with synthetic inputs. These are recorded local checks, available without an account.

Ask before estimating

An unknown dish produces a clarification request and no invented calories. A mixed known/unknown description cannot be committed as a partial log.

01 / Observed result

Unknown description rejected

Recognised foods
0
Clarifications
1
Generated nutrition values
None
02 / Observed result

Mixed input cannot create a log

Loggable items
0

Why this matters. Uncertainty should stay visible instead of turning into an authoritative-looking number.

Method, inputs and limits

Actual TypeScript calculation and workspace modules transpiled with the checkout’s TypeScript compiler and executed locally. Synthetic clock (25 October 2026), synthetic storage and synthetic food descriptions; all results asserted before capture.

Local deterministic source checks. No real user/browser data, AI calls, hosted database, clinical validation, image recognition accuracy or full security/load audit. Nutrition calculations use generic USDA reference foods; this does not measure an actual meal.

Source revision bb05dc9ce147 · Verified 2026-10-26. The source checkout is required to rerun these checks.

Inspect the verification harness (requires the project source checkouts to rerun).

[
  {
    "title": "Unknown description rejected",
    "input": {
      "text": "unrecognized test dish",
      "slot": "lunch"
    },
    "result": {
      "items": [],
      "unresolved": [
        "unrecognized test dish: no supported food match. Choose a food from the catalogue or edit the description."
      ],
      "assumptions": []
    }
  },
  {
    "title": "Mixed input cannot create a log",
    "input": {
      "text": "100g chicken, mystery dish"
    },
    "result": []
  }
]
Download inputs & results

Known limitations

  • Food values, energy targets and photo portions are estimates for personal planning. Hidden ingredients and portion size need human review.
  • Generic food references do not verify a brand's ingredients or cross-contact. Unsupported foods cannot receive invented values.
  • Cloud storage requires a working connection; unresolved conflicts need a deliberate reload that first preserves local edits. User-data import and export are not offered.
  • An unlinked guest cannot recover access after signout or cleared browser data. Existing-account sign-in does not merge guest records.
  • No nutritional-outcome study or model-accuracy measurement is claimed.
Next project / Live

Project Brainstormer