fud-ai

Project Url: apoorvdarshan/fud-ai
Introduction: Fud AI is a Free & Open Sourced AI Calorie Tracker for iOS & Android
More: Author   ReportBugs   OfficialWebsite   
Tags:

Fud AI Logo

Fud AI

Eat Smart, Live Better
Snap, speak, or type your food — AI handles the rest.

iOS Android Swift Kotlin UI Local-first privacy iOS 19 languages / Android 19 languages License Code reviews by Qodo and Greptile OpenSSF Best Practices Passing OpenSSF Scorecard Udyam Registered D-U-N-S 311099925 GitHub stars App Store Google Play


Open-source calorie and nutrition tracker for iPhone, iPad, and Android. Log food by voice, photo, barcode, text, or manual entry; review the estimate before saving; and track macros, water, progress, and workouts. Use your own AI key, choose a supported on-device option, or subscribe to optional Hosted Plus/Pro without managing a key. The core tracker has no required account, general Fud AI-operated cloud sync, analytics, or ads. The optional 18+ Weekly Challenge shares a display profile and aggregate scores, not your raw diary.

In this build: Home has the seven-day diary strip, a calendar popup, and a round + for logging food or finding Favorites. Open Weekly Challenge inside Progress, or switch between your workout diary and exercise library inside Workouts. Live Voice starts from the orb; you can choose a mascot in Settings. Release notes

Normal updates preserve existing local and Health data.

App Store · Google Play · Website · Discord /ask · Report an Issue · Request a Feature


Fud AI is a Udyam-registered micro enterprise in India, operating as a sole proprietorship in Services. Registration number: UDYAM-DL-06-0225072, registered on 9 September 2026.

Its Dun & Bradstreet D-U-N-S Number is 311099925, issued on 28 October 2026.

Features

Logging

  • Photo & Scan menu — a focused submenu for Camera, Photos, and Barcode
  • Multi-photo Camera — keep taking photos, review them horizontally, add an optional note, then analyze up to 10 separate images together
  • iOS Share Extension — send a food photo from Photos or another app directly into Fud AI for review and logging
  • Barcode lookup — scan packaged foods on iOS and Android and fill nutrition from Open Food Facts when product data is available
  • Multi-photo library import — select up to 10 existing images, add an optional note, and analyze them together
  • Text input — type food descriptions
  • Voice input — speak your meals hands-free (6 STT options with per-provider language selection, see below)
  • iOS Siri Shortcuts — say phrases like "Log food in Fud AI", "Calories today in Fud AI", or "Log my weight in Fud AI"; the phrase guide lives under + → Describe Meal → Siri Phrases
  • Manual Entry — log known calories and macros without AI
  • Smart serving units — AI can show slices, pieces, cups, ml, or other visible serving units while grams stay the source of truth
  • Review nutrition unlock — correct calories, macros, and detailed nutrients before logging, then lock again so serving changes scale from your edits
  • Meal What if? — preview how a reviewed meal changes today's calories and macros, then ask AI for a practical suggestion before logging
  • Saved Meals — Recents, Frequent, and Favorites with safer swipe actions, search, and drag-to-reorder
  • Retryable analysis — failed image analysis offers Retry and Cancel without limiting the number of retries

Intelligence

  • AI Coach tab — multi-turn chat with memory. Coach can retrieve relevant profile, weight, body-fat, nutrition, workout, and explicitly logged fasting context, then answer questions like "what's my expected weight in 30 days?" or "how did my training go this week?". It never treats a missing meal log as proof that you fasted. Camera/photo attachments work on both platforms. Memory persists across launches; Reset starts a fresh conversation. Long-press any reply to copy.
  • AI Access — free Bring Your Own Key: pick provider, model, fallback, custom instructions, and speech language directly on device. (The optional Fud AI Premium proxy from earlier iOS versions has been discontinued.)
  • Apple Intelligence fallback — on supported iPhones, food-description analysis for text, voice-transcribed, and Siri food logs can use Apple Intelligence on-device as the final fallback after BYOK provider/fallback attempts fail.
  • AI optional nutrient goals — estimate detailed nutrient goals from profile data without changing calorie/protein/carbs/fat formulas.
  • Goal-aware prompt chips — suggested questions change based on whether your goal is Lose / Gain / Maintain
  • Thermodynamic weight forecast — expected weight at 30/60/90 days, predicted vs observed weekly change, days-to-goal, under-logging detection. Surfaced through Coach as live context on every turn.
  • Resilient requests — transient provider overloads (503 / 529 / 429) auto-retry with 1s / 2s / 4s exponential backoff across both food analysis and Coach chat, so short spikes resolve invisibly

