SparkyFitness: Built for Families. Powered by AI. Track food, fitness, water, and health — together. https://codewithcj.github.io/SparkyFitness/
  • TypeScript 94.3%
  • PLpgSQL 2.2%
  • Swift 2.1%
  • JavaScript 0.5%
  • Python 0.3%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-12 13:40:44 -04:00
.agents/skills fix(docker): configure dynamic DNS resolver in nginx to prevent stale backend IP caching 2026-09-27 12:26:44 -04:00
.claude/skills fix(db): clarify extension retention notices, retain helm initdb compatibility, and update pr-submission skill 2026-08-23 13:45:56 -04:00
.gemini agent improvements 2026-07-08 16:33:56 -04:00
.github Merge remote-tracking branch 'origin/main' into feat/watch-edit-workout 2026-10-12 12:15:08 +00:00
.husky adjusted percent Slider to adjust to the Numbers 2026-05-26 13:05:15 +02:00
__tests__ fix(mobile): address CodeRabbit review on German localization 2026-09-17 18:49:21 +02:00
agent-docs feat(mindfulness): add mindfulness session tracking, practice tools, and dashboard insights 2026-10-06 19:54:29 -04:00
docker docs(proxy): clarify that SPARKY_FITNESS_REAL_IP_HEADER requires edge overwriting 2026-10-05 15:35:12 -04:00
docs feat(mobile): add a Lap button to the watch recording page 2026-10-12 13:01:49 +00:00
helm chore: release v1.8.0 2026-10-08 00:13:30 +00:00
nix chore(nix): update pnpm deps hashes 2026-10-02 23:44:18 +00:00
patches fix(mobile): only use the prominent tab when built with the iOS 27 SDK 2026-10-02 18:29:04 +00:00
scripts chore(scripts): reject numeric fourth version segments with leading zeros 2026-09-29 17:07:39 -04:00
shared Merge pull request #2871 from Jerrys-modz/feat/goals-screen 2026-10-12 13:40:44 -04:00
SparkyFitnessFrontend Merge pull request #2871 from Jerrys-modz/feat/goals-screen 2026-10-12 13:40:44 -04:00
SparkyFitnessGarmin fix(garmin): stamp summary before fetch and guard missing captured_at 2026-10-09 15:02:03 +01:00
SparkyFitnessMobile Merge pull request #2871 from Jerrys-modz/feat/goals-screen 2026-10-12 13:40:44 -04:00
SparkyFitnessServer Merge remote-tracking branch 'origin/main' into fix/stair-workouts 2026-10-12 12:39:39 +00:00
src/localization Frontend Update localeRegistry.json 2026-09-20 18:24:56 +08:00
umbrel chore(umbrel): update app package to v1.8.0 2026-10-08 01:41:20 +00:00
.dockerignore feat(admin): move operator policy toggles into settings, migrate docs to VitePress 2026-09-18 23:01:10 -04:00
.gitignore feat(admin): move operator policy toggles into settings, migrate docs to VitePress 2026-09-18 23:01:10 -04:00
.release-please-manifest.json chore: release v1.8.0 2026-10-08 00:13:30 +00:00
AGENTS.md feat(mindfulness): add mindfulness session tracking, practice tools, and dashboard insights 2026-10-06 19:54:29 -04:00
announcement.md Revise announcement for SparkyFitness 2026-10-12 12:23:56 -04:00
CHANGELOG.md chore: release v1.8.0 2026-10-08 00:13:30 +00:00
CLAUDE.md Add Jest testing infrastructure to enable test execution 2026-01-25 11:15:26 +00:00
CONTRIBUTING.md ci(release): derive versions from Conventional Commits with release-please 2026-09-30 12:06:53 +02:00
DB Backup.cmd Fix for Steps showing from previous days instead of current day 2025-10-23 10:44:20 -04:00
db_backup.sh feature: Added Global Food & Exercise data provider. 2026-06-20 18:05:48 -04:00
db_schema_backup.sql chore: sync db_schema_backup.sql with migrations 2026-10-08 21:12:50 +00:00
dev-start.bat dev docker files 2026-02-02 21:34:08 -05:00
flake.lock fix(nix): update nixpkgs so pnpm 10 is no longer the insecure 10.34.0 2026-10-05 03:20:21 -03:00
flake.nix fix(nix): use pnpm_10_latest when nixpkgs has it 2026-10-05 17:02:20 -03:00
LICENSE WIP Meal & Meal Plan Features 2025-07-12 13:41:35 -04:00
package.json chore: add --log-level warn to prettier format scripts to suppress unchanged files 2026-09-21 23:01:43 -04:00
pnpm-lock.yaml feat(mobile): record GPS activities (walk, run, ride) 2026-10-10 19:52:19 +00:00
pnpm-workspace.yaml fix(mobile): keep Add as the detached trailing tab on the iOS 27 SDK 2026-10-02 18:23:21 +00:00
README.md docs: add Canadian Nutrient File guide and provider documentation 2026-10-04 22:01:53 -04:00
release-please-config.json ci(release): derive versions from Conventional Commits with release-please 2026-09-30 12:06:53 +02:00
start_garmin_microservice.bat Updated withing to save json as mockup files. renamed few other variables used by developers 2026-02-09 18:32:39 -05:00
start_garmin_microservice.sh refactor(db): consolidate health telemetry into health_metric_samples & fix weight unit conversions (#1990) 2026-08-03 13:12:56 -04:00
version.txt chore: release v1.8.0 2026-10-08 00:13:30 +00:00

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

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
  • 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)
  • Free Exercise DB (Github)
  • Wger

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.

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

Translations

Weblate Translations

Translation status

Translation status

Repository activity

Alt

Contributors

⚠️ Known Issues / Beta Features ⚠️

SparkyFitness is under active development. Breaking changes may occur between releases.

  • Auto-updating containers is not recommended
  • Always review release notes before upgrading

The following features are currently in beta and may not have been thoroughly tested. Expect potential bugs or incomplete functionality:

  • AI Chatbot
  • Family & Friends access
  • API documentation