Skip to content

Latest commit

 

History

1,792 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Train Libre App Icon

Train Libre

Private workout and nutrition tracking for Android and iOS.

Stars Forks Open Issues Latest Release Watchers

Flutter Drift Offline First Android and iOS


Train Libre is an open-source, offline-first strength training and fitness app for logging workouts, routines, calories, macros, bodyweight, and recovery — without ads, mandatory accounts, or commercial tracking.

Designed for lifters and health-conscious users who want serious tracking without social feeds, gamification, or subscription pressure, Train Libre prioritizes privacy, local data ownership, and transparent analytics.

Screenshots

Diary Log
Diary
AI Meal Capture
AI Meal Capture
Workout Tracking
Workout
Nutrition Tracking
Nutrition
Goal Review
Goal Review
Recovery Trends
Recovery
Body Measurements
Measurements
Data Insights
Data Insights

Download & Install

Get it on App Store
App Store Release
Get it on Obtainium
Android (via Obtainium)
Get it on F-Droid
Android (via F-Droid)

Google Play release is currently not available.

Platform Support

Train Libre is built with Flutter and natively supports:

  • iOS (Active — Available on App Store)
  • Android (Active — Available via Obtainium & F-Droid)

Key Features

  • On-Device AI with Apple Foundation Models: On compatible iPhones with iOS 26 or later, use Apple's on-device model without a third-party API key. Photo understanding through this provider requires iOS 27 or later and a build with the necessary compiler support; availability depends on the device and system configuration.
  • AI Meal Capture & Provider Choice: Capture meals from photos, dictated speech, or text using a compatible provider. Choose Apple Foundation Models, bring your own key for OpenAI, Google Gemini, Anthropic Claude, Mistral, xAI Grok, or DeepSeek, or configure Ollama or an OpenAI-compatible endpoint. Review estimates before saving; catalog matching and validation provide checks but cannot guarantee accuracy.
  • AI Assistant: Ask questions, log a described or photographed meal, or prepare drafts for routines, training plans, and recipes. Review and apply or discard proposed changes. Access to stored app data is controlled in the assistant, and chat history is stored locally. See the AI assistant guide for permissions and provider behavior.
  • Workout & Routine Tracker (Hypertrophy & Strength): Built for progressive overload, bodybuilding, and serious lifting. Create saved workout templates, customizable routines, and flexible training splits (PPL, Upper/Lower, Full Body). Log sets with warm-ups, working sets, failure sets, dropsets, timed sets, and RIR (Reps in Reserve) alongside rest timers and live session tracking.
  • 400+ Offline Exercise Library: Bundled offline exercise database derived from OpenExerciseDB and wger. Filter by primary and secondary muscle groups, equipment, and movement patterns, or create custom exercises.
  • Progress Tracking & Analytics: Real-time personal record (PR) detection, estimated 1-Rep Max (1RM) progression curves (Brzycki model), volume load trends per muscle group, and comprehensive body measurement tracking (arms, chest, waist, hips, calves, thighs) with trend smoothing.
  • Wearable & Health Sync: Optionally import selected health data, including steps, sleep, heart rate, measurements, and daily nutrition totals, from Apple Health or Health Connect. Export supported measurements, nutrition, hydration, and workouts; available data and permissions vary by platform.
  • Muscle Recovery & Readiness: Per-set RIR-aware residual load model with muscle-specific recovery decay and readiness heatmaps, paired with an algorithmic Sleep Health Score across five domains.
  • Calorie & Macro Tracker: Track nutrition, hydration, caffeine, creatine, and custom supplements in a local diary with adaptive weekly guidance and a Bayesian TDEE Estimator. Log foods from a catalog or enter macros manually without creating a catalog item.
  • Meal Logging, Four Ways: Barcode scanning, offline food catalog search, saved meal templates, or the camera — barcodes are detected passively while the meal camera is open, so there is no mode to pick in advance.
  • LiDAR Scale Hint: On supported iPhones, optional depth measurements can provide scale information for meal estimates. Devices without suitable depth data continue without it; portions remain estimates.
  • Privacy & Local-First: Core data is stored locally. Optional health integrations, backups, AI providers, catalog downloads, and usage statistics have their own data flows. No ads, commercial tracking, or mandatory cloud accounts.

Privacy & Philosophy

  • No Ads. No Mandatory Account. No Commercial Tracking (Optional Pseudonymised Usage Statistics, off by default).
  • Offline-First: Your data stays local unless you explicitly choose otherwise.
  • Open-Source Transparency: Trust through public code and understandable data flows.
  • On-Device & User-Controlled AI: Apple Foundation Models are intended for on-device processing on compatible devices. Online AI providers and configured endpoints receive the content needed for their requests; provider selection and the assistant's data-access controls are described in the AI assistant guide.

Feedback & Community

  • Found a bug? Open a bug report with the steps to reproduce it. Please remove API keys, personal information, and private health data from screenshots or logs.
  • Have an idea? Start a Discussion first so the community can shape it before it becomes implementation work.
  • Have a question or want to share how you use Train Libre? Visit Discussions.
  • Ready to propose a well-defined feature? Use the feature request form.

Documentation

This project features a comprehensive, modular documentation suite split by target audience and component. Use the links below to access the technical resources:

For AI-assisted routine creation, see the public AI routine guide. It uses Train Libre’s existing JSON import format and the OpenExerciseDB search page and JSON catalog for exact exercise IDs.

Developer Resources

Advanced Features & Algorithmic Transparency

For the full interlinked documentation map, see the main Documentation Entry Point.

The public fitness app comparison compares Train Libre with 19 training and nutrition apps using linked public sources.

Roadmap

The long-term vision, future modules, and planned features are maintained in the ROADMAP.md file.

Star history

Star History Chart

Credits

License

The application is licensed under GPL-3.0.

The bundled exercise catalog is not. Exercise data comes from OpenExerciseDB, licensed under CC BY-SA 4.0, derived in part from the wger project. Individual records keep their original upstream licence and author, listed in ATTRIBUTION.md.

ShareAlike travels with the data, not with this repository's code: redistributing the catalog — or a database derived from it — means passing on the same licence and the same credit. Food data from Open Food Facts is separately licensed under the ODbL.

The BLS catalog is licensed under CC BY 4.0. Train Libre distributes the converted catalog with translated names, search aliases, and app categories. Attribution is also available in THIRD_PARTY_NOTICES.md and in the app About screen. The compressed catalog is downloaded from the catalog release repository; it is not bundled in the app binary.