Hacker News new | ask | show | jobs
by sw104 1170 days ago
It depends what the purpose is. I've been on a calorie-in-calorie-out weight loss journey since last August and for most of that time used BMR, as it subtracted a few hundred extra calories each day as a bonus.

For weight loss, eating at BMR is about right generally. And I'd imagine most use cases for calorie tracking apps are about weight loss.

To make it most accurate, I'd personally just add a basic multiplier for what sort of lifestyle people have (sedentary, small exercise like walking the dog, moderate exercise and hard exercise in the multipliers of 1.2x, 1.4x, 1.6x, 1.8x).

I exercise a lot and that typically adds 1000-1500 calories onto my daily BMR of 1500 or so, so the multipliers a lot of BMR / TDEE calculator websites use seem to make sense.

I'm more curious where the food database is sourced from. I tried something similar by getting data from British supermarkets (Sainsbury's, Tescos etc.) and none of them seemed to have APIs, so web scraping was the only possibility.

1 comments

Makes sense, happy to report that this will make it into the next version amongst some other things that didn't make it into the MVP. Thanks a lot for your feedback!

As for the food db: I use Open Food Facts which is great, but can be messy and sometimes wrong as it's mostly crowdsourced. I combine that data with data from US Food Data Central, which is an awesome resource.

You will see open food facts data as unverified in the app whilst food data central will appear as verified. Hope that makes sense.

I am in the process of adding major US restaurant chains as I recently found another great dataset with more than 30000 entries. So McDonalds, Starbucks, Dunkin Donuts, etc also coming.