Skip to content

Mindful Coffee ☕️ – Smart iOS caffeine log with cortisol rhythm modeling to optimize energy & sleep. Built with SwiftUI, SwiftData, HealthKit & on-device ML.

Notifications You must be signed in to change notification settings

aloth/mindful-coffee

Repository files navigation

Mindful Coffee - Caffeine Tracker App for iPhone with Sleep Prediction & Cortisol Rhythm

The smartest way to track caffeine, predict your sleep, and optimize your energy throughout the day.

Stop guessing when you'll be ready for bed. Mindful Coffee is a beautifully designed iOS app that tracks your coffee, tea, and energy drink consumption while showing you exactly when caffeine will clear your system for quality sleep. Understand your body's natural cortisol rhythm and time your caffeine perfectly for peak performance.

Built with Apple's stunning Liquid Glass design language, Mindful Coffee feels right at home on your iPhone with its modern translucent interface and buttery-smooth animations.

Why Mindful Coffee?

Most caffeine trackers just count milligrams. Mindful Coffee goes deeper - it models your personal metabolism, visualizes your cortisol awakening response, and predicts your optimal sleep time based on real science. Whether you're a coffee enthusiast optimizing your morning routine or someone trying to improve sleep quality, this app gives you the insights you need.

Key Features

Track Smarter, Sleep Better

  • Daily Logging Streaks - Stay motivated with visual streak counters that celebrate your consistency
  • Sleep Insights Card - See last night's sleep duration and caffeine impact at a glance
  • Grouped History View - Browse your consumption history with the current month expanded and past months neatly summarized

Intelligent Caffeine Tracking

  • One-Tap Logging - Record coffee, tea, energy drinks, and custom beverages instantly
  • Smart Sorting - Sort your drink list by "Last Used" or "Most Used" for faster logging
  • Real-Time Sleep Prediction - Know exactly when you'll be ready for quality sleep based on your intake
  • What-If Simulator - Preview how another drink would affect your sleep time before you consume it

Personalized to Your Body

  • Personal Metabolism Quiz - Answer guided questions to calibrate sensitivity, half-life, and sleep thresholds
  • Cortisol Rhythm Modeling - Visualize your body's natural energy curve and optimize caffeine timing
  • Sleep Correlation Analysis - Discover how caffeine levels affect your actual sleep duration using Apple Health data

Seamless Apple Integration

  • HealthKit Sync - Automatically log caffeine to Apple Health and import sleep data for deeper insights
  • Import from Other Apps - Bring in caffeine data from third-party apps via HealthKit
  • CSV Export - Full data ownership with complete history export

Screenshots

Real-Time Caffeine & Cortisol Tracking

Visualize your caffeine decay curve alongside your body's natural cortisol rhythm. The intelligent assistant provides personalized recommendations for optimal caffeine timing.

Mindful Coffee app showing real-time caffeine decay chart with cortisol rhythm curve and sleep prediction

Data-Driven Sleep Insights

Analyze how your caffeine intake affects sleep quality across different consumption levels. Track correlations between daily caffeine and sleep duration with personalized thresholds.

Caffeine and sleep correlation analysis showing average sleep duration across different caffeine intake levels

Quick Logging with Smart Predictions

Log your coffee, tea, or energy drinks instantly. See real-time predictions of how each beverage will affect your sleep readiness before you drink it.

Quick caffeine logging interface with beverage icons, caffeine amounts, and smart sleep impact predictions

Personal Metabolism Calibration

Customize the app to match your unique caffeine metabolism. Adjust sensitivity, half-life, sleep thresholds, and cortisol parameters for precise tracking tailored to your body.

Personal metabolism assistant and cortisol rhythm customization settings for precise caffeine tracking

Download Now

Take control of your caffeine habits and sleep better tonight:

Download on the App Store

Visit the Official Website - Learn more about features, the science behind it, and latest updates


The Science Behind Mindful Coffee

The cortisol modeling feature is grounded in established research from chronobiology and longevity science. For a detailed look at the underlying science, see the Research Background.

Interested in research collaboration? If you're a researcher or student working in chronobiology, sleep science, or related fields, reach out at support+mindfulcoffee@alexloth.com.

Citing the App

@software{Loth2025MindfulCoffeeApp,
  author       = {Loth, Alexander},
  title        = {Mindful Coffee: Caffeine Log & Cortisol Rhythm},
  year         = {2025},
  version      = {5.0},
  publisher    = {Alexander Loth},
  url          = {https://apps.apple.com/us/app/mindful-coffee-tracks-caffeine/id6742878005}
}

Privacy First

Your data stays on your device. Mindful Coffee stores all consumption data locally using SwiftData. HealthKit access requires your explicit permission following Apple guidelines. All calculations, analysis, and modeling run entirely on-device - nothing is ever sent to a server.

Read the full Privacy Policy.

FAQ & Support

Questions about caffeine science, app features, or troubleshooting? Check out the comprehensive FAQ:

Frequently Asked Questions

Also available in: Deutsch | Español | Français | 日本語 | 简体中文

Available Languages

Mindful Coffee is fully localized in English, German, Spanish, French, Japanese, and Simplified Chinese.

README in other languages: Deutsch | Español | Français | 日本語 | 简体中文


Feedback & Support

Help make Mindful Coffee even better:


Track smarter. Sleep better. Feel your best with Mindful Coffee.

Download on the App Store

Visit Website