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
Merge main into v140-db: the website moves to opengym.ch
Duarte Santos904a7cc4ac6e
diff --cc CONTRIBUTING.mdindex de7e360a8,1f99d00a3..f62e32105--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@@ -13,11 -13,10 +13,11 @@@ api/ Backend: server.js on plainweb/ 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.duarte-santos.ch.+ 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.-media/ Exercise images and GIFs, gitignored and fetched at runtime.+catalogue/ The exercise catalogue: one JSON file per exercise, translations in i18n/, and the+ licensed 180 px stills and animations in media/ (catalogue/README.md).```## Running for developmentdiff --cc frontend/src/lib/pt-br-locale.test.jsindex 0d1b6d87f,b6d30378e..66f4b0658--- a/frontend/src/lib/pt-br-locale.test.js+++ b/frontend/src/lib/pt-br-locale.test.js@@@ -41,13 -41,7 +41,13 @@@ describe('Brazilian Portuguese locale'// has to be taught is a number nobody reads. What the numbers stood for is asserted above.// If the hash fails, review the changed keys and wording before accepting a new one. From// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('27bc223129eafceba71df28ed1b4d61c1a5ea62a006e766f590dc6af476431e2')- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('c84272f6c1e153096f55ac39a897d29408cb61444035fac6364d06321e41466e')++ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('e2e4b99baa6c3742de86b2678b2db66bd0006482c37dded9954b3218678b03ec')+ })++ // pt-PT labelled Unpair 'Desfazer': Undo, in Portuguese (it is pt-BR's Undo), on the button that+ // takes an exercise out of a superset. Neither pack may give Unpair a word either of them uses for Undo.+ test('does not label Unpair with an Undo word in either Portuguese pack', () => {+ for (const [name, pack] of [['pt', pt], ['pt-BR', ptBR]]) expect([pt.Undo, ptBR.Undo], name).not.toContain(pack.Unpair)})test('does not leak European Portuguese UI terms', () => {diff --cc website/api.htmlindex 58de4670d,4466f78b9..a9229339a--- a/website/api.html+++ b/website/api.html@@@ -27,9 -27,9 +27,9 @@@<link rel="icon" type="image/png" sizes="512x512" href="icon-512.png"><link rel="icon" type="image/png" sizes="180x180" href="icon-180.png"><link rel="apple-touch-icon" href="icon-180.png">-<link rel="stylesheet" href="styles.css?v=23">+<link rel="stylesheet" href="styles.css?v=22"><script>document.documentElement.className += ' js'</script>- <!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). -->+ <!-- Umami web analytics for opengym.ch (self-hosted, cookieless). --><script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script><style>/* ------------------------------------------------------------- API referencediff --cc website/docs.htmlindex 7b741c76c,4aa445ac4..98636663b--- a/website/docs.html+++ b/website/docs.html@@@ -8,13 -8,13 +8,13 @@@<meta name="theme-color" content="#000000"><meta name="robots" content="index,follow,max-image-preview:large"><link rel="preconnect" href="https://stats.duarte-santos.ch">-<meta property="og:title" content="openGym Docs: the complete reference">+<meta property="og:title" content="openGym Docs — the complete reference"><meta property="og:description" content="The complete openGym reference: every feature, self-hosting with Docker, every setting, the AI Coach, imports, backups, MCP, troubleshooting.">- <meta property="og:image" content="https://opengym.duarte-santos.ch/img/social.jpg">+ <meta property="og:image" content="https://opengym.ch/img/social.jpg"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630">- <meta property="og:image:alt" content="openGym — your training, your data, your server. Two phones showing the home and workout screens.">- <meta property="og:url" content="https://opengym.duarte-santos.ch/docs.html">+ <meta property="og:image:alt" content="openGym: your training, your data, your server. Two phones showing the home and workout screens.">+ <meta property="og:url" content="https://opengym.ch/docs.html"><meta property="og:type" content="website"><meta property="og:site_name" content="openGym"><meta name="twitter:card" content="summary_large_image">@@@ -24,12 -24,12 +24,12 @@@<link rel="icon" type="image/png" sizes="512x512" href="icon-512.png"><link rel="icon" type="image/png" sizes="180x180" href="icon-180.png"><link rel="apple-touch-icon" href="icon-180.png">-<link rel="stylesheet" href="styles.css?v=23">+<link rel="stylesheet" href="styles.css?v=22"><script>document.documentElement.className += ' js'</script>- <!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). -->+ <!-- Umami web analytics for opengym.ch (self-hosted, cookieless). --><script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script><script type="application/ld+json">-{"@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "Is openGym really free?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, free as in cost and as in freedom (AGPL-3.0). No pro tier, no locked features, no ads, and the license keeps every fork open source too."}}, {"@type": "Question", "name": "Why isn't openGym on the Play Store or App Store?", "acceptedAnswer": {"@type": "Answer", "text": "By choice (and on iOS, by Apple's rules for sideloading). Store accounts cost money, impose terms that sit badly with the AGPL, and put a gatekeeper between you and an app whose whole point is that your data is yours. The signed Android APK is a direct download."}}, {"@type": "Question", "name": "Should I pick the mobile app or self-host?", "acceptedAnswer": {"@type": "Answer", "text": "To simply track your training: the mobile app. For data on your own hardware, synced across devices, with profiles for the people you train with: self-host with Docker. The backup file migrates everything between the two, or pair the app to your server."}}, {"@type": "Question", "name": "What's on the openGym roadmap?", "acceptedAnswer": {"@type": "Answer", "text": "A small, themed release roughly every two weeks: a session queue, programmes and phases, AMRAP/%1RM/5-3-1 progression, cardio intervals, then database storage (v1.4.0), better search, OIDC login, a trainer role and an App Store build. The full plan is in ROADMAP.md on GitHub."}}, {"@type": "Question", "name": "Was openGym written with AI?", "acceptedAnswer": {"@type": "Answer", "text": "openGym is developed with Claude Code, Anthropic's coding agent; a large share of the code, tests and docs is drafted that way, and every change is reviewed, tested and released by the maintainer. The app itself calls no AI service unless an admin switches on the optional AI coach."}}, {"@type": "Question", "name": "Where does the exercise database come from?", "acceptedAnswer": {"@type": "Answer", "text": "From hasaneyldrm/exercises-dataset: 1,324 exercises with animations and instructions. The metadata and instruction text are MIT; the images and animations are third-party media that openGym never redistributes. Your instance downloads them from upstream on first run."}}, {"@type": "Question", "name": "What does the AGPL license mean for me?", "acceptedAnswer": {"@type": "Answer", "text": "You can self-host, use, modify and share openGym freely. Only if you run a modified version as a network service must you offer that version's source under the same license. Using or self-hosting it unmodified obliges you to nothing."}}]}+{"@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "Is openGym really free?", "acceptedAnswer": {"@type": "Answer", "text": "Yes — free as in cost and as in freedom (AGPL-3.0). No pro tier, no locked features, no ads, and the license keeps every fork open source too."}}, {"@type": "Question", "name": "Why isn't openGym on the Play Store or App Store?", "acceptedAnswer": {"@type": "Answer", "text": "By choice (and on iOS, by Apple's rules for sideloading). Store accounts cost money, impose terms that sit badly with the AGPL, and put a gatekeeper between you and an app whose whole point is that your data is yours. The signed Android APK is a direct download."}}, {"@type": "Question", "name": "Should I pick the mobile app or self-host?", "acceptedAnswer": {"@type": "Answer", "text": "To simply track your training: the mobile app. For data on your own hardware, synced across devices, with profiles for the people you train with: self-host with Docker. The backup file migrates everything between the two, or pair the app to your server."}}, {"@type": "Question", "name": "What's on the openGym roadmap?", "acceptedAnswer": {"@type": "Answer", "text": "A small, themed release roughly every two weeks: a session queue, programmes and phases, AMRAP/%1RM/5-3-1 progression, cardio intervals, then database storage (v1.4.0), better search, OIDC login, a trainer role and an App Store build. The full plan is in ROADMAP.md on GitHub."}}, {"@type": "Question", "name": "Was openGym written with AI?", "acceptedAnswer": {"@type": "Answer", "text": "openGym is developed with Claude Code, Anthropic's coding agent; a large share of the code, tests and docs is drafted that way, and every change is reviewed, tested and released by the maintainer. The app itself calls no AI service unless an admin switches on the optional AI coach."}}, {"@type": "Question", "name": "Where does the exercise database come from?", "acceptedAnswer": {"@type": "Answer", "text": "The exercise text lives in openGym's own catalogue in the repository, open to fixes and translations by pull request; the oldest entries came from ExerciseDB under MIT. The pictures and animations are licensed from Gym visual for use in openGym only and ship with it at 180 px. Reusing them anywhere else needs your own licence from gymvisual.com."}}, {"@type": "Question", "name": "What does the AGPL license mean for me?", "acceptedAnswer": {"@type": "Answer", "text": "You can self-host, use, modify and share openGym freely. Only if you run a modified version as a network service must you offer that version's source under the same license. Using or self-hosting it unmodified obliges you to nothing."}}]}</script></head><body class="topnav dock">diff --cc website/index.htmlindex 01ff8699b,c32e92cf5..ef9cacb5b--- a/website/index.html+++ b/website/index.html@@@ -48,12 -48,12 +48,12 @@@ try"operatingSystem":"Android, Web","applicationCategory":"HealthApplication","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"license":"https://www.gnu.org/licenses/agpl-3.0.html",- "url":"https://opengym.duarte-santos.ch/",- "image":"https://opengym.duarte-santos.ch/img/social.jpg",- "screenshot":["https://opengym.duarte-santos.ch/img/home.png","https://opengym.duarte-santos.ch/img/workout.png","https://opengym.duarte-santos.ch/img/stats.png"],+ "url":"https://opengym.ch/",+ "image":"https://opengym.ch/img/social.jpg",+ "screenshot":["https://opengym.ch/img/home.png","https://opengym.ch/img/workout.png","https://opengym.ch/img/stats.png"],"softwareVersion":"1.3.10","datePublished":"2026-07-18","dateModified":"2026-10-07","isAccessibleForFree":true,- "featureList":["Weekly plan with a routine per weekday, or a rotation","Guided workouts with rest timer, supersets, warm-up and timed sets","Progression rules: linear, Greyskull LP, double progression","Estimated 1RM, activity heatmap, muscle balance and fatigue maps","Body-weight tracking with a goal line","Edit saved workouts, with photos and videos","Structural Balance between your lifts","Import from Hevy, Strong, FitNotes and Apple Health","Passkey login and multi-device sync when self-hosted","Standalone Android APK with no account","18 languages, including Arabic right-to-left","Optional AI coach on your own API key"],+ "featureList":["Weekly plan with a routine per weekday, or a rotation","Guided workouts with rest timer, supersets, warm-up and timed sets","Progression rules: linear, Greyskull LP, double progression","Estimated 1RM, activity heatmap, muscle balance and fatigue maps","Body-weight tracking with a goal line","Edit saved workouts, with photos and videos","Structural Balance between your lifts","Import from Hevy, Strong, FitNotes and Apple Health","Passkey login and multi-device sync when self-hosted","Standalone Android APK with no account","19 languages, including Arabic right-to-left","Optional AI coach on your own API key"],- "downloadUrl":"https://opengym.duarte-santos.ch/openGym.apk",+ "downloadUrl":"https://opengym.ch/openGym.apk","author":{"@type":"Person","name":"Duarte Santos","url":"https://duarte-santos.ch"},"sameAs":["https://github.com/DuarteSantos8/openGym","https://gitlab.com/DuarteSantos8/opengym","https://discord.gg/e62jY6fwVb"]}</script>