Status: [UNTESTED] Endpoints found: http://localhost:8787/v1/targets/current http://localhost:8787/v1/food-logs Source: https://github.com/jacobwolf-1/FastLog # FastLog FastLog gives people who already estimate macros with ChatGPT a fast, trustworthy place to log those numbers. It is not a food database. [![CI](https://github.com/jacobwolf-1/FastLog/actions/workflows/ci.yml/badge.svg)](https://github.com/jacobwolf-1/FastLog/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) ![Node 22+](https://img.shields.io/badge/node-22%2B-3c873a.svg) ## Screenshots | Dashboard | Manual log | Saved meals | | --- | --- | --- | | ![Today dashboard with calorie and macro progress](docs/images/dashboard.png) | ![Manual food log with calories and macros filled in](docs/images/manual-log.png) | ![Saved meal templates with aliases and Log buttons](docs/images/saved-meals.png) | ## How it works With a breakfast template saved under the alias “usual breakfast”: 1. **Ask ChatGPT:** “Log my usual breakfast, 1.5 servings.” 2. **Resolve the meal:** the Action asks the backend to find the saved template by name or alias. 3. **Log the numbers:** the backend copies the stored macros, scales them by 1.5, and stamps the food log `source=chatgpt` on the ChatGPT-facing deployment. 4. **See the result:** opening or refreshing the iPhone's Today dashboard loads the updated totals and food log. 5. **Trace the write:** the same backend request also records an `ai_audit_log` row with the provider, operation, and user. If no confident match exists, the assistant asks whether to estimate and log a one-off entry. It must not silently invent a saved meal. ## What I built - **Postgres schema with row-level security:** user-owned targets, food logs, saved meals and aliases, weight entries, and AI audit records. - **REST API with memory and Supabase stores:** local demos and tests use memory; the Supabase store passes user tokens through to Postgres for ownership enforcement. - **ChatGPT Action limited to seven operations:** `logFood`, `getTodayDashboard`, `updateTargets`, `resolveSavedMeal`, `logS