selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

SparkyFitness logo

Self-host SparkyFitness

v1.11.0

Self-hosted fitness & nutrition tracker with AI coaching

ReleaseSource AvailableMIT
Updatedlast week
LanguageTypescript
Setup difficultyModerate
MobileNative app
ThemeDark mode
Stars
6 738
Ports
3004 (frontend web interface), 3010 (backend API server)
Requires
PostgreSQL
Docker
codewithcj/sparkyfitness
Install with Docker Compose

What 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

SparkyFitness

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. image

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.

Core Features

  • 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.

How SparkyFitness Compares

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.

Health & Device Integrations

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.

Optional AI Features (Beta)

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.

Installation

Choose one of the two ways to run SparkyFitness:

1. Self-Hosted

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.

2. Cloud (for non-technical users)

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.

Run on PikaPods
Deploy with Zenith

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.

🎥 Video Tutorial

Watch the video

Quick 2-minute tutorial showing how to install SparkyFitness (self-hosted fitness tracker).

Documentation

For full installation guides, configuration options, and development docs, please visit our Documentation Site.

Quick Links
Need Help?
  • Post in Github issues/discussion.
  • For faster response and get help from other community memebers Join our Discord

Star History

Star History Chart

How to install SparkyFitness

Install SparkyFitness with Docker Compose

Docker and Docker Compose
Environment variables
SPARKY_FITNESS_DB_PASSWORD, SPARKY_FITNESS_API_ENCRYPTION_KEY, BETTER_AUTH_SECRET, SPARKY_FITNESS_FRONTEND_URL

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

curl -L -o .env https://raw.githubusercontent.com/CodeWithCJ/SparkyFitness/main/docker/.env.simple.example

4. Replace the placeholders

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

Primary installation method

How to configure SparkyFitness

  • SPARKY_FITNESS_DB_USERsparkyPostgreSQL superuser username
  • SPARKY_FITNESS_DB_PASSWORDPostgreSQL superuser password (required)
  • SPARKY_FITNESS_FRONTEND_URLhttp://localhost:3004Public URL for the frontend (required)
  • SPARKY_FITNESS_API_ENCRYPTION_KEY64-character hex key for API encryption (required)

    values: openssl rand -hex 32

  • BETTER_AUTH_SECRETBase64 secret for session cookies and 2FA/TOTP encryption (required)

    values: openssl rand -base64 32

SparkyFitness releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

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

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…