Tracking

  • Expanded nutrients per entry — macros plus sugar, fiber, fats, cholesterol, sodium, potassium, calcium, iron, magnesium, zinc, vitamins, folate, omega-3, and more when available
  • Custom Home nutrient cards — swap the top cards from protein/carbs/fat to fiber, sodium, vitamin D, calcium, or other tracked nutrients
  • Optional nutrient goals — set or AI-estimate goals for the non-macro nutrients; these stay separate from the calorie and macro calculator
  • Scrollable week calendar — swipe to any past week, configurable start day
  • Food log sorting — keep the default grouped view, or sort meal sections by latest logging order from the Home screen
  • Progress charts — switch between weight, optional body fat, and calculated workout burn, alongside calorie history and macro averages (1W to All Time)
  • Progress summaries — weight and body-fat ranges show average and net change for the selected week, month, or longer window
  • Decimal nutrition totals — macros and detailed nutrients preserve decimal precision in logs, Home, widgets, and View More
  • Weight History — tap-to-delete past entries and sync supported deletions to Apple Health / Health Connect
  • Goal tracking — set target weight, BMR/TDEE auto-calculation; goal-reached alert fires from both manual logs and Apple Health reads
  • Adaptive Goals — weekly calorie correction from observed weight trend; pinned macros stay pinned and unlocked macros auto-balance. On by default for new installs (stays off if you hand-edit your plan during onboarding)
  • Six activity levels — Sedentary, Light, Moderate, Active, Very Active, and Extra Active use work and training descriptions instead of step-count requirements
  • Custom meal times — choose when Breakfast, Lunch, Dinner, and Snack begin; the app uses those boundaries for automatic meal grouping
  • Optional water tracking — off by default; set any practical daily goal, quick-log one to three glasses or a custom amount, see progress below calories, and optionally schedule a local reminder
  • Optional fasting tracking — off by default; choose a 1–168 hour goal, start/end/cancel from the Home + menu, keep an active timer through app restarts, optionally receive a local goal alert, and edit or delete completed sessions without changing nutrition totals

Workouts

  • Workout diary & logger — plan exercises by day, swipe between weeks, and log sets, reps, weight, and RPE without starting a timer
  • Gender-aware exercise illustrations — selected exercise detail views use matched four-phase male/female v2 sequences in one consistent hand-drawn visual system, with the original exercise photos retained as the fallback for entries that do not yet have authored artwork
  • Calculated workout burn — estimate a day's calorie burn from the logged work, review or delete burn history in Progress, and optionally sync those records with Apple Health / Health Connect
  • Exercise library — switch in place to 877 exercises with photos, primary/secondary muscle and equipment filters, search, sort, and per-exercise detail pages; the last diary/library view persists
  • Coach workout context — Coach can retrieve workout plans, preferences, completed sessions, sets, reps, RPE, and calculated burn when answering training questions

