Project 11
Ayaan OS
My personal operating system: a single user web app, now focused on fitness and nutrition, with a Telegram bot that lets me log my day by text, photo or voice.
Who uses it
Just me. It is a single user app installed to my phone's home screen, and the Telegram bot only answers my own account.
Why it was built
I wanted one place to run my day instead of five apps, with logging that takes seconds so I actually do it. Over several months it grew into habits, tasks, study, finance and business modules, and in September 2026 I cut it back to the part I use every day, fitness and food, and parked the rest in an archive so it can come back if I need it.
What it does
The live app is the Fit tab: a food log with daily macros and a 14 day history and trend, workouts, weight, sleep and steps. I log a meal by photo or description and AI estimates the calories and macros, checked against USDA nutrition data where it can find a match. Workouts sync from Strava, and steps, sleep and burned calories sync from Google Health, so the day's net calories are worked out automatically. The Telegram bot logs meals and weight, answers commands like /calories and /food, checks off habits, and turns voice notes into to dos and journal entries in Notion, with scheduled morning, night, pace and weekly review messages.
What it serves
It exists to make tracking my training and eating close to effortless, so the data is complete enough to act on. Success is that I log every meal and the net calories, weight trend and sleep in front of me are accurate without manual bookkeeping.
Under the hood
Next.js 14 App Router with TypeScript and Tailwind CSS on Vercel, backed by Supabase Postgres and Storage through 87 migrations. Sign in is email and password with TOTP two factor and a step up gate in middleware, and row level security is on for every table with the anon role given no access. Meal photo estimates use a Claude vision model with a USDA lookup tool, voice notes are transcribed with Whisper on Groq and classified by Claude Haiku, and third party OAuth tokens (Strava, Google Health) are stored encrypted with AES-256-GCM. Vercel Cron runs the Strava and health syncs, a nightly checklist reset and the bot's scheduled messages, and one shared read layer serves both the Fit tab and the bot.
Flow
- Photo, text or voice
- AI estimate
- USDA check
- Supabase
- Fit tab and bot replies
Built with
- Next.js 14
- TypeScript
- Tailwind CSS
- Supabase
- Anthropic Claude API
- Groq Whisper
- Telegram Bot API
- Notion API
- Strava API
- Google Health API
- Recharts
- Vercel Cron
How I built it
- I started in May 2026 from a written build spec with locked decisions (tabs, daily non negotiables, mobile first PWA, single user) and built it in numbered milestones, starting with daily protocols, a journal and push notifications.
- I added auth with a single user login, then TOTP two factor with a step up gate, and later a security pass that turned on row level security for every table.
- Over the summer I grew it into study tracking with a question bank, a finance view on bank data, a business workspace with an outreach tracker, and a daily tracker, adding a 2 AM logical day boundary so late nights count toward the day I am still living.
- Early on I added AI calorie estimates for meal photos and workouts, and in August I added Google Health sync for steps, sleep and burn.
- On 8 September 2026 I cut the app down to the Fit tab and moved everything else into an archive folder with its paths preserved, outside the type check and bundle, without touching any data.
- Two days later I shipped the Telegram bot on top of a shared fitness data layer, then a Food view with daily breakdown, history and trend.
Key decisions
- I cut the app to the one tab I use daily instead of maintaining modules I had stopped opening, and archived the code with its original paths so any piece can be moved straight back.
- I use a stronger Claude vision model for meal photos because smaller models kept misidentifying foods, and calorie accuracy is the whole point of the log, while voice note classification uses the cheaper Haiku model.
- All date math runs on Central time with a 2 AM rollover, because Vercel runs in UTC and returned the wrong day in the evening, and because work past midnight belongs to the day before.
- Integration tokens are encrypted at rest with AES-256-GCM so raw access tokens never sit in the database.
- The Fit tab and the bot share one read only data layer, and missing synced data is shown as not synced rather than zero, so the bot and the app always agree.
