Recipe Generator
- AI
- Full-stack
- Next.js
- TypeScript
- tRPC
- Drizzle
- SQLite
- Anthropic API
- Zod schemas
- Vitest evals
- LLM-as-judge
- OpenTelemetry
- Prometheus / Grafana
A meal planner that turns body metrics into macro targets and schedules a week of dinners around cook days and leftovers. Claude proposes the plan and writes the recipes; a verifier built from the same functions the deterministic planner uses checks every result in code, returns every violation at once, and falls back to deterministic planning when the model cannot satisfy the constraints.
AI features used
- Agentic planner given four tools, then treated as untrusted and checked by a verifier built from the deterministic planner's own functions
- Forced-tool-call generation validated against one shared zod schema, retrying with the specific failed fields rather than asking for a rewrite
- Two-tier eval suite in CI: deterministic assertions gate the merge, a model judge tracks the trend without ever blocking it
- Red-team fixtures embedding prompt injection in the fields the model reads as data, asserted separately so a bypass cannot hide in an aggregate
- Versioned, content-hashed prompts, with the hash and model string recorded on every generation
- Local MiniLM embeddings in sqlite-vec for natural-language search and exemplar retrieval for the generator
- A setup interview whose proposals are held in local state until a person accepts them
- OpenTelemetry spans per generation for tokens, computed spend, latency, retries, and fallback outcomes
- Recorded-fixture demo mode, so the public demo is reproducible and costs nothing to run