Health & platform

  • Apple Health — bidirectional sync for body measurements, meal nutrition, and calculated workout calories; Siri food/weight logs use the same HealthKit paths, and Energy Burn Goals can estimate calorie targets from active/total energy while macros stay editable
  • Health Connect — Android sync for nutrition, weight, body fat, and calculated workout calories, with permission reconciliation and backfill support; Energy Burn Goals can use recent energy data for calorie targets; optional read-only import of workouts other apps (Garmin Connect, Coros, Strava, Samsung Health, Fitbit, …) share with Health Connect into Workouts and Progress
  • Local-only fasting records — fasting sessions are intentionally not written to Apple Health or Health Connect; eligible OS backup/device transfer may still include them according to device settings
  • Restore after a reinstall — on a fresh install or new phone, food, weight, body-fat, and calculated workout-burn records previously written by Fud AI can restore from Apple Health / Health Connect; local workout plans and set details require an OS backup/device transfer
  • Optional iCloud / Google Drive Backup — off until you turn it on in Settings → Data Management; iPhone uses iCloud, Android uses Google Drive after sign-in at that toggle, or when a returning user taps Restore on the Welcome back screen during setup; restore keeps original Health IDs so samples are not duplicated
  • Apple Watch — watchOS app and complications show calories, macros, and compact water progress when water tracking is enabled
  • Widgets — iOS offers Fud AI in Small, Medium, and Large, small Protein, and a separate small/Lock Screen Water widget; Android offers Calorie, Protein, Today, and Water Glance widgets that update from local snapshots
  • Share the App — native iOS share sheet from About → forwards App Store URL plus a personalized message and fud-ai.app link; message body localized into all 18 iOS languages
  • Update check — About shows the installed app version, opens the App Store / Play Store when a newer version is available, and shows a tab dot for pending updates
  • Theme color — iOS and Android Settings let users change the app accent, with matching home screen / launcher icons
  • Languages — iOS and Android support 19 languages: Arabic, Azerbaijani, Czech, Dutch, English, French, German, Hindi, Italian, Japanese, Korean, Polish, Portuguese (Brazil), Romanian, Russian, Simplified Chinese, Spanish, Turkish, Ukrainian. The app auto-selects by the phone's Language setting.
  • Meal reminders — customizable breakfast, lunch, dinner notifications
  • Dark mode — system, light, or dark
  • Metric & imperial units

AI Providers

Pick a provider for food analysis, meal what-if suggestions, optional nutrient-goal estimation, and Coach chat. BYOK requests go directly to the configured provider. Apple Intelligence on supported iPhones and downloadable Gemma models are separate on-device options. Not every provider model accepts photos or supports Coach's tools.

Provider Format Highlight Needs API Key
Google Gemini Gemini API Gemini 3.5 Flash-Lite (default), Gemini 4 Hydrogen Yes
OpenAI Chat Completions and Responses GPT-5.4 Mini (default), GPT-6 Luna, optional 6.1/6.2 Yes
Anthropic Claude Messages API Sonnet 5 (default), Haiku and Sonnet 5.5 Yes
xAI Grok OpenAI-compatible Grok 4.6, 4.3 and 4.7 Yes
OpenRouter OpenAI-compatible Presets and free-form IDs; free routing depends on capacity and region Yes
Together AI OpenAI-compatible Qwen 3.5 9B, Kimi K3.1 Pro, MiniMax M3.1 Flash (text) Yes
Groq OpenAI-compatible Qwen 3.8 27B (text and images), GPT-OSS (text) Yes
Hugging Face OpenAI-compatible Gemma 4 / 3 and Qwen 3.5 / 2.5 VL (open-weight router, free-form IDs) Yes
Fireworks AI OpenAI-compatible Kimi K3, MiniMax M3.1 Flash, Kimi K3.1 Pro Yes
DeepInfra OpenAI-compatible Gemma 4 / 3 vision models Yes
Mistral OpenAI-compatible Mistral Small and Large 4, Ministral 14B Yes
DeepSeek OpenAI-compatible DeepSeek Flash (photos and text), V4 Pro (text) Yes
Alibaba Qwen OpenAI-compatible Qwen 3.8 Flash and Qwen4-Max; Qwen Live uses a separate workspace key Yes
Cerebras OpenAI-compatible Qwen 3.8 27B (photos and text), GPT-OSS 120B (text) Yes
Ollama OpenAI-compatible (local) Qwen 3 VL, Gemma 4, Llama 3.2 Vision, LLaVA, Moondream No
Custom (OpenAI-compatible) OpenAI-compatible You set base URL + free-form model name Optional

Speech-to-Text Providers

Pick how voice input is transcribed. System Speech Recognition shows live partial results, but may use the network depending on the device and language. Recorded providers show text after you stop. Use Provider Auto, Use Device Language, or an explicit hint where supported.

