Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Refresh README, self-hosting docs and dependencies for v1.2.0
Duarte Santos3c5bcd5957e8
diff --git a/README.md b/README.mdindex 37de70e6a..12182b037 100644--- a/README.md+++ b/README.md@@ -52,9 +52,13 @@ as a home-screen app, passkey sign-in, offline support, sync across your phone a- ▶️ **Guided workouts** — it knows what day it is and starts today's session; asks your body weight first, pre-fills your weights from last time, rest timer, PR detection, per-exercise weight tracking- 🔗 **Supersets** — build them, and log them back-to-back with a rest only after the pair- 🏃 **Cardio** — log time + speed, not just weight × reps+- 🔧 **Filter by equipment** — narrow the library to what you actually own; the options adapt to what you've picked, so every combination on screen has results behind it+- ✨ **Your own exercises** — a name and a body part is enough; they behave like built-in ones everywhere, with an optional description instead of an animation- 🟩 **Activity heatmap** — a GitHub-style year view, shaded by time spent training+- 🔔 **Push notifications** — rest-timer alerts even with the app closed, plus an optional reminder on days you have a workout planned but haven't logged one. Opt in per profile; keys are generated on first run, nothing to configure- 🔑 **Passkeys, not passwords** — Face ID / Touch ID / fingerprint login; each profile keeps its own data, synced across devices-- 🎨 **Themes** — light/dark + 8 accent colors, saved to your profile+- 🛠️ **Admin dashboard** (optional) — for whoever runs the instance: who's training right now, per-user history, disable accounts, and invite-only signup. Off by default, so a fresh instance stays open with no admin+- 🎨 **Designed, not assembled** — light/dark themes and 8 accent colors saved to your profile, over a hand-drawn icon set instead of emoji, so it looks the same on every phone- 🌍 **12 languages** — full UI translation (EN, DE, ES, FR, IT, PT, PL, TR, RU, ZH, KO, HI); exercise instructions localized in 10 of them, loaded on demand so the app stays fast- 📦 **Yours to keep** — one-tap JSON export/import, guest mode, **no telemetry**@@ -108,12 +112,16 @@ server — they stay in your phone's secure hardware / your password manager.All via `.env` (see `.env.example`):-| Variable | What it is | Default |-|------------|-----------------------------------|-------------------------|-| `RP_ID` | Hostname passkeys are bound to | `localhost` |-| `ORIGIN` | Full URL the app is served from | `http://localhost:8080` |-| `WEB_PORT` | Host port for the web UI | `8080` |-| `RP_NAME` | Name shown in the passkey prompt | `openGym` |+| Variable | What it is | Default |+|---------------|------------------------------------------------------|-------------------------|+| `RP_ID` | Hostname passkeys are bound to | `localhost` |+| `ORIGIN` | Full URL the app is served from | `http://localhost:8080` |+| `WEB_PORT` | Host port for the web UI | `8080` |+| `RP_NAME` | Name shown in the passkey prompt | `openGym` |+| `ADMIN_UIDS` | User ids that get the admin dashboard (comma-separated) | *(none)* |+| `INVITE_ONLY` | Require an invite code to create a profile | *(off)* |++Push notification keys are generated on first run and saved to `./data/vapid.json` — nothing to set.## Roadmapdiff --git a/api/package.json b/api/package.jsonindex a99a75c72..13a64b048 100644--- a/api/package.json+++ b/api/package.json@@ -1,6 +1,6 @@{"name": "gym-api",- "version": "1.1.1",+ "version": "1.2.0","private": true,"type": "module","main": "server.js",diff --git a/assets/screenshots/home.png b/assets/screenshots/home.pngindex 997edb57b..0656c6d37 100644Binary files a/assets/screenshots/home.png and b/assets/screenshots/home.png differdiff --git a/assets/screenshots/library.png b/assets/screenshots/library.pngindex a8a238889..ca2e42794 100644Binary files a/assets/screenshots/library.png and b/assets/screenshots/library.png differdiff --git a/assets/screenshots/plan.png b/assets/screenshots/plan.pngindex 9dc6fc32b..5976b86c8 100644Binary files a/assets/screenshots/plan.png and b/assets/screenshots/plan.png differdiff --git a/assets/screenshots/stats.png b/assets/screenshots/stats.pngindex 7c0b5675f..e11c02ffb 100644Binary files a/assets/screenshots/stats.png and b/assets/screenshots/stats.png differdiff --git a/assets/screenshots/workout.png b/assets/screenshots/workout.pngindex ab0c9c328..9d45e8080 100644Binary files a/assets/screenshots/workout.png and b/assets/screenshots/workout.png differdiff --git a/docs/SELF_HOSTING.md b/docs/SELF_HOSTING.mdindex b1ced3925..45d21741a 100644--- a/docs/SELF_HOSTING.md+++ b/docs/SELF_HOSTING.md@@ -87,9 +87,25 @@ Visit `https://gym.example.com`, create your profile, and add it to your home sc## 4. Multiple users-Anyone who can reach the URL can create their own profile — each gets isolated data. There's no-admin/invite system by design; if you want it private, keep it behind your VPN, an auth proxy-(Authelia, Cloudflare Access…), or just don't share the URL.+Anyone who can reach the URL can create their own profile — each gets isolated data. That's the+default: open signup, no admin.++If you'd rather control who gets in, two optional settings in `.env` turn that around:++```bash+ADMIN_UIDS=youruserid # comma-separated; these users get the admin dashboard+INVITE_ONLY=1 # new profiles need an invite code+```++Register your own passkey profile first, then find your id in `./data/db.json` under `users[].id`+and put it in `ADMIN_UIDS`. You'll get an **Admin dashboard** link in Settings: who's training+right now, each user's workout history and body weight, the ability to disable an account (signed+out and locked out everywhere until you re-enable it), and — with `INVITE_ONLY=1` — generating and+revoking invite codes. Existing accounts keep working when you switch invite-only on. Admin access+is gated by your passkey and enforced server-side, so it needs no separate login.++Prefer to keep the whole thing off the open internet? A VPN or an auth proxy (Authelia, Cloudflare+Access…) in front still works, and composes with the above.## 5. Backupsdiff --git a/frontend/package-lock.json b/frontend/package-lock.jsonindex 84abf70d5..35d9dc6b7 100644--- a/frontend/package-lock.json+++ b/frontend/package-lock.json@@ -1,13 +1,13 @@{- "name": "opengym",- "version": "1.0.0",+ "name": "opengym-frontend",+ "version": "1.2.0","lockfileVersion": 3,"requires": true,"packages": {"": {- "name": "opengym",- "version": "1.0.0",- "license": "ISC",+ "name": "opengym-frontend",+ "version": "1.2.0",+ "license": "AGPL-3.0-or-later","dependencies": {"react": "^19.2.7","react-dom": "^19.2.7",@@ -336,9 +336,9 @@}},"node_modules/@vitejs/plugin-react": {- "version": "6.0.3",- "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.3.tgz",- "integrity": "sha512-vmFvco5/QuC2f9Oj+wTk0+9XeDFkHxSamwZKYc7MxYwKICfvUvlMhqKI0VuICPltGqh1neqBKDvO4kes1ya8vg==",+ "version": "6.0.4",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.4.tgz",+ "integrity": "sha512-XcCQz0TBpBgljhj0gMuuDj49i6Ytqh5q1osT/Gp5uAVJUCTWxyskk/l1jwYYiu2xcNHHipdMz40EGfM1VdamVg==","dev": true,"dependencies": {"@rolldown/pluginutils": "^1.0.1"@@ -726,22 +726,22 @@}},"node_modules/react": {- "version": "19.2.7",- "resolved": "https://registry.npmjs.org/react/-/react-19.2.7.tgz",- "integrity": "sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==",+ "version": "19.2.8",+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.8.tgz",+ "integrity": "sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==","engines": {"node": ">=0.10.0"}},"node_modules/react-dom": {- "version": "19.2.7",- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.7.tgz",- "integrity": "sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ==",+ "version": "19.2.8",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.8.tgz",+ "integrity": "sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==","dependencies": {"scheduler": "^0.27.0"},"peerDependencies": {- "react": "^19.2.7"+ "react": "^19.2.8"}},"node_modules/react-router": {