Self-host SparkyFitness
v1.11.0Self-hosted fitness & nutrition tracker with AI coaching
- Stars
- 6 738
- Ports
- 3004 (frontend web interface), 3010 (backend API server)
- Requires
- PostgreSQL
codewithcj/sparkyfitnessWhat is SparkyFitness?
SparkyFitness is a self-hosted fitness and nutrition tracking platform built for families and individuals who want complete ownership of their health data. It combines nutrition logging, workout tracking, hydration, sleep monitoring, fasting, mood, and body measurements in one application with AI-powered coaching assistance. The platform includes a backend API server, a React 19 web frontend, and smartphone applications for iOS and Android. It synchronizes with over 20 health platforms including Apple Health, Google Health Connect, Garmin, Fitbit, Oura, and Polar. Authentication options include OIDC, TOTP, passkeys, and multi-factor authentication. The project uses a custom non-commercial license that permits free self-hosted use but requires permission for commercial hosting. Installation is primarily via Docker Compose with PostgreSQL, with additional deployment options for Kubernetes, Portainer, Synology, Proxmox, and other platforms.
Should you self-host SparkyFitness?
SparkyFitness scores 68/100 on selfhost.directory (how scoring works) and ranks #2 of 11 in Fitness Tracker. It has 6 738 GitHub stars, +526 in the last 30 days.
It shipped 28 stable releases in the past year. The latest, v1.11.0, came out on 30 October 2026. New versions land roughly every 7 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is nutritrace (55/100, 375 stars). SparkyFitness scores higher overall. See SparkyFitness vs nutritrace side by side.
Features
- AI nutrition assistant (beta)Currently in beta
- Body measurement tracking
- Exercise & workout logging
- Fasting tracking
- Goal setting & daily check-ins
- Hydration tracking
- Interactive charts & reports
- Mood Tracking
- Multiple user profiles & family access7 permission levels
- Nutrition tracking
- OIDC Authentication
- Passkey Authentication
- Sleep trackingSleep stages imported from watch/phone
- TOTP two-factor authentication
SparkyFitness README
English · 简体中文 · 繁體中文 · 日本語 · 한국어 · हिन्दी · ไทย · Français · Deutsch · Español · Italiano · Русский · Português (Brasil) · Nederlands · Polski · العربية · فارسی · Türkçe · Tiếng Việt · Bahasa Indonesia
A self-hosted, privacy-first alternative to MyFitnessPal, Flo, Hevy, Shotsy & more. Track nutrition, exercise, body metrics, and health data while keeping full control of your data.
SparkyFitness is a self-hosted fitness tracking platform made up of:
- A backend server (API + data storage)
- A web-based frontend
- Native mobile apps for iOS and Android
- Companion apps for Apple Watch and Wear OS
It stores and manages health data on infrastructure you control, without relying on third party services.
- Nutrition, exercise, hydration, sleep, fasting, mood and body measurement tracking
- Goal setting and daily check-ins
- Apple Watch and Wear OS apps: goals, water, weight, fasting, medications, workouts and watch face complications
- Interactive charts and long-term reports
- Multiple user profiles and family access
- Light and dark themes
- OIDC, TOTP, Passkey, MFA etc.
SparkyFitness is source-available, not open source — the license is non-commercial and requires permission for commercial use.
Most apps do one thing. One good nutrition app runs $40–$100 a year; covering everything SparkyFitness covers means three or four subscriptions, per person, and still no single report across them. SparkyFitness does it in one app, free, for the whole household.
US list prices, 14 Aug 2026. Full cost breakdown →
| SparkyFitness | wger | MyFitnessPal | Cronometer | Hevy | Zero | Flo | Garmin Connect | Google Health | |
|---|---|---|---|---|---|---|---|---|---|
| Self-hosted, your data stays yours | ⭐ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| No subscription, no ads | ✅ | ✅ | ❌ | 🟡 | 🟡 | ❌ | ❌ | ✅ | 🟡 |
| Nutrition, strength, sleep, fasting, cycle & meds in one place* | ⭐ | 🟡 | 🟡 | 🟡 | ❌ | ❌ | ❌ | 🟡 | 🟡 |
| Full history & custom date-range reports | ✅ free | 🟡 | 💰 | 💰 | 💰 | 💰 | 💰 | ✅ | 💰 |
| Wearable & health-platform sync | ✅ 8+ services | ❌ | ✅ | ⭐ | ✅ | 🟡 | 🟡 | 🟡 | ✅ |
| Family sharing with granular permissions | ⭐ 7 permissions | ❌ | ❌ | 🟡 | ❌ | ❌ | ❌ | 🟡 | 🟡 |
| CSV import & free data export | ✅ | 🟡 | 💰 | ✅ | ✅ | 🟡 | 🟡 | 🟡 | ❌ |
| MCP server + bring your own LLM | ⭐ | 🟡 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
⭐ standout • ✅ supported • 🟡 partial • 💰 paid tier only • ❌ not supported
* Sleep stages, HRV and blood glucose are imported from your watch, phone or meter. SparkyFitness stores, analyses and charts them rather than measuring them itself.
This table is written by the project being compared, so read it that way. Checked 14 Aug 2026 against official docs, repos and store listings; some of it is already out of date. If a cell is wrong or unfair to another project, open an issue — corrections that make SparkyFitness look worse are just as welcome.
See the full comparison → — 17 apps across self-hosted, nutrition, specialist and device-ecosystem categories, plus where each of them beats us.
SparkyFitness can sync data from multiple health and fitness platforms:
- Apple Health (iOS)
- Google Health Connect (Android)
- Google Health API
- Fitbit
- Garmin Connect
- Withings
- Polar Flow
- Oura
- Hevy
- OpenFoodFacts
- USDA
- Fatsecret
- Nutritionix
- Mealie
- Tandoor
- Strava (partially tested)
- COROS
- Norish
- Yazio (uses unofficial API)
- Swiss Food Database
- Canadian Nutrient File (Health Canada)
- Swedish Food Agency (Livsmedelsverket)
- Free Exercise DB (Github)
- Wger
- Intervals.ICU
Integrations automatically sync activity data such as steps, workouts, and sleep, along with health metrics like weight and body measurements, to your SparkyFitness server.
SparkyAI provides a conversational interface for logging data and reviewing progress.
- Log food, exercise, body stats, and steps via chat
- Upload food images for automatic meal logging
- Retains conversation history for follow ups
Note: AI features are currently in beta.
Choose one of the two ways to run SparkyFitness:
Get a SparkyFitness server running in minutes using Docker Compose:
# 1. Create a new folder mkdir sparkyfitness && cd sparkyfitness # 2. Download docker-compose.yml curl -L -o docker-compose.yml https://raw.githubusercontent.com/CodeWithCJ/SparkyFitness/main/docker/docker-compose.prod.yml # 3. Set up your .env configuration (Choose one option): # Option A (Recommended): Generate custom .env with 1-click secure keys in browser: # 👉 https://codewithcj.github.io/SparkyFitness/install/env-generator # Option B: Minimal template — 5 values, everything else uses the defaults # docker-compose already applies. Fine for most self-hosted installs. curl -L -o .env https://raw.githubusercontent.com/CodeWithCJ/SparkyFitness/main/docker/.env.simple.example # Option C: Full reference — every supported variable, commented out with its # default. Start here for SSO, SMTP, an external database or a reverse proxy. # curl -L -o .env https://raw.githubusercontent.com/CodeWithCJ/SparkyFitness/main/docker/.env.example # 4. Replace the placeholders (skip if you used Option A — the generator # already filled these in). The server refuses to start while they are left # as-is, and the database would otherwise initialize with a published password. # SPARKY_FITNESS_DB_PASSWORD any strong password # SPARKY_FITNESS_API_ENCRYPTION_KEY openssl rand -hex 32 (64 hex chars) # BETTER_AUTH_SECRET openssl rand -base64 32 (44 chars) # SPARKY_FITNESS_FRONTEND_URL the URL you will open the app at # 5. Start the app docker compose pull && docker compose up -d # Access application at http://localhost:3004
Note: For complete configuration options, reverse proxies, and alternative install methods, visit the Documentation Site.
If you are not a technical user and prefer not to run SparkyFitness on your own server, you can deploy a hosted instance in the cloud using one of the following providers.
Note: These are independent third-party services. We encourage you to explore features provided by each provider to determine the one that best fits your needs.
Quick 2-minute tutorial showing how to install SparkyFitness (self-hosted fitness tracker).
For full installation guides, configuration options, and development docs, please visit our Documentation Site.
- Installation Guide - Deployment and configurations
- Interactive .env Generator - Client-side
.envconfiguration builder - Features Overview - Complete feature documentation
- Development Workflow - Developer guide and contribution process
- iOS App Info and Android App Info
- Post in Github issues/discussion.
- For faster response and get help from other community memebers Join our Discord
FAQ
How do I sync with Garmin?
Enable the Garmin integration service in docker-compose.yml, then link your Garmin Connect account in the SparkyFitness Web UI under External Data Providers settings.
Do you have a mobile app?
Yes, native mobile apps for iOS and Android. Android APKs on GitHub Releases, iOS on App Store with TestFlight beta.
Can I migrate data from Flo, MyFitnessPal, or other apps?
Direct API integration is limited for commercial apps, but SparkyFitness provides CSV import tools for Food, Exercises, and Check-ins. Period, Pregnancy, and Medication history import is planned.
Does the mobile app support HTTP?
No, the mobile app requires HTTPS for camera access, barcodes, and other native features required by Apple and Google app store guidelines.
Can I use my own external PostgreSQL database?
Yes, SparkyFitness supports external PostgreSQL databases with configuration documented in the External Database Guide.
What are the system requirements?
Docker deployments include everything needed. Other deployment methods have their own requirements documented in their respective guides.
Is my data private?
Yes, SparkyFitness does not collect or transmit personal data; everything is stored locally on your server. Third-party services you configure may process data per their policies.
Will SparkyFitness be free forever?
Currently there are no plans to charge self-hosted users, but maintaining the project involves ongoing expenses.
Is SparkyFitness free? Why a custom license?
SparkyFitness is free for self-hosted use but uses a custom non-commercial license to retain commercial rights. Commercial hosting requires permission from the author.
What is SparkyFitness?
SparkyFitness is a comprehensive fitness tracking and management application for monitoring nutrition, exercise, and body measurements with tools for daily progress tracking, goal setting, and insightful reports.
More in Fitness Tracker
tempoSelf-hosted running tracker importing GPX, FIT, CSV from Garmin, Apple Watch, Strava. Workout analytics, maps, heart rate zones, shoe tracking, local data.
wgerSelf-hosted, open-source web app for workout routines, diet plans and weight tracking, with an exercise wiki, REST API and Android/iOS apps syncing via PowerSync.
WingfitSelf-hosted fitness app to plan workouts, track personal records, and integrate Whoop/Apple Watch data with OIDC auth and privacy-first approach.
Workout.coolSelf-hosted, open-source fitness coaching platform to build workout plans, log progress and browse a video exercise database, deployed with Docker Compose and PostgreSQL.
workout.lolSelf-hosted web app to create personalized workout routines by selecting available equipment and target muscles. Open-source, uses Next.js and MongoDB.
workout-trackerA self-hosted, open-source workout tracker for running and other GPX-based activities: upload GPX/TCX/FIT files, maps, stats, heatmap, multi-user.
EndurainSelf-hosted, open-source training log for workouts, equipment and wellness data; a privacy-focused Strava alternative with Garmin sync, GPX/TCX/FIT imports, MFA and SSO.
ExerciseDiaryExercise Diary is a self-hosted, open-source workout tracker with GitHub-style heatmap, body weight charts, statistics, and Bootswatch themes. Run via Docker or binary.
OpenAthleteOpenAthlete is a self-hosted, open-source endurance training platform tracking workouts, CTL/ATL/TSB metrics, syncing with Strava, Garmin, Polar, Suunto.
openGymOpen-source, self-hosted gym and body-weight tracker: plan weekly routines, log guided workouts over 5,600 exercises, sync devices via passkeys, one docker compose up.
ryotRoll your own tracker!
0 comments