Provider Notes
System Speech Recognition Built-in live recognition; not guaranteed offline
Downloadable speech models Whisper Base, Parakeet v3, Qwen3-ASR; see model requirements
Apple SpeechAnalyzer Optional offline recorded transcription on supported iOS devices with the selected language asset installed
Gemini Audio Gemini 3.5 Transcribe in verbatim mode
OpenAI GPT-Transcribe via /v1/audio/transcriptions
Groq Whisper Large v3, optional Turbo
Mistral Voxtral Mini Transcribe 3, optional Small
Deepgram Nova-3 for BYOK; explicit language detection with Automatic
AssemblyAI STT 3.7 with Universal-2 for broader language coverage

For Android phones where native speech is inconsistent, Groq (Whisper) or Deepgram are recommended alternatives; the developer currently uses Groq.

API keys are stored encrypted on-device: iOS Keychain on iOS and EncryptedSharedPreferences backed by Android Keystore on Android.

Release notes and upgrade changes

How It Works

Photo(s) / Text / Voice
        │
        ▼
  BYOK provider API
        │
        ├── BYOK provider fallback if configured
        └── iOS Apple Intelligence final fallback for text / voice transcript / Siri food descriptions
        │
        ▼
  JSON nutrition response
        │
        ▼
  User reviews & edits
        │
        ▼
  FoodStore.addEntry()  ──▶  UserDefaults (local) + Apple Health (optional)

For the Coach chat, every turn builds a slim system prompt from your live profile, BMR formula in use, computed forecast, today's date/timezone, and a one-line snapshot of available data. Coach then pulls relevant ranges of weight, body fat, calorie totals, food entries, workouts, or explicitly logged fasting sessions on demand via tool calling — ask "what was my weight in March?" or "how did my completed fasts line up with training this week?" and it fetches only the slice it needs. Coach never infers fasting from gaps in the food log.

Screenshots

Nine screens from the restored iOS interface, from Home and Live Voice to Coach, Workouts, and AI settings. Captured on an iPhone simulator with fictional data using scripts/screenshots/capture-ios.sh.

Home diary with calorie totals, nutrient progress, and the food diary

01 · Home · Dashboard
Calorie ring, macro and water pillars, and one diary for meals, water and fasts. The orb next to + starts Live Voice.
Live Voice with a sample breakfast Undo card

02 · Live Voice · Talk to Log
Talk to log meals, scan food and barcodes, and ask about your progress, with an Undo for every change. Runs on Plus or Pro, or your own Gemini, OpenAI, xAI or Qwen key.
Food entry with its photo, serving and nutrition

03 · Food · Edit
Every entry keeps its photo, serving and full nutrition. Change any value and the day's totals update.
Nutrition details with macros, water and micronutrients

04 · Nutrition · Details
Today's macros against your goals, water, and detailed nutrients from sugar and fiber to vitamins and minerals.
Progress tab with nutrition and weight trends

05 · Progress · Trends
Choose a date range to review nutrition, weight, and body-fat trends.
AI Coach chat answering from the user's data

06 · Coach · AI Chat
Coach reads your profile, logs and trends through tool calls, so answers use your real numbers.
Workout diary with the calendar, calorie estimate, and daily totals

07 · Workouts · Log
Log sets and reps from 877 exercises with photos, routines and a rest timer, and estimate the calorie burn.
AI provider settings with Gemini and the on-device Gemma model

08 · AI Providers · Your Keys
Pick any of 16 LLM providers with your own key, or download Gemma 4 to run on device, with separate text and fallback providers.
Voice Assistant settings with the Classic Orb and optional mascots

09 · Voice Assistant · Settings
Choose the Live Voice provider, reply language, automatic photo capture, and whether to confirm before anything is saved.

Calorie & Macro Calculation

The app calculates personalized daily targets using established nutrition science formulas:

