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.

MN://WORK

More work

MN://palette

Actions

Switch languagePTOpen GitHubOpen LinkedInOpen X

Pages

Home/Work/work/About/about/Recommendations/recommendations/Contact/contact/

Projects

DNSChatAI / NETWORKSAI Health SyncPRIVACY / HEALTHffts-grepRUST / SEARCHhayRANKED GREP / EVIDENCEdevtrimMACOS / FAIL-CLOSEDOpen Profile ManagerMACOS / OPERATIONSllmdeepdiveTEACHING / AISTOATEACHING / STOICISMGradiente Expert XP-8003D / EMULATIONcf-toolkitCLOUDFLARE / SAFETYMega-Sena AnalyzerDATA / STATISTICSBusca Remédios BrasilPRICES / PHARMACIESBolão 2026PREDICTION POOLSO Diário NeutroNEWS / EDITORIALOpenClaw Club BrasilCOMMUNITY / PT-BRConhecendo IACOURSE / BILINGUALTerroir AtelierWINE / EVIDENCEWhatsImovelREAL ESTATE / LEADSIA TravelTRAVEL / ANALYSISEvent Management SystemEVENTS / RSVPEvent Services PlatformEVENTS / SERVICEMaturidade (Carlos Magno)BOOK / AI COMPANIONBabimakeupBRAND / BEAUTYWeatherSunscreenUV / HEALTHCigarInfo AIVISION / AUTHENTICITYAI PedometerON-DEVICE AIswift-fast-markdownSWIFT / PARSINGCruzadas Rubro-NegrasGAMES / FOOTBALLCruzadas TricoloresGAMES / FOOTBALLCruzadas AlvinegrasGAMES / FOOTBALLCruzadas FluminenseGAMES / FOOTBALLSkillsAGENTS / TOOLINGOU BenchmarkBENCHMARK / LANGUAGESPolymarket AnalyzerMARKETS / REALTIMEAI Calories TrackerMOBILE / EDGE APIArremataRadarAUCTIONS / OFFICIAL DATASINALPUBLIC PROCUREMENT / DATACaptureVaultiOS / ON-DEVICELUMEDAILY READING / MOBILELente IAiOS / IMAGE AIDrawing with LoveREAL-TIME / FOR TWOLive RuniPHONE + WATCH / LIVEMinutaDraftNOTES / ENCRYPTED SYNCLevante a TaçaAI IMAGES / WORLD CUPVestouWARDROBE / PWAPaquera AIAI COACH / MOBILERecursos de MultasLEGAL AI / TRAFFICGP Race StatsiOS / FORMULA 1IA Palavras CruzadasiOS / WORD GAME

Hidden site terminal. Type help for the command list; Esc closes.

MN://OS — tty1
MN://>