Skip to content

antomanc/simple-calorie-tracker

Repository files navigation

Simple Calorie Tracker

app screenshot app screenshot

Get it on GitHub

This is a free and open source React Native application that helps you track your daily calories, macros, and meals. The design is inspired by Yazio.

Features

  • Search foods by name or barcode with OpenFoodFacts and USDA api integration
  • Track calories, protein, fat, and carbohydrates in a daily diary
  • Add custom entries with your own nutritional values
  • Save your favorite foods for quick access
  • Customize your daily targets

TODOs

  • Cache for USDA searches. Since the USDA databases changes very rarely, a cache for queries can be implemented without worries, with a very long invalidation time.
  • Recents and frequently used foods. This could be a very handy feature for people that eat some food very ofted, like cereals, milk, eggs or this kind of food.
  • Internationalization. I developed this app without multi languages support in mind, but since there is a small set of pages and components, it's not an hard to implement feature.
  • Changing the day in the diary. At the moment the diary page supports only showing the current day, but having the possibility to change the day could be useful.

Installation

You can install the app from the latest GitHub release or build it yourself:

  1. Clone the repository:
    git clone https://github.com/antomanc/simple-calorie-tracker.git
    cd simple-calorie-tracker
  2. Install dependencies with bun
    bun install
  3. Prebuild for native platforms (Android/iOS):
    bun run expo prebuild
  4. Build the APK:
    cd android
    ./gradlew assembleRelease
    The release APK will be located in android/app/build/outputs/apk/release/ as app-release.apk.

Feel free to open issues or suggest features!