Step Formula Details
BMR Katch-McArdle 370 + 21.6 × lean mass (kg) — used when body fat % is known
BMR Mifflin-St Jeor 10w + 6.25h − 5a ± 5 — fallback when body fat is unknown
TDEE BMR × activity Multiplier ranges from 1.2 (sedentary) to 1.9 (extra active)
Daily Calories TDEE + adjustment Adjustment = weeklyChangeKg × 7700 / 7 (deficit or surplus)
Protein Activity + goal 0.8 – 2.2 g/kg body weight by activity, plus +0.2 g/kg during cutting phase (Helms et al 2014); when body fat % is known, Activity Level also shows the equivalent g/kg lean-mass multiplier
Fat Fixed ratio 0.6 g/kg body weight
Carbs Auto-balanced Remainder from calories − protein − fat (any macro can be pinned; max 2 pinned)

All values can be manually overridden in Settings, with a Recalculate Goals button to snap back to formula defaults.

Architecture

Component Details
Language Swift 5, SwiftUI, iOS 17.6+
Storage UserDefaults (local JSON), Keychain (API keys)
AI GeminiService for food + label analysis, ChatService for multi-turn Coach chat, both route across all 13 providers
Speech Native SFSpeechRecognizer / Android SpeechRecognizer or remote providers via SpeechService (m4a upload)
Health HealthKit / Health Connect read-write paths for body measurements, meal nutrition, and calculated workout calories, with UUID-tagged samples for safe delete
Pattern @Observable + .environment(), main actor isolation
Localization Localizable.xcstrings (String Catalog), 18 iOS languages, auto-selected by iPhone's system language
Dependencies Native platform frameworks; detailed app data and API keys remain local, with only opt-in Weekly Challenge profile/aggregate fields sent to Fud AI

Repo Layout

fud-ai/
├── ios/          # SwiftUI iOS app (v8.0 build 40)
├── android/      # Kotlin + Jetpack Compose app (Android 8.0+, 9.0 / versionCode 50)
├── web/          # Marketing site — https://fud-ai.app (static HTML/CSS, Cloudflare Workers)
├── APPSTORE.md   # App Store Connect listing copy (iOS)
├── PLAYSTORE.md  # Google Play Console listing copy (Android)
└── README, LICENSE, CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, .github/

Source Layout (iOS)

ios/
├── calorietracker.xcodeproj/         # Xcode project
├── calorietrackerTests/              # Unit test target (boilerplate)
├── calorietrackerUITests/            # UI test target (boilerplate)
├── FudAIWidgets/                     # Widget extension target (Home + Lock Screen)
└── calorietracker/
    ├── calorietrackerApp.swift       # Entry point, environment setup
    ├── ContentView.swift             # 5-tab layout (Home, Progress, Coach, Settings, Workouts)
    ├── Localizable.xcstrings         # String Catalog, 19 languages
    ├── Models/
    │   ├── AIProvider.swift          # 13 LLM providers, model lists, settings
    │   ├── SpeechProvider.swift      # 6 STT options + Keychain settings
    │   ├── ChatMessage.swift         # Coach chat message model
    │   ├── UserProfile.swift         # BMR/TDEE/macro calculations
    │   ├── FoodEntry.swift           # Food item with macros and expanded optional nutrients
    │   └── WeightEntry.swift         # Weight log entry
    ├── Views/
    │   ├── OnboardingView.swift      # 15-step onboarding flow
    │   ├── ChatView.swift            # Coach tab: bubbles, prompt chips, reset
    │   ├── FoodResultView.swift      # AI result review & edit
    │   ├── RecentsView.swift         # Saved Meals (Recents / Frequent / Favorites)
    │   ├── VoiceInputView.swift      # Native + remote STT routing
    │   ├── HomeComponents.swift      # Week strip, macro cards
    │   └── ProgressComponents.swift  # Charts, weight history
    ├── Services/
    │   ├── GeminiService.swift       # Food/label analysis, routes 13 providers
    │   ├── ChatService.swift         # Multi-turn Coach chat, routes 13 providers
    │   ├── SpeechService.swift       # Remote STT router (Gemini / OpenAI / Groq / Deepgram / AssemblyAI)
    │   ├── WeightAnalysisService.swift # Thermodynamic weight-forecast math
    │   ├── KeychainHelper.swift      # iOS Keychain wrapper
    └── Stores/
        ├── FoodStore.swift            # Food CRUD + favorites
        ├── WeightStore.swift          # Weight CRUD (auto-syncs profile weight)
        ├── ProfileStore.swift         # @Observable wrapper over UserProfile
        ├── ChatStore.swift            # Coach chat history (persisted locally)
        ├── NotificationManager.swift  # Local notification scheduler, including optional water reminders
        ├── WaterStore.swift           # Local water entries and daily goal
        ├── StrengthWorkoutStore.swift # Local workout diary, sets, and burn history
        └── HealthKitManager.swift     # Apple Health bridge (body + nutrition + workout burn)

