diff --git a/README.md b/README.md index 37de70e..12182b0 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. ## Roadmap diff --git a/api/package.json b/api/package.json index a99a75c..13a64b0 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.png index 997edb5..0656c6d 100644 Binary files a/assets/screenshots/home.png and b/assets/screenshots/home.png differ diff --git a/assets/screenshots/library.png b/assets/screenshots/library.png index a8a2388..ca2e427 100644 Binary files a/assets/screenshots/library.png and b/assets/screenshots/library.png differ diff --git a/assets/screenshots/plan.png b/assets/screenshots/plan.png index 9dc6fc3..5976b86 100644 Binary files a/assets/screenshots/plan.png and b/assets/screenshots/plan.png differ diff --git a/assets/screenshots/stats.png b/assets/screenshots/stats.png index 7c0b567..e11c02f 100644 Binary files a/assets/screenshots/stats.png and b/assets/screenshots/stats.png differ diff --git a/assets/screenshots/workout.png b/assets/screenshots/workout.png index ab0c9c3..9d45e80 100644 Binary files a/assets/screenshots/workout.png and b/assets/screenshots/workout.png differ diff --git a/docs/SELF_HOSTING.md b/docs/SELF_HOSTING.md index b1ced39..45d2174 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. Backups diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 84abf70..35d9dc6 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": {