GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Abdulla1x/Trackaholic: A full-stack, multi-user nutrition tracking app: a React + TypeScript PWA backed by a FastAPI + SQLAlchemy REST API on PostgreSQL, with AI meal analysis that shows its uncertainty.

BranchesTags
Open more actions menu

Latest commit

 

History

824 Commits
824 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
backend
backend
 
 
docs
docs
 
 
frontend
frontend
 
 
legacy
legacy
 
 
screenshots
screenshots
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DESIGN.md
DESIGN.md
 
 
LICENSE
LICENSE
 
 
PRODUCT.md
PRODUCT.md
 
 
README.md
README.md
 
 
render.yaml
render.yaml
 
 

Repository files navigation

Trackaholic

A calorie and macro tracker that estimates a meal from a photo, a voice note or a sentence, and tells you how sure it is.

Try the demo · Open the app · The story so far · Docs · Engineering notes
Free hosting: the first visit after a quiet spell can take 30–60 s while the server wakes up.

CI License: MIT

Trackaholic on a phone: the Today screen, an AI estimate of a chicken and rice meal, and the Progress screen

Highlights

🔍 AI analysis was down for three days

Six hypotheses were ruled out before the real one: Gemini's free tier is geo-blocked in the EEA, and the server was in Frankfurt.

📐 Photo size chosen by an A/B test

1024 px moved the model's estimates upward, so 1536 px shipped. The AI bill turned out not to depend on photo size at all.

✅ 1,700+ tests, six CI gates

1,544 backend and 190 frontend, including a cross-account suite that checks no user can read another's data.

🏗️ Multi-user, in production

FastAPI + PostgreSQL behind a React PWA, with migrations, nightly backups and AI quotas sized to a free tier.

What it does

  • Log a meal from a photo, a voice note or a sentence. The AI returns a calorie range, how sure it is, and every assumption it made, so you can correct it before saving.
  • Or type it. Ingredients fill in from your own food library, five national food tables (USDA, UK, France, Australia, Canada) and Open Food Facts.
  • A daily target worked out from you: your body, then your real burn, measured from your own weigh-ins and logs.
  • Progress over any range: weight trend, goal date and nutrition charts, from 7 days to all time.
  • A weekly review computed from the week you actually logged.
  • Optional trackers for water, steps (with a Samsung Health import) and supplements, plus calorie banking across the week.
  • Saved meals, copy a recent meal, share a meal by code.
  • A demo with no sign-up: a temporary account with a month of made-up data, and sample plates whose AI estimates are saved real runs, shown beside what each plate weighed in at.
  • Installs on your phone as an app, nine colour palettes in light and dark, and your data is yours: meals out as CSV, everything as JSON.

Everything, in detail: docs/features.md.

Engineering notes

  • AI meal analysis down for three days — a post-mortem. The feature failed for every input; the API key was valid, the model existed, and the deployed code worked fine from a laptop. Six hypotheses were eliminated before the real one: Gemini's free tier is geo-blocked in the EEA, and the backend was hosted in Frankfurt. Covers the diagnosis, the region migration, what remains unproven, and the two further failures the migration caused.
  • Picking a photo size with an A/B instead of a hunch — the plan was to shrink photos to 1024 px because "the model downsamples anyway". Measured first: the AI bill turned out not to depend on photo size at all, and 1024 px shifted the model's estimates upward on every plate it changed. Covers the experiment design (run against the model's own run-to-run noise), why 1536 px shipped instead, and exactly what the numbers can and cannot claim.
  • Setting a calorie target from sources, not round numbers — every rule behind a day-one target checked against a primary source before the first-use screens were built. Five proposed rules didn't survive and were replaced; the activity multipliers turned out to be a decades-old convention that set desk workers' targets too low; and four everyday gaps turned up, from a goal weight that changed nothing to typed macros that couldn't add up. Covers each rule with its source, three decisions in detail, how it's tested, and where a competitor is still ahead.

Read more

All features everything the app does, in detail
Screenshots every screen, phone and desktop, light and dark
Install it on your phone iPhone, Android, desktop
Architecture how the frontend, API, database and AI fit together
Running locally setup, tests and the six CI gates
Deployment Neon, Render and Vercel, and keeping the free server awake
API every endpoint
Data sources and credits the food tables, fonts and icons, and their licences

Built with

React 19 + TypeScript 6 (an installable PWA) · Python 3.14 + FastAPI + SQLAlchemy · PostgreSQL on Neon, with Alembic migrations · Gemini for the meal estimates · hosted on Vercel and Render.

Formerly Macros Calculator; renamed in October 2026, and moved from macros-calculator-mu.vercel.app to trackaholic.app the same month. It started as a Streamlit app, which lives on in legacy/.

Licence and contributing

MIT. Contributions are welcome. Read CONTRIBUTING.md first: opening a pull request means agreeing to its licence terms. Your contribution is MIT-licensed, and I may also relicense it in the future.

Abdulla · github.com/Abdulla1x

About

A full-stack, multi-user nutrition tracking app: a React + TypeScript PWA backed by a FastAPI + SQLAlchemy REST API on PostgreSQL, with AI meal analysis that shows its uncertainty.

trackaholic.app

Topics

calorie-trackerfastapifitness-trackergemini-apimacro-trackernutrition-trackerpostgresqlpwapythonreacttypescript

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.