MN://WORK/ai-calories-tracker

AI Calories Tracker

A Bun monorepo pairing an Expo client with a Cloudflare Workers API, hardened around idempotent writes and honest health reporting.

MOBILE / EDGE APIAI systemsPublic source · in progress

$ gh repo view mneves75/ai-calories-tracker
MN://ai-calories-tracker — System route

$ trace "ai-calories-tracker"

  1. Expo client
  2. Workers API
  3. idempotent write
  4. health check

The problem

A food log is a write-heavy mobile app talking to an edge API, where a retried request must not create a duplicate entry and a broken maintenance job must not look healthy.

The constraint

Scheduled maintenance tasks have to fail independently, and the health endpoint has to report degradation explicitly instead of returning a green 200.

The approach

Independent checks for media garbage collection and idempotency, a health endpoint that answers 503 when either fails, per-task decoupled scheduling with structured logs, and environment parsing with safe fallbacks.

The outcome

Failure of one maintenance task no longer blocks the other, and the regression suite covers the degraded paths rather than only the happy one. Still in progress and without a published README.

Next route

Open another project

The index is the wider system.

MN://palette
↑↓ navigateEsc close