Foodmap
JUL 2026–PRESENT · FASTAPI / SQLALCHEMY / REACT + VITE PWA · SOLE DEVELOPER · software
A recipe filter for people who can't eat out much. It ingests real, human-written recipes (schema.org JSON-LD, via recipe-scrapers — it never generates one), resolves every ingredient line against one canonical ingredient table, and grades each recipe against an editable tolerance profile: ok, check, avoid. A pantry ranks recipes by fewest missing ingredients; the grocery list is the recipe minus the pantry. It started as a pun — my partner eats low-FODMAP, which sounds like foodmap — and widened into family: saturated-fat flags sit beside the FODMAP and lactose rules.
The interesting engineering is the safety architecture. Matching is longest-alias-first, so "garlic-infused olive oil" resolves safe while "garlic" is caught. And unknown never passes: anything the resolver can't place downgrades to check. The system fails closed because the reactions at stake are severe, and the profile is designed to be overwritten — the low-FODMAP protocol is elimination, reintroduction, personalization, and the schema expects the user's real tolerances to replace the seeds.
FastAPI and uvicorn, SQLAlchemy 2.0 on SQLite, pytest with hermetic in-memory tests; a React + TypeScript PWA with a service worker on the front. It is my first fully independent backend-and-deployment project, and the repo doubles as its own course: a TEACHING.md that runs from sockets to HTTP to the framework's inversion of control to SQL by hand to the matcher, with one full request traced end to end. Next: a reaction log that correlates cooked meals with symptoms — data worth handing to a doctor — and recommendation within the constraint profile rather than against it.