Build & Run

# Clone. --filter=blob:none downloads only the files in the current version,
# not every image and binary in the history.
git clone --filter=blob:none https://github.com/apoorvdarshan/fud-ai.git
cd fud-ai

iOS

xcodebuild -project ios/calorietracker.xcodeproj \
  -scheme calorietracker \
  -destination 'platform=iOS Simulator,name=iPhone 17 Pro' build

Open ios/calorietracker.xcodeproj in Xcode, select your device, and run.

Android

Open android/ in Android Studio (Narwhal or newer), let Gradle sync, hit ▶ Run. Or from the CLI:

export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"
cd android
./gradlew :app:assembleDebug
adb install -r app/build/outputs/apk/debug/app-debug.apk
adb shell am start -n com.apoorvdarshan.calorietracker/.MainActivity

First launch walks you through onboarding (gender, birthday, height/weight with metric/imperial toggle, body fat %, one of six activity levels with a protein-target preview, goal, goal speed, notifications, Apple Health / Health Connect, AI access setup, and review). A free Gemini key is available at aistudio.google.com/apikey. You can change provider anytime in Settings → AI Access.

Contributing

See CONTRIBUTING.md for guidelines. Bug reports and feature requests welcome.

Adding a new translation? Open ios/calorietracker/Localizable.xcstrings in Xcode and fill in your language column — everything else is already wired.

Code of Conduct

Everyone in the Fud AI community is expected to follow our Code of Conduct. Report concerns to apoorv@fud-ai.app.

Security

See SECURITY.md. Use private vulnerability reporting for sensitive issues.

Privacy

The core tracker has no required account, general Fud AI-operated cloud sync, or analytics. BYOK keys are protected by iOS Keychain or Android EncryptedSharedPreferences, and AI requests go directly to the provider you choose. Hosted Plus/Pro requests go through Fud AI's service. Eligible data stays on the device unless you use a feature that sends it elsewhere, such as AI analysis, optional health sync or cloud backup, or sharing. Fud AI also makes service requests such as downloading exercise illustrations and checking for updates.

The optional 18+ Weekly Challenge shares a display name, optional social handle, participant ID, and bounded weekly totals; no raw food logs, workouts, body measurements, or photos are sent to the challenge service. Share links can be opened by anyone who has them. Delete All Data clears the current app installation and requests challenge deletion when applicable; it does not remove Apple Health, Health Connect, or older backups. See the Privacy Policy and Terms.

License

MIT License. See LICENSE.

Contact

Support the Project

Fud AI is free with your own API key (BYOK), open source, and privacy-first — no ads. Plus/Pro hosted AI is optional. If it helps you, consider supporting development (the in-app Tip Jar is under Settings → Support Fud AI on iOS and Android) — every bit keeps this project alive.

Ko-fi Discord Product Hunt

You can also help by joining the Fud AI Discord and using /ask, voting on Product Hunt, starring the repo, filing bugs, or requesting features.

Star History

Fud AI GitHub star history chart

Contributors

Thanks to everyone who has contributed to making Fud AI better:

Contributors

Credits

Automated code reviews by Qodo and Greptile.

Thanks to Qodo for providing free AI code reviews through its open-source program.

Thanks to Greptile for providing free review credits through its open-source program.

Greptile: The War on Bugs

Exercise data, muscle glyphs, and barcode nutrition data come from open projects — see ASSET_CREDITS.md.

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools
AI Daily Digest