Private offline calorie counter web app for iPhone using CoFID and Open Food Facts

0 comments

Apps it uses

Skip the pictures to the steps

There are many calorie counting apps already, and plenty of them are good. Most come with a long list of features, and the useful ones sit behind a monthly subscription. I respect the work that goes into building and maintaining an app like that. I just do not need most of those extras. I wanted something smaller that I could shape myself, so I built one.

What it does:

  1. A Today screen with a daily target, a progress bar, and calories eaten and remaining. Entries are grouped by meal.
  2. Food can be added by name search, barcode scan, favourites, recent or saved meals. A manual entry covers anything missing.
  3. Calories are the headline number. Macros appear as a secondary line, with no macro targets.
  4. A dashboard with a 7 or 30-day chart, summary tiles and a history list.
  5. It works offline, apart from live barcode lookups. Barcodes I have scanned before work offline too.
  6. All data can be exported and imported as one JSON file.

Generic foods come from CoFID, the UK’s official food composition dataset, and carry a Verified badge. Barcode results come from Open Food Facts, a crowd-sourced database, and carry an Unverified badge.

Hosting costs nothing. The whole app is a small set of files deployed as a zip to Cloudflare’s free plan.

0 comments

Have a question about this workflow, or a way to improve it?

Log in to comment Create a free account

No comments yet. Ask the first question or say what worked for you.

Posting guidelines