
Recipe apps make you search; you still have to work out what to cook from what's in the fridge, your diet and the time you have. I wanted a kitchen assistant you can just talk to.
The agent runs in the browser and calls Gemini through a tiny Node proxy I host on Oracle Cloud, so API keys never reach the client. The proxy only allows approved models, caps tokens and request size, rate-limits per visitor and answers only the app's own origins. The app falls back across models when one is overloaded.
A strict domain guardrail in the system prompt keeps the assistant on food and declines everything else.
The UI state (ingredients, diet, servings) changes only through tool calls, so the conversation and the screen never disagree.
Moving the agent client-side removed the old FastAPI server but exposed API keys. A ~200-line dependency-free proxy fixed that without bringing back a full backend.
Live on the web, with Android builds from the same codebase, served through a hardened proxy on Oracle Cloud's free tier.