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.
|
App Store Release |
Android (via Obtainium) |
Android (via F-Droid) |
Google Play release is currently not available.
Train Libre is built with Flutter and natively supports:
- iOS (Active — Available on App Store)
- Android (Active — Available via Obtainium & F-Droid)
- 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.
- 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.
- 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.
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 Documentation: Repository map, contributor checks, and implementation guides.
- System Architecture & Database Lifecycle: Startup wiring, database ownership, migrations, and backup boundaries.
- Data Flow & State Lifecycle: Repository reads and commands, subscription ownership, and asynchronous UI state.
- Localization Architecture: Flutter ARB strings and separate catalog localization systems.
- Food Search: Catalog indexing, matching, aliases, and ranking.
- Home Screen Widgets: Shared snapshots, native bridges, refresh, and deep links.
- Smart Features Overview: Overview of algorithmic features and architectural privacy invariants.
- Bayesian TDEE Estimator: Comprehensive mathematical and statistical formulation of the Kalman filter-based adaptive energy expenditure engine.
- BYOK AI Meal Validation: AI meal capture pipeline details, fuzzy validation scoring, and the 3-pass self-repair verification loop.
- AI Assistant Data Access: chat history, data access, and reviewable change proposals.
- AI Assistant Meal Logging: reviewed macro-only meal proposals, photo persistence, and estimate boundaries.
- Meal Capture Pipeline: Unified camera and passive barcode detection, voice dictation, meals as logged events, photo storage, and what leaves the device on each capture path.
- Depth Scale Hint (LiDAR): Measured scale facts and the optional depth image, the quality gate that discards untrustworthy measurements, and the explicit non-goals.
- Native Health Sync & Export: Bidirectional vital synchronization (Steps, Sleep), outbound manual log export pipelines, SQLite-backed idempotency tracking, and fault-tolerance patterns.
- Sleep Health Score Engine: The five scoring domains, their curve shapes, and the soft-cap penalty logic.
- Muscle Recovery & Readiness Model: Per-set RIR-aware residual load, role-weighted exposure, muscle-specific decay, and readiness.
- Estimated 1-Rep Max Heuristic: The Brzycki-based submaximal strength model behind PRs and progression.
- Adaptive Nutrition Goals: Long-term weight goals, weekly reviews, and proposed calorie and macro adjustments.
- Manual Workout Plans: Fixed weekly plans and flexible sequences with rest days and planned-session tracking.
- Macronutrient Analytics: Calorie and macro intake trends across selectable time ranges.
- Live Activity & Workout Session: The iOS Live Activity and Dynamic Island surface for a running workout.
- Telemetry & Privacy Architecture: The complete opt-in telemetry event catalog and the anti-profiling safeguards around it.
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.
The long-term vision, future modules, and planned features are maintained in the ROADMAP.md file.
- Open Food Facts for packaged-food and barcode coverage.
- Bundeslebensmittelschlüssel (BLS) 4.0 from the Max Rubner-Institut for base-food nutrient data.
- OpenExerciseDB for the exercise catalog.
- wger for the upstream exercise data OpenExerciseDB was built from.
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.







