Skip to content

dbkarashev/foon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Foon

iOS food journal with photo recognition, barcode scanning, and nutrition tracking

made with <3 by dbkarashev


Features

  • Log meals with photos — camera or photo library
  • On-device food recognition via Core ML (Food-101, 101 categories)
  • Barcode scanning with Open Food Facts lookup
  • USDA FoodData Central search with inline suggestions
  • Auto-fill calories, protein, fat, carbs from database
  • Portion size input with real-time nutrient recalculation
  • Daily nutrition rings (kcal, protein, fat, carbs, water)
  • Weekly progress overview with mini-rings
  • Water intake tracking with quick-add presets
  • Weight tracker with interactive chart and period selector
  • Journal with date filters, search, and daily calorie totals
  • Offline-first — cached products, local ML, no account needed
  • Built-in telemetry with CSV export for input channel analysis

Getting Started

Clone and open in Xcode:

git clone https://github.com/dbkarashev/foon.git
open Foon/Foon.xcodeproj

Add your USDA API key:

echo 'USDA_API_KEY = your_key_here' > Foon/Secrets.xcconfig

Get a free key at fdc.nal.usda.gov.

Requirements: iOS 26+, Xcode 26+

Tech Stack

  • Swift 6.2
  • SwiftUI
  • SwiftData
  • Core ML + Vision
  • AVFoundation
  • Swift Charts

License

This project is licensed under the MIT License.

About

Foon is an iOS app for tracking daily calorie intake and nutrition

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages