Bitelog
A personal nutrition and hydration tracker logged entirely through Discord.
Cloudflare Workers · Next.js · D1 · Drizzle ORM · Discord Bot
Problem
Calorie apps stop at macros and demand a dedicated app for every entry, so logging lapses within days — no use for long-term goals like managing cholesterol.
Approach
Moved logging into Discord slash commands — a photo or one line of text is enough, and AI estimates the nutrients. Backed by Cloudflare Workers, D1 via Drizzle ORM, and R2 for photos.
Outcome
A Next.js dashboard shows macro and hydration rings, goal progress, and 7/14/30-day trends, with CSV export. A confirm step before delete prevents accidental data loss.
Detail
A personal food and water tracker built to support long-term health goals (managing cholesterol, building an exercise habit) with the kind of detail most calorie apps don't ask for. Logging happens through Discord slash commands — a photo or a short text description of a meal is enough for the AI to estimate its nutrients, with a confirm-before-delete flow to prevent accidental data loss.
The backend runs on Cloudflare Workers with a D1 database (via Drizzle ORM) and R2 for photo storage. A Next.js dashboard, deployed on Cloudflare Pages, shows macro and hydration rings, goal progress, and 7/14/30-day trend graphs, with CSV export for deeper analysis elsewhere.