Joshua Nguyen
← Back to projects

MacroBook

Paste a TikTok or Instagram recipe link and get it parsed into ingredients, macros, and a logged calorie entry automatically.

A calorie tracker and recipe manager built with Expo (React Native) for iOS, Android, and web from one codebase, backed by Supabase (Postgres, auth, RLS, Edge Functions). Beyond standard calorie tracking (USDA FoodData Central search, serving-based logging, barcode scanning via Open Food Facts, weekly trend charts) the core feature is recipe import from TikTok, Instagram, and YouTube links: an Edge Function fetches each platform's caption/description (TikTok oEmbed, YouTube Data API, or Instagram page metadata with automatic retry for its inconsistent responses), then parses it into structured ingredients and steps. Macros are extracted directly when a creator states them, or estimated from the parsed ingredient list via per-ingredient USDA lookups otherwise. Recipe search (Spoonacular) and calorie data are proxied through server-side Edge Functions so third-party API keys never reach the client.