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
CONTRIBUTING: three API dependencies, the watch, mirrored rules, the changelog
Duarte Santos460822fad4d6
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 206d9a337..0e8b1b0d3 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -7,19 +7,23 @@ to keep it that way: easy to read, easy to self-host.```frontend/ React + Vite app (src/views, src/components, src/store, src/lib). Builds to static files.- android/ and ios/ are the Capacitor shells for the standalone app (docs/MOBILE.md).-api/ Backend: server.js on plain node:http, two dependencies (@simplewebauthn/server, web-push).- coach/ is the optional AI coach; openapi.yaml documents every route.+ android/ and ios/ are the Capacitor shells for the phone apps, ios/ with the Apple+ Watch app and the widgets (docs/MOBILE.md).+api/ Backend: server.js on plain node:http, three dependencies (@simplewebauthn/server,+ web-push, undici). coach/ is the optional AI coach; openapi.yaml documents every route.web/ Multi-stage Dockerfile (builds the frontend, serves it with nginx) and the nginx template.mcp/ Optional read-only MCP server for LLM clients (Claude Desktop, Cursor, ...). Not in theDocker build; it only runs when a client spawns it. See mcp/README.md.website/ The static project site at opengym.ch.kubernetes/ Example manifests (docs/SELF_HOSTING_KUBERNETES.md).docs/ User and operator guides (index: docs/README.md); docs/dev/ has feature design notes.+scripts/ Build and release helpers (scripts/README.md).catalogue/ The exercise catalogue: one JSON file per exercise, translations in i18n/, and thelicensed 180 px stills and animations in media/ (catalogue/README.md).```+The [architecture overview](docs/ARCHITECTURE.md) explains how the pieces talk to each other.+## Running for development```bash@@ -34,8 +38,9 @@ cd mcp && npm test## Guidelines-- **Keep it dependency-light.** The frontend uses React, React Router and Zustand; `api/` has two- dependencies. A new dependency on either side is a hard sell.+- **Keep it dependency-light.** The frontend uses React, React Router and Zustand (plus the+ Capacitor plugins for the phone apps); `api/` has three dependencies. A new dependency on either+ side is a hard sell.- **Match the style.** Small components, clear names, comments only where the *why* isn't obvious.State lives in the Zustand store (`src/store`), pure helpers in `src/lib`. There is no linter orformatter config, so follow the surrounding code.@@ -51,10 +56,17 @@ cd mcp && npm testsession back, belongs in a pure helper in `src/lib` with a test beside it. These rules are easyto get subtly wrong and nearly impossible to check by clicking; the progression engine has hadreal bugs that only a test caught.+- **Some rules exist twice on purpose**, once in `frontend/src/lib/` and once in `api/` (sync,+ queue, nudge, routine icons), because the API image can't import the frontend. Change both in the+ same pull request; [the list is here](docs/ARCHITECTURE.md#code-that-exists-twice-on-purpose).+- **Leave CHANGELOG.md alone.** Release notes are written at release time, from the merged pull+ requests.- **New UI strings go into every locale** in `frontend/src/locales/`. English is the source- language and has no file. `node scripts/check-locales.mjs` (run in CI) flags a key that is- missing, blank or has lost a `{n}` placeholder. Portuguese (Brazil) inherits from Portuguese- (Portugal) and has its own guard test.+ language and has no file. `cd frontend && node scripts/check-locales.mjs` (run in CI) flags a+ key that is missing, blank or has lost a `{n}` placeholder. Portuguese (Brazil) inherits from+ Portuguese (Portugal) and has its own guard test: a new Portuguese string either gets a Brazilian+ override or is accepted as shared, then `node scripts/pt-br-inheritance-fingerprint.mjs` prints+ the numbers the test expects.## Using AI tools