stSean Tosello
03

Macromentum

Full-stack PWA for nutrition tracking and training. Natural-language meal logging via LLM, real-time macro dashboard, workout tracking, and mobile-first installable design.

pwanext.jssupabasegroqnutritionfitnesspersonal-projectai-integration

Macromentum is a mobile-first Progressive Web App built with Next.js 14 and Supabase. Core features include natural-language meal logging (parsed via Groq's Llama 3.1 with a smart caching layer that learns from prior parses), workout and training session tracking against customizable weekly templates, pain/recovery logging across five body regions, and a real-time macro dashboard. AI integration is intentionally minimal and encapsulated — one LLM call for meal parsing, with weekly Claude-powered coaching reviews facilitated manually (copy-paste). The entire LLM layer lives in ~50 lines, enabling rapid provider swaps. Designed as an installable native app on iOS/Android via PWA. In-progress enhancements include an AI coach chat interface, momentum scoring, and conversational onboarding.

StatusActive
RoleBuilder / Architect
Stack
Next.js 14 (App Router)Tailwind CSSSupabase (PostgreSQL, Auth, Row-Level Security)Groq APIVercel
// project · health tech · mobile PWA

Macromentum

athlete nutrition & training tracker · deterministic core · narrow AI boundary
Next.js 14 · Tailwind · installable PWA
Supabase Postgres · Auth · RLS
Groq Llama 3.1 (meal parsing only) · Vercel
AthletePRIMARY USERMobile PWA ShellINSTALLED · iOS / ANDROIDMacromentum Appdashboard · meal · workout · recoveryAI Parsing BoundaryGroq · Llama 3.1 · meal text → normalized foodDeterministic Macro EngineAUTHORITATIVE CORE · calories · protein · carbs · fatSupabase PostgreSQLnutrition · workouts · recovery · meal_parses▲ Vercelhosts Next.js runtime · env config01 · USER DEVICE02 · APPLICATION03 · DOMAIN · AI BOUNDARY04 · SUPABASE DATA05 · HOSTING
Deterministic · authoritative
App data flow
AI parsing boundary
Security · RLS
Neutral
click any node for details · esc to close
Interactive architecture diagram — click nodes for details

Screenshots

Macromentum real-time macro dashboard showing daily nutrition totals
Macromentum real-time macro dashboard showing daily nutrition totals
Natural-language meal parser interface powered by Groq/Llama 3.1
Natural-language meal parser interface powered by Groq/Llama 3.1
Macromentum mobile view showing PWA installable design with safe-area CSS
Macromentum mobile view showing PWA installable design with safe-area CSS
Private