Rebrand to KuentaGYM, and start a new profile in pounds and Spanish

The app is now KuentaGYM everywhere a user can see it, and a fresh profile no
longer starts on upstream's English/kg defaults. Both are this fork's decisions,
so both are pinned by tests rather than left to a find-and-replace.

Rename (1,270 references, 149 files)

- Visible surfaces: the Login/Home/mobile-onboarding wordmark, the Settings
  version line, the printed plan, the PWA title + manifest, and the 17 branded
  strings across all 14 locale packs.
- Infrastructure: repo links, the container images and the release endpoints now
  name git.dploy.lol/dsantillan/kuentagym; .gitea/workflows/docker-publish.yml
  publishes to this forge's registry instead of gitea.com.
- The Android/iOS application id stays ch.duartesantos.opengym on purpose:
  changing it would make the mobile app a different app that could never update
  an installed copy.

Three things the mechanical pass would have broken, fixed here

- The update check asked gitlab.com for upstream's releases and would have
  installed upstream's APK, putting the old name back on the phone. It now reads
  this fork's Gitea releases API (the assets shape differs), with the tests
  rewritten to the payload Gitea actually returns.
- Renaming the mobile state/pairing files (opengym-state.json,
  opengym-remote.json) would lose the on-device copy of a history whose WebView
  storage may have been evicted, and silently unpair the device. Both are read
  under their old names and written forward under the new ones.
- Renaming the exported plan-file marker (openGym_plan) rejected every plan
  shared before the rename as "not a plan file". Both markers are accepted.

Defaults: pounds and Spanish

- DEF.unit = 'lb', DEF.lang = 'es', plus every fallback that independently
  assumed en/kg (the <html lang> attribute, the Settings pickers, the Store, the
  MCP, the Coach payload).
- Server-generated push copy existed only in English and pt-BR, so a Spanish
  profile would have been notified in English; Spanish added.
- The demo seed states unit: 'kg' — its seeded numbers are kilograms, and
  inheriting the new default would have introduced an 82.4 lb lifter benching 60.
- The module-level language in i18n-core stays English: it is the only language
  whose strings need no pack, so `t()`, dates, numbers and lists agree before a
  pack loads. Starting there on 'es' formats a Spanish-shaped UI with English
  strings.

Also
- api/package.json's test glob missed push-messages.test.js and
  verify-error.test.js, which sat beside the modules they cover and never ran.
- README, docs/, website/ and the issue templates no longer describe upstream's
  GitLab/GitHub pipeline, Discord, sponsorship or public demo as if they were
  this fork's; upstream history and attribution are preserved (NOTICE.md).
This commit is contained in:
dsantillan committed 2026-09-21 14:29:54 -04:00
1 parent f91cde15a1
commit 87bfd6d4c4
152 files changed
+1784 -1604

No files matched your search

+28 -18
View File
@@ -1,34 +1,36 @@
# opengym.duarte-santos.ch
# KuentaGYM website
Source of the project website — plain hand-written HTML/CSS/JS, no build step,
served by nginx.
Source of the project website — plain hand-written HTML/CSS/JS, no build step, served as
static files. It is not part of any pipeline here: `.gitea/workflows/` builds and pushes the
container images and nothing else, and this site is not deployed for this fork. Every page's
canonical and `og:` URLs assume it is served alongside the app at `https://gym.dploy.lol`.
Not in this folder (added at deploy time):
Not in this folder (added when the pages are published):
- `img/` — built by `build-images.sh <dist>/img`: the five screenshots from
`../assets/screenshots/` as PNG plus WebP at 480/600/1170 px (served through `<picture>`),
`banner.png`, and `social.jpg` (1200×630, the og:image on every page)
- `icon-180.png` / `icon-512.png` — copied from `../frontend/public/` (the same
icons the PWA uses, so the browser tab, home screen and app all match)
- `openGym.apk` — the signed release build (see `../docs/MOBILE.md`)
- `demo/` — the browser-only demo build of the app, embedded in the `#demo` section and
reachable on its own at `/demo/`. Built from `../frontend` with `VITE_DEMO=1` and the
jsDelivr media bases (see the `pages` job in `../.gitlab-ci.yml`), so the ~140 MB
of exercise media stays out of it. It has to live on this host: the site frames it, and
`X-Frame-Options: SAMEORIGIN` would block it from anywhere else.
There is no `KuentaGYM.apk` and no `demo/` here. This fork publishes no APK, so the mobile
app is whatever you build from `../frontend` yourself (see `../docs/MOBILE.md`); there is no
public demo instance, so nothing is framed or linked as one. Both belonged to the upstream
project, and the sections and links that promised them are gone.
Navigation is a topic rail (`.side`): one title/subtitle list of everything on the
site, a fixed column beside the page from 1300 px up and the hamburger sheet below
that, with a scrollspy lighting the section under the reader. The top bar keeps
only the brand, GitHub, Discord and the download button.
only the brand, the source repository and the "Get started" button.
`site.js` carries five independent pieces, each one failing soft so the page is
complete without any of them: the topic-rail sheet, its scrollspy, the scroll
reveals, the demo iframe (injected only once the frame is on screen, and never
below 700 px, where the CSS swaps it for an "open it full-screen" card), and the
two things that come from the public api.github.com at view time — the star/issue
counts and the About page's release timeline. Both wait for `requestIdleCallback` so
they never compete with the hero image.
`site.js` carries the pieces that are left, each failing soft so the page is complete
without any of them: the two panel controllers (header sheet, contents drawer), the
scrollspy and the chapter groups, the scroll reveals, the feature-rail arrows and the
hero intro handoff. It makes **no** third-party request. The repo star/issue counts, the
Discord member count and the About page's release timeline were removed with the upstream
links they belonged to: they read `api.github.com` and `discord.com`, which know nothing
about this fork's repository — and the About page's timeline is now static, marked up in
the HTML.
Every page starts with a "Skip to content" link (`.skip`, visible on focus) that
targets `<main id="main">`. Screenshots change under the same file name, and nginx
@@ -40,6 +42,14 @@ never hand-edit `api.html`, the next run overwrites it. The page is static HTML
site's own design (no Swagger UI, nothing rendered at view time); the only script of its
own it carries is the contents drawer and the card expand/collapse.
> **`api.html` is generated — never edit it by hand.** Its whole chrome (nav, nav sheet, contents
> rail, footer, the "Get started" button, the no-analytics comment, the cache-busters, the spec
> download link) lives in `scripts/build-api-docs.mjs`, outside this folder, which renders the page
> from `../api/openapi.yaml`. Change the generator, then re-run
> `node scripts/build-api-docs.mjs`; anything typed into `api.html` is overwritten wholesale. Keep
> the four pages' `?v=N` values in step when `styles.css` or `site.js` changes — three pages carry
> their own tags, and the generator writes api.html's.
`styles.css` and `site.js` are cache-busted with `?v=N` — nginx serves the site
with `no-cache, must-revalidate`, but the query bump is what saves a Cloudflare
edge from handing out an old stylesheet with new markup. Bump it on every change.
+48 -49
View File
@@ -3,31 +3,30 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>About — openGym</title>
<meta name="description" content="The story behind openGym: a gym tracker that started as a tiny personal app on a homelab server and grew into an open-source project.">
<title>About — KuentaGYM</title>
<meta name="description" content="KuentaGYM is a rebranded, self-hosted fork of openGym — the story of the gym tracker that started as a tiny personal app on a homelab server.">
<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="About openGym">
<meta property="og:description" content="How openGym came to be: a tracker built for one user, open-sourced under the AGPL, with every release documented.">
<meta property="og:image" content="https://opengym.duarte-santos.ch/img/social.jpg">
<meta property="og:title" content="About KuentaGYM">
<meta property="og:description" content="KuentaGYM is a rebranded, self-hosted fork of openGym: a tracker built for one user, open-sourced under the AGPL, documented in the open.">
<meta property="og:image" content="https://gym.dploy.lol/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/about.html">
<meta property="og:image:alt" content="KuentaGYM — your training, your data, your server. Two phones showing the home and workout screens.">
<meta property="og:url" content="https://gym.dploy.lol/about.html">
<meta property="og:type" content="website">
<meta property="og:site_name" content="openGym">
<meta property="og:site_name" content="KuentaGYM">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="About openGym">
<meta name="twitter:image" content="https://opengym.duarte-santos.ch/img/social.jpg">
<link rel="canonical" href="https://opengym.duarte-santos.ch/about.html">
<meta name="twitter:title" content="About KuentaGYM">
<meta name="twitter:image" content="https://gym.dploy.lol/img/social.jpg">
<link rel="canonical" href="https://gym.dploy.lol/about.html">
<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=19">
<link rel="stylesheet" href="styles.css?v=20">
<script>document.documentElement.className += ' js'</script>
<!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). -->
<script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script>
<!-- No analytics and no third-party requests: every page here is static and loads
only files from this host. -->
</head>
<body class="topnav">
<a class="skip" href="#main">Skip to content</a>
@@ -35,19 +34,16 @@
<nav><div class="wrap nav-in">
<a class="brand" href="/">
<img src="icon-180.png" alt="" width="24" height="24">
openGym
KuentaGYM
</a>
<div class="nav-quick">
<a class="ql site" href="/#features">Features</a>
<a class="ql site" href="/#screens">Screenshots</a>
<a class="ql site" href="/#demo">Demo</a>
<a class="ql site" href="/docs.html">Docs</a>
<a class="ql site" href="/api.html">API</a>
<a class="ql site" href="/about.html">About</a>
<a class="ql" href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub <span data-gh="stars"></span></a>
<a class="ql" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord <span data-dc="members"></span></a>
<a class="ql coffee" href="https://buymeacoffee.com/duartesantos" rel="noopener" aria-label="Buy me a coffee"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"/></svg><span>Buy me a coffee!</span></a>
<a class="cta" href="/#download">Download</a>
<a class="ql" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source</a>
<a class="cta" href="/#download">Get started</a>
</div>
<button class="nav-toggle" id="navtoggle" aria-expanded="false" aria-controls="sitemenu" aria-label="Menu">
<span></span><span></span>
@@ -61,13 +57,10 @@
<div class="nl-rows">
<a class="nl" href="/#features">Features</a>
<a class="nl" href="/#screens">Screenshots</a>
<a class="nl" href="/#demo">Demo</a>
<a class="nl" href="/docs.html">Docs</a>
<a class="nl" href="/api.html">API</a>
<a class="nl" href="/about.html">About</a>
<a class="nl" href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub <span data-gh="stars"></span></a>
<a class="nl" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord <span data-dc="members"></span></a>
<a class="nl coffee" href="https://buymeacoffee.com/duartesantos" rel="noopener">Buy me a coffee! <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"/></svg></a>
<a class="nl" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source</a>
</div>
</div>
@@ -86,18 +79,24 @@
<button class="rail-close" aria-label="Close contents"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M5 5l14 14M19 5L5 19"/></svg></button>
</div>
<p class="side-label">On this page</p>
<a class="side-link" href="#milestones-h"><b>Milestones</b><span>Every release, straight from GitHub</span></a>
<a class="side-link" href="#milestones-h"><b>Milestones</b><span>How the app got here</span></a>
<a class="side-link" href="#principles"><b>Principles</b><span>The rules that don't move</span></a>
<p class="side-label">More</p>
<a class="side-link" href="/"><b>Home</b><span>The tour, the demo, the download</span></a>
<a class="side-link" href="/"><b>Home</b><span>The tour, and how to run it</span></a>
<a class="side-link" href="docs.html"><b>Docs</b><span>Install, self-host, import</span></a>
<a class="side-link" href="api.html"><b>API</b><span>Every route, as an OpenAPI spec</span></a>
</aside>
<main id="main" class="wrap prose">
<h1>About openGym</h1>
<p class="lead">openGym was not planned as a product. It started as a tiny app built for
exactly one user: me.</p>
<h1>About KuentaGYM</h1>
<p class="lead">KuentaGYM is a rebranded, self-hosted fork of
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">openGym</a> by Duarte
Santos. The app, its features and the story below are his work; this fork changes the name
and where it is deployed, nothing else.</p>
<h2 id="story-h">The story, in the author's words</h2>
<p>openGym was not planned as a product. It started as a tiny app built for exactly one
user: me.</p>
<p>I wanted three things at the gym: log my workouts, track my body weight, and see whether
any of it was going anywhere. Every app I tried wanted a subscription, an account, or my
@@ -115,8 +114,8 @@
along the way the little page was rewritten into a proper React app, learned 14 languages,
grew a muscle map that reads three ways (where the volume went, what is still recovering,
and what each muscle is actually strong at), picked up importers for FitNotes, Strong,
Hevy and Apple Health, and finally became a native Android app you can install from
this site.</p>
Hevy and Apple Health, and finally became a native Android app, built from the Capacitor
shells in the repository.</p>
<p>In July 2026 I open-sourced the whole thing under the <b>AGPL</b>. The license is the
point, not a footnote: your training data should be yours, the software that holds it
@@ -126,25 +125,27 @@
<p>openGym still runs on the same homelab server it started on, and I still log every
session with it. That is the quality bar: I am the first user of every release.</p>
<p class="who">— <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a></p>
<p class="who">— <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a>, on the
upstream project</p>
<h2 id="milestones-h">Milestones</h2>
<!-- The releases below are a static fallback: site.js replaces them with the live list
of published GitHub releases, so this page never needs manual updating. Only the
first entry (pre-open-source) is permanent. -->
<!-- Static, like the rest of this page: the fork publishes no separate release feed, and
an unauthenticated GitHub API call has nothing to read for a repo hosted on
git.dploy.lol. -->
<ul class="tl" id="milestones">
<li><b>The personal app</b><span class="when">early summer 2026</span>
<p>A hand-written vanilla-JS page on my own server. One user, zero ambitions.</p></li>
<li data-fallback><b>v1.0.0 — open-sourced</b><span class="when">July 20, 2026</span>
<p>A hand-written vanilla-JS page on the author's own server. One user, zero ambitions.</p></li>
<li><b>v1.0.0 — open-sourced</b><span class="when">July 20, 2026</span>
<p>Docker Compose self-hosting, passkey profiles, guided workouts, a 1,324-exercise
library. AGPL from day one.</p></li>
<li data-fallback><b>Every release since</b><span class="when">ongoing</span>
<p>See the full list on <a href="https://github.com/DuarteSantos8/openGym/releases" rel="noopener">GitHub → Releases</a>.</p></li>
<li><b>Every release since</b><span class="when">ongoing</span>
<p>This fork is cut from that history; upstream keeps the
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">full list of releases</a>.</p></li>
</ul>
<h2 id="principles">Principles</h2>
<ul>
<li><b>Your data is yours.</b> Local-first, one-file backups, no lock-in. Leaving openGym
<li><b>Your data is yours.</b> Local-first, one-file backups, no lock-in. Leaving KuentaGYM
must always be one export away.</li>
<li><b>No telemetry, ever.</b> If a feature needs analytics to justify itself, it does
not ship.</li>
@@ -155,23 +156,21 @@
</ul>
<div class="actions" style="margin:38px 0 0">
<a class="btn" href="/#download">Get openGym</a>
<a class="link" href="https://github.com/DuarteSantos8/openGym" rel="noopener">Star it on GitHub</a>
<a class="btn" href="/#download">Get KuentaGYM</a>
<a class="link" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Browse the source</a>
</div>
</main>
<footer><div class="wrap foot">
<span class="c">openGym · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a></span>
<span class="c">KuentaGYM · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a> · a rebranded fork of <a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">openGym</a></span>
<div class="links">
<a href="docs.html">Docs</a>
<a href="about.html">About</a>
<a href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub</a>
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab mirror</a>
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
<a href="/#download">Download</a>
<a href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source code</a>
<a href="/#download">Get started</a>
</div>
</div></footer>
<script src="site.js?v=19" defer></script>
<script src="site.js?v=20" defer></script>
</body>
</html>
+31 -40
View File
@@ -1,36 +1,35 @@
<!DOCTYPE html>
<!-- GENERATED FILE - do not edit by hand.
Built by scripts/build-api-docs.mjs from api/openapi.yaml (openGym API v1.3.8).
Built by scripts/build-api-docs.mjs from api/openapi.yaml (KuentaGYM API v1.3.8).
Regenerate with: node scripts/build-api-docs.mjs -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>API — openGym</title>
<meta name="description" content="The complete openGym HTTP API, documented as an OpenAPI spec: passkey auth, state sync, push notifications, pairing and admin routes.">
<title>API — KuentaGYM</title>
<meta name="description" content="The complete KuentaGYM HTTP API, documented as an OpenAPI spec: passkey auth, state sync, push notifications, pairing and admin routes.">
<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 API reference">
<meta property="og:description" content="The complete openGym HTTP API as an OpenAPI spec: passkey auth, state sync, push notifications, pairing and admin routes.">
<meta property="og:image" content="https://opengym.duarte-santos.ch/img/social.jpg">
<meta property="og:title" content="KuentaGYM API reference">
<meta property="og:description" content="The complete KuentaGYM HTTP API as an OpenAPI spec: passkey auth, state sync, push notifications, pairing and admin routes.">
<meta property="og:image" content="https://gym.dploy.lol/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/api.html">
<meta property="og:image:alt" content="KuentaGYM — your training, your data, your server. Two phones showing the home and workout screens.">
<meta property="og:url" content="https://gym.dploy.lol/api.html">
<meta property="og:type" content="website">
<meta property="og:site_name" content="openGym">
<meta property="og:site_name" content="KuentaGYM">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="openGym API reference">
<meta name="twitter:image" content="https://opengym.duarte-santos.ch/img/social.jpg">
<link rel="canonical" href="https://opengym.duarte-santos.ch/api.html">
<meta name="twitter:title" content="KuentaGYM API reference">
<meta name="twitter:image" content="https://gym.dploy.lol/img/social.jpg">
<link rel="canonical" href="https://gym.dploy.lol/api.html">
<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=19">
<link rel="stylesheet" href="styles.css?v=20">
<script>document.documentElement.className += ' js'</script>
<!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). -->
<script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script>
<!-- No analytics and no third-party requests: every page here is static and loads
only files from this host. -->
<style>
/* ------------------------------------------------------------- API reference
Generated page — the reference itself is static HTML in the site's design.
@@ -158,19 +157,16 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
<nav><div class="wrap nav-in">
<a class="brand" href="/">
<img src="icon-180.png" alt="" width="24" height="24">
openGym
KuentaGYM
</a>
<div class="nav-quick">
<a class="ql site" href="/#features">Features</a>
<a class="ql site" href="/#screens">Screenshots</a>
<a class="ql site" href="/#demo">Demo</a>
<a class="ql site" href="/docs.html">Docs</a>
<a class="ql site" href="/api.html">API</a>
<a class="ql site" href="/about.html">About</a>
<a class="ql" href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub <span data-gh="stars"></span></a>
<a class="ql" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord <span data-dc="members"></span></a>
<a class="ql coffee" href="https://buymeacoffee.com/duartesantos" rel="noopener" aria-label="Buy me a coffee"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"/></svg><span>Buy me a coffee!</span></a>
<a class="cta" href="/#download">Download</a>
<a class="ql" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source</a>
<a class="cta" href="/#download">Get started</a>
</div>
<button class="nav-toggle" id="navtoggle" aria-expanded="false" aria-controls="sitemenu" aria-label="Menu">
<span></span><span></span>
@@ -184,13 +180,10 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
<div class="nl-rows">
<a class="nl" href="/#features">Features</a>
<a class="nl" href="/#screens">Screenshots</a>
<a class="nl" href="/#demo">Demo</a>
<a class="nl" href="/docs.html">Docs</a>
<a class="nl" href="/api.html">API</a>
<a class="nl" href="/about.html">About</a>
<a class="nl" href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub <span data-gh="stars"></span></a>
<a class="nl" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord <span data-dc="members"></span></a>
<a class="nl coffee" href="https://buymeacoffee.com/duartesantos" rel="noopener">Buy me a coffee! <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"/></svg></a>
<a class="nl" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source</a>
</div>
</div>
@@ -219,37 +212,37 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
<a class="side-link" href="#admin"><b>Admin</b><span>Users, invites, audit log</span></a>
<a class="side-link" href="#schemas"><b>Schemas</b><span>The state blob, the error shape &amp; co.</span></a>
<p class="side-label">More</p>
<a class="side-link" href="/"><b>Home</b><span>The tour, the demo, the download</span></a>
<a class="side-link" href="/"><b>Home</b><span>The tour, and how to run it</span></a>
<a class="side-link" href="/docs.html"><b>Docs</b><span>Install, self-host, import</span></a>
<a class="side-link" href="/about.html"><b>About</b><span>The story and the milestones</span></a>
</aside>
<main id="main" class="api-main">
<h1>API</h1>
<p class="lead">Every route the openGym backend serves — passkey auth, state sync,
<p class="lead">Every route the KuentaGYM backend serves — passkey auth, state sync,
push, pairing, admin — as one hand-written
OpenAPI&nbsp;spec. The same file lives
<a href="https://github.com/DuarteSantos8/openGym/blob/main/api/openapi.yaml" rel="noopener">in the repository</a>
<a href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/api/openapi.yaml" rel="noopener">in the repository</a>
at <code>api/openapi.yaml</code>, next to the one server file it documents.</p>
<div class="actions api-actions">
<a class="btn" href="openapi.yaml" download>
<a class="btn" href="https://git.dploy.lol/dsantillan/kuentagym/raw/branch/main/api/openapi.yaml" rel="noopener">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3v12m0 0l-5-5m5 5l5-5M4 19h16"/></svg>
Download openapi.yaml</a>
</div>
<p class="api-facts">
<span>OpenAPI 3.1.0</span>
<span>openGym v1.3.8</span>
<span>KuentaGYM v1.3.8</span>
<span>30 endpoints</span>
<span>AGPL-3.0-or-later</span>
</p>
<section class="api-sec" id="overview">
<h2>Overview</h2>
<p class="sub">Passkey (WebAuthn) auth + per-user state storage for openGym. One Node file, no framework, JSON-file
<p class="sub">Passkey (WebAuthn) auth + per-user state storage for KuentaGYM. One Node file, no framework, JSON-file
storage, HMAC-signed session cookies.</p>
<div class="srv">
<div class="srv-row"><code>/</code><span>Same origin as the openGym web app (the normal deployment)</span></div>
<div class="srv-row"><code>https://opengym.example.com</code><span>Your self-hosted instance</span></div>
<div class="srv-row"><code>/</code><span>Same origin as the KuentaGYM web app (the normal deployment)</span></div>
<div class="srv-row"><code>https://kuentagym.example.com</code><span>Your self-hosted instance</span></div>
</div>
<div class="ov-grid">
<div class="ov">
@@ -2270,18 +2263,16 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
</main>
<footer><div class="wrap foot">
<span class="c">openGym · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a></span>
<span class="c">KuentaGYM · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a> · a rebranded fork of <a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">openGym</a></span>
<div class="links">
<a href="docs.html">Docs</a>
<a href="about.html">About</a>
<a href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub</a>
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab mirror</a>
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
<a href="/#download">Download</a>
<a href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source code</a>
<a href="/#download">Get started</a>
</div>
</div></footer>
<script src="site.js?v=19" defer></script>
<script src="site.js?v=20" defer></script>
<script>
/* Jumping to an anchor inside a collapsed card opens the card — and re-aligns, since
the browser scrolled to where the target was while it was still collapsed. */
+107 -130
View File
@@ -3,33 +3,32 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>Docs — openGym</title>
<meta name="description" content="The complete openGym reference: every feature, installing on Android and iPhone, self-hosting with Docker, every .env setting, the AI Coach, importing from FitNotes/Strong/Hevy, backups, the MCP server, and how it's built.">
<title>Docs — KuentaGYM</title>
<meta name="description" content="The complete KuentaGYM reference: every feature, installing on Android and iPhone, self-hosting with Docker, every .env setting, the AI Coach, importing from FitNotes/Strong/Hevy, backups, the MCP server, and how it's built.">
<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: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:title" content="KuentaGYM Docs — the complete reference">
<meta property="og:description" content="The complete KuentaGYM reference: every feature, self-hosting with Docker, every setting, the AI Coach, imports, backups, MCP, troubleshooting.">
<meta property="og:image" content="https://gym.dploy.lol/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="KuentaGYM — your training, your data, your server. Two phones showing the home and workout screens.">
<meta property="og:url" content="https://gym.dploy.lol/docs.html">
<meta property="og:type" content="website">
<meta property="og:site_name" content="openGym">
<meta property="og:site_name" content="KuentaGYM">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="openGym Docs — the complete reference">
<meta name="twitter:image" content="https://opengym.duarte-santos.ch/img/social.jpg">
<link rel="canonical" href="https://opengym.duarte-santos.ch/docs.html">
<meta name="twitter:title" content="KuentaGYM Docs — the complete reference">
<meta name="twitter:image" content="https://gym.dploy.lol/img/social.jpg">
<link rel="canonical" href="https://gym.dploy.lol/docs.html">
<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=19">
<link rel="stylesheet" href="styles.css?v=20">
<script>document.documentElement.className += ' js'</script>
<!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). -->
<script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script>
<!-- No analytics and no third-party requests: every page here is static and loads
only files from this host. -->
<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": "Percentage/training-max programming (5/3/1-style), more starter plans, body measurements alongside weight, per-exercise notes and a plate calculator, more instruction languages. Community-driven — ideas and merge requests welcome."}}, {"@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 KuentaGYM 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 KuentaGYM 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 mobile app is compiled from the source in the repository; nothing is distributed through a store."}}, {"@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 KuentaGYM roadmap?", "acceptedAnswer": {"@type": "Answer", "text": "Percentage/training-max programming (5/3/1-style), more starter plans, body measurements alongside weight, per-exercise notes and a plate calculator, more instruction languages. Community-driven — ideas and merge requests welcome."}}, {"@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 KuentaGYM 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 KuentaGYM 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">
@@ -38,19 +37,16 @@
<nav><div class="wrap nav-in">
<a class="brand" href="/">
<img src="icon-180.png" alt="" width="24" height="24">
openGym
KuentaGYM
</a>
<div class="nav-quick">
<a class="ql site" href="/#features">Features</a>
<a class="ql site" href="/#screens">Screenshots</a>
<a class="ql site" href="/#demo">Demo</a>
<a class="ql site" href="/docs.html">Docs</a>
<a class="ql site" href="/api.html">API</a>
<a class="ql site" href="/about.html">About</a>
<a class="ql" href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub <span data-gh="stars"></span></a>
<a class="ql" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord <span data-dc="members"></span></a>
<a class="ql coffee" href="https://buymeacoffee.com/duartesantos" rel="noopener" aria-label="Buy me a coffee"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"/></svg><span>Buy me a coffee!</span></a>
<a class="cta" href="/#download">Download</a>
<a class="ql" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source</a>
<a class="cta" href="/#download">Get started</a>
</div>
<button class="nav-toggle" id="navtoggle" aria-expanded="false" aria-controls="sitemenu" aria-label="Menu">
<span></span><span></span>
@@ -64,13 +60,10 @@
<div class="nl-rows">
<a class="nl" href="/#features">Features</a>
<a class="nl" href="/#screens">Screenshots</a>
<a class="nl" href="/#demo">Demo</a>
<a class="nl" href="/docs.html">Docs</a>
<a class="nl" href="/api.html">API</a>
<a class="nl" href="/about.html">About</a>
<a class="nl" href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub <span data-gh="stars"></span></a>
<a class="nl" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord <span data-dc="members"></span></a>
<a class="nl coffee" href="https://buymeacoffee.com/duartesantos" rel="noopener">Buy me a coffee! <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"/></svg></a>
<a class="nl" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source</a>
</div>
</div>
@@ -90,10 +83,10 @@
</div>
<p class="side-label">Documentation</p>
<div class="side-group">
<a class="side-link" href="#flavors"><b>Which openGym?</b></a>
<a class="side-link" href="#flavors"><b>Which KuentaGYM?</b></a>
</div>
<div class="side-group">
<a class="side-link" href="#android"><b>Install on Android</b></a>
<a class="side-link" href="#android"><b>The Android app</b></a>
</div>
<div class="side-group">
<a class="side-link" href="#iphone"><b>Use on iPhone</b></a>
@@ -175,7 +168,7 @@
<a class="side-link" href="#faq"><b>FAQ</b></a>
</div>
<p class="side-label">More</p>
<a class="side-link" href="/"><b>Home</b><span>The tour, the demo, the download</span></a>
<a class="side-link" href="/"><b>Home</b><span>The tour, and how to run it</span></a>
<a class="side-link" href="api.html"><b>API</b><span>Every route, as an OpenAPI spec</span></a>
<a class="side-link" href="about.html"><b>About</b><span>The story and the milestones</span></a>
</aside>
@@ -183,8 +176,8 @@
<main id="main" class="wrap prose">
<h1>Docs</h1>
<p class="lead">The complete reference — every feature, every setting, every way to run
openGym. The same documents live
<a href="https://github.com/DuarteSantos8/openGym/blob/main/docs" rel="noopener">in the repository</a>,
KuentaGYM. The same documents live
<a href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/docs" rel="noopener">in the repository</a>,
next to the code they describe.</p>
<div class="toc">
@@ -198,44 +191,31 @@
<a href="#build">Build it yourself</a>
<a href="#faq">FAQ</a>
</div>
<h2 id="flavors">Which openGym? The three flavors</h2>
<p>One codebase, three ways to run it. Everything below applies to all of them unless a
section says otherwise.</p>
<h2 id="flavors">Which KuentaGYM? Two ways to run it</h2>
<p>One codebase, two ways to run it. Everything below applies to both unless a section says
otherwise.</p>
<table class="cfg">
<tr><td><b>Mobile app</b></td><td>A sideloadable Android APK (and a buildable iOS app). No account, no server, no sync — the phone <i>is</i> the account, data lives in the app's private storage, workout-day reminders are native notifications. Install-and-done.</td></tr>
<tr><td><b>Self-hosted</b></td><td>Two Docker containers on your own machine. Adds passkey profiles, sync across devices, installable as a home-screen PWA, optional admin dashboard, web push notifications. The flavor for households and training groups.</td></tr>
<tr><td><b>Demo</b></td><td><a href="/demo/">The in-browser demo</a> — the real app seeded with example data, storing everything in your browser only. Useful to try before installing, and as a free plan editor (see <a href="#import">Import</a>).</td></tr>
<tr><td><b>Self-hosted</b></td><td>Two Docker containers on your own machine. Passkey profiles, sync across devices, installable as a home-screen PWA, optional admin dashboard, web push notifications. The flavor for households and training groups — and the one most people want.</td></tr>
<tr><td><b>Mobile app</b></td><td>The same frontend in the Capacitor shells that ship in the repository, built and signed on your own machine (see <a href="#build">Build it yourself</a>). No account, no server, no sync — the phone <i>is</i> the account, data lives in the app's private storage, workout-day reminders are native notifications. No prebuilt APK is published for this fork.</td></tr>
</table>
<p>You can start with the mobile app and move to a server later (or the other way round) —
the <a href="#backup">backup file</a> migrates everything, and the mobile app can also
<a href="#mobile-server">connect directly to your server</a>.</p>
<h2 id="android">Install on Android</h2>
<ol>
<li>Open <a href="/#download">the download</a> on your phone and tap <b>Download for Android</b>.</li>
<li>Your browser will ask whether it may install apps — allow it. This is standard for
any app installed outside the Play Store (called <i>sideloading</i>), and you can
revoke the permission right after.</li>
<li>Open the downloaded <code>openGym.apk</code>, confirm, done. No account, no setup.</li>
</ol>
<div class="note">openGym is deliberately <b>not</b> on the Play Store — no store account
between you and an open-source app. The APK is signed; updates install over the old
version and keep your data.</div>
<p>The same signed APK exists in three places, all the same file:</p>
<ul>
<li>This site's <a href="/#download">download button</a>.</li>
<li><a href="https://gitlab.com/DuarteSantos8/opengym/-/packages" rel="noopener">GitLab's package registry</a> —
every version under <code>opengym-android/&lt;version&gt;/</code>, with a
<code>.sha256</code> checksum beside it.</li>
<li>The <a href="https://github.com/DuarteSantos8/openGym/releases" rel="noopener">GitHub release</a> for that version, with the APK and its <code>.sha256</code> attached.</li>
</ul>
<p>Got the file from anywhere else? Verify it against the registry's <code>.sha256</code>
before installing. <b>Updates come to you:</b> when a newer release exists, Settings &rarr; Data
shows "openGym vX available" &mdash; one tap downloads the signed APK, checks its SHA-256
against the published checksum and opens the installer (no checksum, no install; the first
time Android asks for the "install unknown apps" permission). Installing over the old
version by hand works too &mdash; same signing key, data stays. Everything is stored on the phone itself; the only network
traffic is fetching exercise images and animations from a CDN, on demand.</p>
<h2 id="android">The Android app</h2>
<p>This fork publishes <b>no prebuilt APK</b>: there is nothing to download from this site,
and nothing is built for you elsewhere. The app is the same frontend in a Capacitor
shell, so you build it once on your own machine and sign it with your own key —
<a href="#build">Build it yourself</a> has the steps.</p>
<p>Installing it is the usual sideload: your browser asks whether it may install apps
(standard outside the Play Store, and a permission you can revoke afterwards), then the
package installs and updates in place, because your next build carries the same signature.
Everything stays on the phone; the only network traffic is fetching exercise images and
animations, on demand.</p>
<div class="note">KuentaGYM is deliberately <b>not</b> on the Play Store — no store account
between you and an open-source app, and no signed build from someone else's key on your
phone. Settings &rarr; Data has an update check that reads the fork's own releases, so a
build you publish for yourself can announce itself to the phones that run it.</div>
<p>The app requests notification permission only when you switch the workout-day reminder
on, and declares <code>SCHEDULE_EXACT_ALARM</code> so reminders fire to the minute.
Reminders are scheduled per calendar date — a day you already trained, or rescheduled
@@ -245,15 +225,16 @@
<p>Apple does not allow installing apps outside the App Store, so there is no iOS download —
that's a platform rule, not a choice we made. What works instead:</p>
<ul>
<li><b>Self-host + home screen (recommended):</b> open your own openGym instance in
<li><b>Self-host + home screen (recommended):</b> open your own KuentaGYM instance in
Safari → <b>Share</b> → <b>Add to Home Screen</b>. You get a full-screen app with its
own icon, passkey sign-in and sync — no expiry, no fees.</li>
<li><b>Build it onto your own iPhone:</b> with a Mac and Xcode 15+, the native Capacitor
app runs on your device with a free Apple ID (Apple expires the signature after
7 days; re-run from Xcode to renew — <b>AltStore</b> can automate that re-signing over
Wi-Fi). See <a href="https://github.com/DuarteSantos8/openGym/blob/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>
<li><b>Just looking?</b> Try the <a href="/demo/">in-browser demo</a> — the real app with
example data, no account and nothing to install.</li>
Wi-Fi). See <a href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>
<li><b>Just looking?</b> Bring the stack up on your own machine first —
<code>docker compose up -d</code>, then <code>http://localhost:8080</code>, where
passkeys work without HTTPS (see <a href="#selfhost">Self-hosting</a>).</li>
</ul>
<h2 id="features">The app, feature by feature</h2>
@@ -438,8 +419,8 @@
<p>The self-hosted flavor is two small containers (web + API) and a folder of your data.
You need <a href="https://docs.docker.com/get-docker/" rel="noopener">Docker</a> with
Compose:</p>
<pre><code>git clone https://github.com/DuarteSantos8/openGym
cd openGym
<pre><code>git clone https://git.dploy.lol/dsantillan/kuentagym
cd KuentaGYM
cp .env.example .env
docker compose pull # prebuilt images (amd64 + arm64) — skip to build from source
docker compose up -d</code></pre>
@@ -453,13 +434,13 @@ curl http://localhost:8080/api/health # {"ok":true,...}</code></pre>
<code>docker compose up -d --build</code> — no Node needed locally either way.</p>
<h3 id="sh-passkey">The passkey rule (read this before opening a port)</h3>
<p>openGym signs you in with <b>passkeys</b> (WebAuthn — Face ID, fingerprint, or your
<p>KuentaGYM signs you in with <b>passkeys</b> (WebAuthn — Face ID, fingerprint, or your
password manager). Browsers enforce two rules: a passkey is bound to an exact
<b>hostname</b>, and it only works over <b>HTTPS</b> — with one exception,
<code>http://localhost</code>.</p>
<p>So <code>http://localhost:8080</code> works on the Docker machine, but your phone
<b>cannot</b> use <code>http://192.168.x.x:8080</code> — that's neither localhost nor
HTTPS, and the passkey prompt won't appear. To use openGym from your phone you need a
HTTPS, and the passkey prompt won't appear. To use KuentaGYM from your phone you need a
real HTTPS hostname (below). Until then, LAN devices can still use <b>guest mode</b>
(data stays in that browser) or the <a href="#mobile-server">mobile app's pairing
mode</a>.</p>
@@ -487,7 +468,7 @@ docker compose up -d # restart alone does NOT re-read .env</code></pre>
people join.</div>
<p>Want a valid certificate <b>without</b> exposing anything to the internet — HTTPS on a
LAN-only address? That works too (wildcard cert via a DNS challenge, Caddy in front):
<a href="https://github.com/DuarteSantos8/openGym/blob/main/docs/SELF_HOSTING_HTTPS.md" rel="noopener">docs/SELF_HOSTING_HTTPS.md</a>.
<a href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/docs/SELF_HOSTING_HTTPS.md" rel="noopener">docs/SELF_HOSTING_HTTPS.md</a>.
A VPN or an auth proxy (Authelia, Cloudflare Access…) in front composes with all of
this.</p>
@@ -500,7 +481,7 @@ docker compose up -d # restart alone does NOT re-read .env</code></pre>
<code>VAPID_SUBJECT=mailto:you@example.com</code> if you'd rather push services could
reach an inbox than your origin URL.</p>
<p>Where it works: any desktop browser, Android Chrome, and on iOS only the app <b>added to
the Home Screen</b> (a Safari tab has no Web Push). The Android APK doesn't use Web Push —
the Home Screen</b> (a Safari tab has no Web Push). The Android build doesn't use Web Push —
its reminder is a local notification scheduled on the phone. A reminder that was due while
the server was down or restarting is still sent up to 15 minutes late, once; the browser
re-registers its subscription with the server on every signed-in start, so one the server
@@ -520,7 +501,7 @@ docker compose up -d # restart alone does NOT re-read .env</code></pre>
changes go up when the connection is back.</p>
<h3 id="sh-stack">Fitting it into an existing stack</h3>
<p>The defaults assume openGym is alone: a service called <code>api</code> on port 3000,
<p>The defaults assume KuentaGYM is alone: a service called <code>api</code> on port 3000,
nginx on 80 inside the web container. Merging into a compose file that already has an
<code>api</code>, or fronting it with your own proxy on another port, is four
<code>.env</code> settings — <code>WEB_PORT</code>, <code>NGINX_PORT</code>,
@@ -532,13 +513,11 @@ docker compose up -d # restart alone does NOT re-read .env</code></pre>
docker compose pull # (or: docker compose up -d --build, if building from source)
docker compose up -d</code></pre>
<p>Your <code>./data</code> and the downloaded media are untouched; the app shell is
versioned so clients pick up changes on next load. Releases are announced on
<a href="https://github.com/DuarteSantos8/openGym/releases" rel="noopener">GitHub</a>
and <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>; container images
(amd64 + arm64) are published to
<a href="https://gitlab.com/DuarteSantos8/opengym/container_registry" rel="noopener">GitLab's registry</a>
and mirrored to <a href="https://github.com/DuarteSantos8/openGym/pkgs/container/opengym-api" rel="noopener">GHCR</a>
on every release.</p>
versioned so clients pick up changes on next load. The container images (amd64 + arm64)
are <code>git.dploy.lol/dsantillan/kuentagym-api</code> and
<code>git.dploy.lol/dsantillan/kuentagym-web</code> — exactly the names
<code>docker-compose.yml</code> uses, so <code>docker compose pull</code> is all an update
needs.</p>
<h2 id="env">Every setting</h2>
<p>All configuration is one <code>.env</code> file (see <code>.env.example</code>); the
@@ -546,7 +525,7 @@ docker compose up -d</code></pre>
<table class="cfg">
<tr><td><code>RP_ID</code></td><td>Hostname passkeys are bound to. A <b>bare hostname</b>: no scheme, no port, no slash. Default <code>localhost</code>.</td></tr>
<tr><td><code>ORIGIN</code></td><td>Full URL the app is served from — <i>with</i> scheme, <i>without</i> trailing slash. Must match the address bar exactly. Default <code>http://localhost:8080</code>.</td></tr>
<tr><td><code>RP_NAME</code></td><td>Name shown in the passkey prompt. Default <code>openGym</code>.</td></tr>
<tr><td><code>RP_NAME</code></td><td>Name shown in the passkey prompt. Default <code>KuentaGYM</code>.</td></tr>
<tr><td><code>WEB_PORT</code></td><td>Host port for the web UI. Default <code>8080</code>.</td></tr>
<tr><td><code>NGINX_PORT</code></td><td>Port the web container listens on, inside the container. Default <code>80</code>.</td></tr>
<tr><td><code>BACKEND</code></td><td>Name of the API service <code>/api</code> is proxied to — change it if yours isn't called <code>api</code>.</td></tr>
@@ -620,7 +599,7 @@ ALLOW_GUEST=0 # remove "Continue without account"</code></pre>
<code>api/server.js</code>.)</p>
<h2 id="coach">Let an AI coach write your plan</h2>
<p>Separate from the read-only bridge above, openGym has an optional <b>AI Coach</b>. Answer a
<p>Separate from the read-only bridge above, KuentaGYM has an optional <b>AI Coach</b>. Answer a
few questions — goal, days a week, session length, equipment, anything to work around — and
it designs a week of routines. Later it reviews what you actually logged and proposes
changes; you can also ask it to look at <b>one workout</b> (a debrief: a score, what went
@@ -636,7 +615,7 @@ ALLOW_GUEST=0 # remove "Continue without account"</code></pre>
you logged in the review window, weigh-ins, your intake answers, and a few preferences —
under a pseudonym. Your name, e-mail, passkeys and everyone else's data are not in it,
by construction: fields are copied in one by one, nothing is passed through.</li>
<li>That payload goes to the provider <b>you</b> configured — there is no openGym service in
<li>That payload goes to the provider <b>you</b> configured — there is no KuentaGYM service in
the middle.</li>
<li>The answer is parsed and <b>validated against a closed list of change types</b> (add,
remove or swap an exercise, sets, reps, schedule, progression policy…). An answer that
@@ -659,8 +638,8 @@ ALLOW_GUEST=0 # remove "Continue without account"</code></pre>
<h3 id="coach-local">Run it fully local — no cloud, no cost</h3>
<p>A model on your own hardware is just the compatible endpoint with no key. The usual way is
an Ollama container next to openGym:</p>
<pre><code># docker-compose.yml — add next to the openGym services (same file = same network)
an Ollama container next to KuentaGYM:</p>
<pre><code># docker-compose.yml — add next to the KuentaGYM services (same file = same network)
ollama:
image: ollama/ollama
restart: unless-stopped
@@ -707,10 +686,10 @@ ALLOW_GUEST=0 # remove "Continue without account"</code></pre>
<code>COACH_DISABLED=1</code> in the environment switches the feature off harder than any
toggle. The Coach is not a doctor or a physiotherapist — if something hurts, ask a
professional. Full details, including exactly what is sent and how credentials are stored:
<a href="https://github.com/DuarteSantos8/openGym/blob/main/docs/AI_COACH.md" rel="noopener">docs/AI_COACH.md</a>.</p>
<a href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/docs/AI_COACH.md" rel="noopener">docs/AI_COACH.md</a>.</p>
<h2 id="mcp">Ask an AI about your training (MCP)</h2>
<p>openGym ships an optional <b>MCP server</b>: a small read-only bridge that lets a client
<p>KuentaGYM ships an optional <b>MCP server</b>: a small read-only bridge that lets a client
like Claude Desktop, Cursor or Cline answer questions from your actual log — <i>"what
did I bench last week?"</i>, <i>"which muscle have I not trained this month?"</i>. It
runs on your machine, is spawned by the client over stdio, reads the same
@@ -731,7 +710,7 @@ ALLOW_GUEST=0 # remove "Continue without account"</code></pre>
isn't there. No new auth (the filesystem is the boundary), no telemetry, no network; the
LLM never sees passkeys or session secrets. Setup is <code>cd mcp &amp;&amp; npm
install</code> plus a few lines of client config:
<a href="https://github.com/DuarteSantos8/openGym/blob/main/mcp/README.md" rel="noopener">mcp/README.md</a>.</p>
<a href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/mcp/README.md" rel="noopener">mcp/README.md</a>.</p>
<h2 id="import">Import your training history</h2>
<p>Coming from another tracker? <b>Settings → Data → Import from another app</b> reads a
@@ -752,7 +731,7 @@ ALLOW_GUEST=0 # remove "Continue without account"</code></pre>
<h3 id="imp-hevy">Hevy, directly over the API</h3>
<p>With <b>Hevy Pro</b>, skip the CSV: create an API key under
<a href="https://hevy.com/settings?developer" rel="noopener">Hevy → Settings → Developer</a>,
then in openGym use <b>Settings → Import from Hevy</b>, paste the key (used only for that
then in KuentaGYM use <b>Settings → Import from Hevy</b>, paste the key (used only for that
import — never saved), and choose any mix of <b>workouts</b>, <b>routines</b> and
<b>weigh-ins</b>. Workout days that already have data here are left alone; imported
routines are always added as new plans.</p>
@@ -773,12 +752,13 @@ Leg Day,Leg Press,2026-08-21,200,1</code></pre>
<i>time</i> (<code>duration</code>), <i>set type</i>, <i>note</i>
(<code>comment(s)</code>, <code>notes</code>, <code>workout notes</code>). The full
table lives in
<a href="https://github.com/DuarteSantos8/openGym/blob/main/docs/DATA_IMPORTS.md" rel="noopener">docs/DATA_IMPORTS.md</a>.</p>
<a href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/docs/DATA_IMPORTS.md" rel="noopener">docs/DATA_IMPORTS.md</a>.</p>
<h3 id="imp-plans">Importing plans</h3>
<p>Routines travel as their own small JSON file (<b>Share a plan</b> exports every current
routine; importing merges). Don't want to share everything? Edit the JSON, or use the
<a href="/demo/">demo</a> as a free plan editor: import there, prune, export a fresh
file. The demo stores everything in your browser — nothing is public or shared.</p>
routine; importing merges). Don't want to share everything? Edit the JSON, or build the
frontend with <code>VITE_DEMO=1</code> (see <a href="#build">Build it yourself</a>) and use
that local copy as a free plan editor: import there, prune, export a fresh file. It keeps
everything in your browser — nothing is public or shared.</p>
<h2 id="backup">Backups &amp; your data</h2>
<h3>Per user</h3>
@@ -786,7 +766,7 @@ Leg Day,Leg Press,2026-08-21,200,1</code></pre>
weights, settings — into one file. On the mobile app it goes out through the share sheet
(Files, AirDrop, mail…); in the browser it downloads. <b>Import backup</b> restores it
anywhere: another phone, your self-hosted instance, or a fresh install. That file is the
whole point of openGym — your training log as a file <i>you</i> own.</p>
whole point of KuentaGYM — your training log as a file <i>you</i> own.</p>
<h3>Per instance (self-hosted)</h3>
<p>Everything lives in <code>./data</code> on your host:</p>
<table class="cfg">
@@ -796,7 +776,7 @@ Leg Day,Leg Press,2026-08-21,200,1</code></pre>
<tr><td><code>secret</code></td><td>The session-cookie signing key.</td></tr>
<tr><td><code>vapid.json</code></td><td>Push-notification keys, generated on first run.</td></tr>
</table>
<pre><code>tar czf opengym-backup-$(date +%F).tar.gz data/</code></pre>
<pre><code>tar czf kuentagym-backup-$(date +%F).tar.gz data/</code></pre>
<p>That archive is everything — profiles, passkeys, history. It also contains
<code>audit.log</code> with everyone's sign-in times; worth knowing before shipping it
to a backup service you don't run. Restore by unpacking into the project folder.</p>
@@ -816,31 +796,31 @@ Leg Day,Leg Press,2026-08-21,200,1</code></pre>
</ul>
<p>The training logic — progression rules, 1RM estimation, how a logged session is read
back — lives in pure functions under <code>frontend/src/lib/</code> with tests next to
them; the MCP server and the mobile app import the very same functions. CI on the GitLab
mirror runs the full suites (frontend, api, mcp) on every commit, builds the amd64+arm64
images, signs the APK, and publishes releases — tagging <code>vX.Y.Z</code> is what
ships everything.</p>
them; the MCP server and the mobile app import the very same functions. CI runs the
frontend suite on every commit and builds the amd64+arm64 images on <code>main</code> and on
a published release; the api and mcp suites are run by hand. This website is not part of
that pipeline — it is plain static files with no build step.</p>
<p>The exercise database comes from
<a href="https://github.com/hasaneyldrm/exercises-dataset" rel="noopener">hasaneyldrm/exercises-dataset</a>:
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 —
MIT; the images and animations are third-party media that KuentaGYM never redistributes —
your instance downloads them from upstream on first run (see the
<a href="#faq">FAQ</a> for the licensing details).</p>
<h2 id="build">Build it yourself</h2>
<p>Everything on this page is built from the public repo:</p>
<p>Everything on this page is built from the repository:</p>
<ul>
<li><b>Web / self-host:</b> <code>docker compose up -d --build</code> builds the frontend
inside the container — no local Node needed.</li>
<li><b>Android APK:</b> <code>npm run build:mobile</code> in <code>frontend/</code>, then
<li><b>Android app:</b> <code>npm run build:mobile</code> in <code>frontend/</code>, then
Gradle + <code>zipalign</code> + <code>apksigner</code> with your own keystore
(keep it — updates must carry the same signature). Step-by-step:
<a href="https://github.com/DuarteSantos8/openGym/blob/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>
<a href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</li>
<li><b>iOS app:</b> the Capacitor project in <code>frontend/ios</code> — open in Xcode,
set your (free) team, run on your device. Same doc.</li>
<li><b>Development:</b> Node 20+; <code>npm test</code> in <code>frontend/</code>,
<code>api/</code> and <code>mcp/</code> runs the suites. Contributions welcome —
<a href="https://github.com/DuarteSantos8/openGym/blob/main/CONTRIBUTING.md" rel="noopener">CONTRIBUTING.md</a>.</li>
<a href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/CONTRIBUTING.md" rel="noopener">CONTRIBUTING.md</a>.</li>
</ul>
<h2 id="troubleshoot">Troubleshooting</h2>
@@ -877,10 +857,9 @@ Leg Day,Leg Press,2026-08-21,200,1</code></pre>
<tr><td><code>docker compose pull</code> says "denied"</td><td>Build from source instead: <code>docker compose up -d --build</code>.</td></tr>
<tr><td>Exercise images blank in an old build</td><td>Fixed in current images. <code>VITE_IMG_BASE</code>/<code>VITE_GIF_BASE</code> are <b>build-time</b>: they're baked into the bundle when the frontend compiles, so setting them at runtime does nothing to a prebuilt image — redirect media in your reverse proxy instead, or rebuild.</td></tr>
</table>
<p>Still stuck? The <a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a> is
the quickest way to get an answer;
<a href="https://github.com/DuarteSantos8/openGym/issues" rel="noopener">issues</a> are
better for anything the next person should find by searching.</p>
<p>Still stuck? File an
<a href="https://git.dploy.lol/dsantillan/kuentagym/issues" rel="noopener">issue</a> on the
repository: the answer then stays there, where the next person can search for it.</p>
<h2 id="privacy">Privacy — the complete list</h2>
<ul>
@@ -897,17 +876,17 @@ Leg Day,Leg Press,2026-08-21,200,1</code></pre>
Off, nothing is ever sent anywhere — <a href="#coach-privacy">details above</a>.</li>
<li><b>The MCP server</b> is read-only, local, and never puts your data on the
network.</li>
<li><b>This website</b> uses self-hosted, cookieless <a href="https://umami.is" rel="noopener">Umami</a>
page-view counting — no cookies, no cross-site tracking, and it never sees anything
from inside the app or the demo.</li>
<li><b>This website</b> counts nothing and calls nobody: no analytics, no CDN, no fonts
or scripts from another host. A visit requests the files on this server and that is
all.</li>
</ul>
<h2 id="faq">FAQ</h2>
<h3>Is it really free?</h3>
<p>Yes — free as in cost <i>and</i> as in freedom (AGPL-3.0). No pro tier, no locked
features, no ads, and the license keeps every fork open source too. If it replaced a
paid tracker for you, there's a <a href="https://buymeacoffee.com/duartesantos" rel="noopener">coffee button</a> —
a star, a bug report or a merge request is worth just as much.</p>
features, no ads, and the license keeps every fork open source too. There is nothing to
buy here: a bug report or a merge request to the upstream project is the useful kind of
thanks.</p>
<h3>Why isn't it on the Play Store / App Store?</h3>
<p>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
@@ -923,42 +902,40 @@ Leg Day,Leg Press,2026-08-21,200,1</code></pre>
the progression engine, more starter plans, body measurements alongside weight,
per-exercise notes and a plate calculator, more instruction languages. Ideas and pull
requests welcome — the up-to-date list is in the
<a href="https://github.com/DuarteSantos8/openGym#roadmap" rel="noopener">README</a>.</p>
<a href="https://git.dploy.lol/dsantillan/kuentagym#roadmap" rel="noopener">README</a>.</p>
<h3>Where does the exercise database come from?</h3>
<p>From <a href="https://github.com/hasaneyldrm/exercises-dataset" rel="noopener">hasaneyldrm/exercises-dataset</a>:
1,324 exercises with animations and instructions, localized in 12 of openGym's 14 UI
languages — including openGym's separately curated Brazilian Portuguese translation.
That dataset licenses the two halves differently, and so does openGym: the exercise
1,324 exercises with animations and instructions, localized in 12 of KuentaGYM's 14 UI
languages — including KuentaGYM's separately curated Brazilian Portuguese translation.
That dataset licenses the two halves differently, and so does KuentaGYM: the exercise
metadata and instruction text are <b>MIT</b>, while the images and animations are
third-party media used under the dataset's terms rather than openGym's AGPL — their
third-party media used under the dataset's terms rather than KuentaGYM's AGPL — their
ownership is currently disputed between
<a href="https://gymvisual.com/" rel="noopener">Gym visual</a> and ExerciseDB, and a
clarification has been requested.</p>
<p>openGym does not redistribute that media — your instance downloads it from the upstream
<p>KuentaGYM does not redistribute that media — your instance downloads it from the upstream
source on first run. If you want to reuse it yourself, commercially or otherwise, clear
it with the rights holder first. Full third-party notices, including the body-diagram
geometry, are in
<a href="https://github.com/DuarteSantos8/openGym/blob/main/NOTICE.md" rel="noopener">NOTICE.md</a>.</p>
<a href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/NOTICE.md" rel="noopener">NOTICE.md</a>.</p>
<h3>What does the AGPL mean for me?</h3>
<p>You can self-host, use, modify and share openGym freely. If you run a <i>modified</i>
<p>You can self-host, use, modify and share KuentaGYM freely. If you run a <i>modified</i>
version as a network service, you must offer that version's source under the same
license — that's the clause that keeps openGym from ever becoming someone's closed,
license — that's the clause that keeps KuentaGYM from ever becoming someone's closed,
proprietary product. Just using or self-hosting it unmodified obliges you to
nothing.</p>
</main>
<footer><div class="wrap foot">
<span class="c">openGym · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a></span>
<span class="c">KuentaGYM · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a> · a rebranded fork of <a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">openGym</a></span>
<div class="links">
<a href="docs.html">Docs</a>
<a href="about.html">About</a>
<a href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub</a>
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab mirror</a>
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
<a href="/#download">Download</a>
<a href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source code</a>
<a href="/#download">Get started</a>
</div>
</div></footer>
<script src="site.js?v=19" defer></script>
<script src="site.js?v=20" defer></script>
</body>
</html>
+85 -144
View File
@@ -3,30 +3,29 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>openGym — free, open-source gym &amp; body-weight tracker</title>
<meta name="description" content="openGym is a free, open-source gym & body-weight tracker. Download the Android app or self-host it with Docker — no account, no cloud, no telemetry.">
<title>KuentaGYM — free, open-source gym &amp; body-weight tracker</title>
<meta name="description" content="KuentaGYM is a free, open-source gym & body-weight tracker you run on your own server with Docker — no account, no cloud, no telemetry.">
<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 name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="openGym — your workouts, your weights, your data">
<meta name="twitter:description" content="Free, open-source gym & body-weight tracker. Android APK or self-hosted with Docker. No account, no cloud, no telemetry.">
<meta name="twitter:image" content="https://opengym.duarte-santos.ch/img/social.jpg">
<meta property="og:title" content="openGym — your workouts, your weights, your data">
<meta property="og:description" content="Free, open-source gym & body-weight tracker. Android APK or self-hosted with Docker. No account, no cloud, no telemetry.">
<meta property="og:image" content="https://opengym.duarte-santos.ch/img/social.jpg">
<meta name="twitter:title" content="KuentaGYM — your workouts, your weights, your data">
<meta name="twitter:description" content="Free, open-source gym & body-weight tracker. Self-hosted with Docker, or built from source. No account, no cloud, no telemetry.">
<meta name="twitter:image" content="https://gym.dploy.lol/img/social.jpg">
<meta property="og:title" content="KuentaGYM — your workouts, your weights, your data">
<meta property="og:description" content="Free, open-source gym & body-weight tracker. Self-hosted with Docker, or built from source. No account, no cloud, no telemetry.">
<meta property="og:image" content="https://gym.dploy.lol/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/">
<link rel="canonical" href="https://opengym.duarte-santos.ch/">
<meta property="og:image:alt" content="KuentaGYM — your training, your data, your server. Two phones showing the home and workout screens.">
<meta property="og:url" content="https://gym.dploy.lol/">
<link rel="canonical" href="https://gym.dploy.lol/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="openGym">
<meta property="og:site_name" content="KuentaGYM">
<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="preload" as="image" type="image/webp" imagesrcset="img/home-480.webp 480w, img/home-600.webp 600w, img/home-1170.webp 1170w" imagesizes="(max-width: 700px) 62vw, 300px" fetchpriority="high">
<link rel="stylesheet" href="styles.css?v=19">
<link rel="stylesheet" href="styles.css?v=20">
<!-- Marks that JS is alive before first paint, so the scroll-reveal styles never
hide content from a browser that will not run them. -->
<script>
@@ -41,21 +40,21 @@ try {
}
} catch (e) { document.documentElement.className += ' intro' }
</script>
<!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). -->
<script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script>
<!-- No analytics and no third-party requests: every page here is static and loads
only files from this host. -->
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"openGym",
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"KuentaGYM",
"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://gym.dploy.lol/",
"image":"https://gym.dploy.lol/img/social.jpg",
"screenshot":["https://gym.dploy.lol/img/home.png","https://gym.dploy.lol/img/workout.png","https://gym.dploy.lol/img/stats.png"],
"softwareVersion":"1.3.8","datePublished":"2026-07-18","dateModified":"2026-09-20","isAccessibleForFree":true,
"featureList":["Weekly plan with a routine per weekday","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","Import from Hevy, Strong, FitNotes and Apple Health","Passkey login and multi-device sync when self-hosted","Standalone Android APK with no account","14 languages","Optional AI coach on your own API key"],
"downloadUrl":"https://opengym.duarte-santos.ch/openGym.apk",
"featureList":["Weekly plan with a routine per weekday","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","Import from Hevy, Strong, FitNotes and Apple Health","Passkey login and multi-device sync when self-hosted","Standalone mobile build with no account","14 languages","Optional AI coach on your own API key"],
"isBasedOn":"https://gitlab.com/DuarteSantos8/opengym",
"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"]}
"sameAs":["https://git.dploy.lol/dsantillan/kuentagym"]}
</script>
</head>
<body class="topnav">
@@ -92,19 +91,16 @@ try {
<nav><div class="wrap nav-in">
<a class="brand" href="/">
<img src="icon-180.png" alt="" width="24" height="24">
openGym
KuentaGYM
</a>
<div class="nav-quick">
<a class="ql site" href="/#features">Features</a>
<a class="ql site" href="/#screens">Screenshots</a>
<a class="ql site" href="/#demo">Demo</a>
<a class="ql site" href="/docs.html">Docs</a>
<a class="ql site" href="/api.html">API</a>
<a class="ql site" href="/about.html">About</a>
<a class="ql" href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub <span data-gh="stars"></span></a>
<a class="ql" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord <span data-dc="members"></span></a>
<a class="ql coffee" href="https://buymeacoffee.com/duartesantos" rel="noopener" aria-label="Buy me a coffee"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"/></svg><span>Buy me a coffee!</span></a>
<a class="cta" href="/#download">Download</a>
<a class="ql" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source</a>
<a class="cta" href="/#download">Get started</a>
</div>
<button class="nav-toggle" id="navtoggle" aria-expanded="false" aria-controls="sitemenu" aria-label="Menu">
<span></span><span></span>
@@ -118,13 +114,10 @@ try {
<div class="nl-rows">
<a class="nl" href="/#features">Features</a>
<a class="nl" href="/#screens">Screenshots</a>
<a class="nl" href="/#demo">Demo</a>
<a class="nl" href="/docs.html">Docs</a>
<a class="nl" href="/api.html">API</a>
<a class="nl" href="/about.html">About</a>
<a class="nl" href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub <span data-gh="stars"></span></a>
<a class="nl" href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord <span data-dc="members"></span></a>
<a class="nl coffee" href="https://buymeacoffee.com/duartesantos" rel="noopener">Buy me a coffee! <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.159 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z"/></svg></a>
<a class="nl" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source</a>
</div>
</div>
@@ -145,11 +138,10 @@ try {
<p class="side-label">On this page</p>
<a class="side-link" href="#features"><b>Features</b><span>Built on the gym floor</span></a>
<a class="side-link" href="#screens"><b>Screenshots</b><span>Five screens, that's the app</span></a>
<a class="side-link" href="#demo"><b>Live demo</b><span>The real app, in your browser</span></a>
<a class="side-link" href="#download"><b>Download</b><span>Android APK or self-hosted</span></a>
<a class="side-link" href="#story"><b>The story</b><span>One user, zero ambitions</span></a>
<a class="side-link" href="#download"><b>Get started</b><span>Self-hosted, or built from source</span></a>
<a class="side-link" href="#story"><b>The story</b><span>Where the app came from</span></a>
<a class="side-link" href="#opensource"><b>Open source</b><span>AGPL-3.0, and staying that way</span></a>
<a class="side-link" href="#elsewhere"><b>Elsewhere</b><span>GitHub, Discord, support</span></a>
<a class="side-link" href="#elsewhere"><b>Elsewhere</b><span>The source, and upstream</span></a>
<p class="side-label">More</p>
<a class="side-link" href="docs.html"><b>Docs</b><span>Install, self-host, import</span></a>
<a class="side-link" href="api.html"><b>API</b><span>Every route, as an OpenAPI spec</span></a>
@@ -159,20 +151,20 @@ try {
<main id="main">
<header class="hero">
<div class="wrap">
<p class="eyebrow">openGym</p>
<p class="eyebrow">KuentaGYM</p>
<h1>Your workouts.<br>Your weights.<br><span>Your data.</span></h1>
<p class="lead">A free, open-source gym and body-weight tracker. No subscription, no
account required, and no telemetry — not now, not later.</p>
<div class="actions">
<a class="btn" href="#download">Get openGym</a>
<a class="link" href="#demo">Try the live demo</a>
<a class="btn" href="#download">Get KuentaGYM</a>
<a class="link" href="docs.html#selfhost">Self-hosting guide</a>
</div>
</div>
<div class="hero-stage">
<div class="device">
<picture>
<source type="image/webp" srcset="img/home-480.webp 480w, img/home-600.webp 600w, img/home-1170.webp 1170w" sizes="(max-width: 700px) 62vw, 300px">
<img src="img/home.png" alt="openGym home screen: the week at a glance, today's session and a body-weight chart"
<img src="img/home.png" alt="KuentaGYM home screen: the week at a glance, today's session and a body-weight chart"
width="1170" height="2532" fetchpriority="high" decoding="async">
</picture>
</div>
@@ -373,64 +365,16 @@ try {
<div class="wrap"><p class="rail-hint">Swipe through them.</p></div>
</section>
<section id="demo">
<div class="wrap">
<div class="sec-head rv">
<p class="eyebrow">Live demo</p>
<h2>Try it right here.</h2>
<p class="lead">The real app with a seeded example history, running in your browser.
Start a workout, break something, change anything you like.</p>
</div>
<!-- The iframe is injected by site.js, and only on viewports wide enough to show the
frame. On a phone, a phone inside a phone is not worth the download. -->
<div class="demo-stage rv">
<div class="device"><div class="device-slot" data-demo="/demo/"></div></div>
</div>
<p class="demo-note">Demo data lives only in this browser and can be reset from its own
Settings. <a href="/demo/">Open it full-screen</a> if you would rather have the room.</p>
<div class="demo-card">
<p>The demo wants the whole screen to itself. Its data lives only in this browser and
can be reset from its own Settings.</p>
<a class="btn" href="/demo/">Open the live demo</a>
</div>
</div>
</section>
<section id="download">
<div class="wrap">
<div class="sec-head rv">
<p class="eyebrow">Get openGym</p>
<h2>One app, two flavors.</h2>
<p class="lead">Same codebase. The choice is where your data lives: entirely on your
phone, or on a server you control.</p>
<p class="eyebrow">Get KuentaGYM</p>
<h2>One app, two ways to run it.</h2>
<p class="lead">Same codebase either way. Run it on a server you control, or compile the
mobile app yourself from the same source.</p>
</div>
<div class="duo">
<div class="card hl rv">
<div class="ic"><svg><use href="#i-phone"/></svg></div>
<h3>Mobile app</h3>
<p class="for">For anyone. Install it and you are done.</p>
<ul>
<li>Everything stays on your phone</li>
<li>No account, no server, no setup</li>
<li>Native workout-day reminders</li>
<li>Backups through the share sheet</li>
<li class="no">No sync across devices</li>
</ul>
<div class="push">
<a class="btn" href="openGym.apk" download>Download for Android</a>
<p class="meta">v1.3.8 · 27.7 MB · Android 6.0+ · signed APK. Your browser will ask
before installing; that is normal outside the Play Store.</p>
<p class="meta">Every release is also built and signed by CI and attached to the
<a href="https://github.com/DuarteSantos8/openGym/releases" rel="noopener">GitHub
releases page</a>, checksums and all.</p>
<p class="meta"><b>On iPhone?</b> Apple does not allow installs outside the App Store.
Use the self-hosted version as a home-screen app instead, or see
<a href="docs.html#iphone">the docs</a>.</p>
</div>
</div>
<div class="card rv">
<div class="ic"><svg><use href="#i-server"/></svg></div>
<h3>Self-hosted</h3>
<p class="for">For homelabbers, and the people they train with.</p>
@@ -442,8 +386,29 @@ try {
<li>One <code>docker compose up</code></li>
</ul>
<div class="push">
<a class="btn ghost" href="docs.html#selfhost">Self-hosting guide</a>
<p class="meta">AGPL-3.0 · prebuilt images for amd64 and arm64</p>
<a class="btn" href="docs.html#selfhost">Self-hosting guide</a>
<p class="meta">AGPL-3.0 · two containers (api + web) · amd64 and arm64</p>
</div>
</div>
<div class="card rv">
<div class="ic"><svg><use href="#i-phone"/></svg></div>
<h3>Mobile app</h3>
<p class="for">Compiled from source: no store, no published APK.</p>
<ul>
<li>Everything stays on your phone</li>
<li>No account, no server, no setup</li>
<li>Native workout-day reminders</li>
<li>Backups through the share sheet</li>
<li class="no">No sync across devices</li>
</ul>
<div class="push">
<a class="btn ghost" href="docs.html#build">Build it yourself</a>
<p class="meta">The Capacitor shells for Android and iOS are in the source. Android
needs <code>npm run build:mobile</code>, Gradle and your own signing key; iOS needs
a Mac and Xcode.</p>
<p class="meta"><b>On iPhone?</b> Apple does not allow installs outside the App Store.
Use the self-hosted version as a home-screen app instead — see
<a href="docs.html#iphone">the docs</a>.</p>
</div>
</div>
</div>
@@ -455,7 +420,8 @@ try {
<blockquote>openGym started as <b>a tiny app I built for myself.</b> I wanted to log my
workouts and my weight without a subscription app claiming my training data. Then
friends wanted in, and it grew a mind of its own.</blockquote>
<p class="who">Duarte Santos · <a href="about.html">read the whole story</a></p>
<p class="who">Duarte Santos, on the project this fork is built from ·
<a href="about.html">read the whole story</a></p>
</div>
</section>
@@ -470,23 +436,20 @@ try {
<div class="specs rv">
<div class="spec-head">
<span>openGym in numbers</span>
<span class="live">counts are live</span>
<span>KuentaGYM in numbers</span>
</div>
<div class="spec-cells">
<div><b data-gh="stars-n">–</b><span>stars</span></div>
<div><b data-gh="forks-n">–</b><span>forks</span></div>
<div><b data-gh="issues-n">–</b><span>open issues</span></div>
<div><b data-dc="members-n">–</b><span>on Discord</span></div>
<div><b>1,324</b><span>exercises</span></div>
<div><b>13</b><span>languages</span></div>
<div><b>14</b><span>languages</span></div>
<div><b>2</b><span>containers</span></div>
<div><b>AGPL-3.0</b><span>license</span></div>
</div>
</div>
<div class="actions rv" style="margin-top:28px">
<a class="btn ghost" href="https://github.com/DuarteSantos8/openGym" rel="noopener">openGym on GitHub <span class="ct" data-gh="stars">★</span></a>
<a class="link" href="https://github.com/DuarteSantos8/openGym/blob/main/CONTRIBUTING.md" rel="noopener">Contributing</a>
<a class="link" href="https://github.com/DuarteSantos8/openGym/blob/main/CHANGELOG.md" rel="noopener">Changelog</a>
<a class="btn ghost" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Browse the source</a>
<a class="link" href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/CONTRIBUTING.md" rel="noopener">Contributing</a>
<a class="link" href="https://git.dploy.lol/dsantillan/kuentagym/blob/main/CHANGELOG.md" rel="noopener">Changelog</a>
</div>
</div>
@@ -496,50 +459,30 @@ try {
<div class="wrap">
<div class="sec-head rv">
<p class="eyebrow">Elsewhere</p>
<h2>Where openGym lives.</h2>
<h2>Where KuentaGYM lives.</h2>
</div>
<div class="quad rv">
<a class="pad github" href="https://github.com/DuarteSantos8/openGym" rel="noopener">
<span class="pad-ic"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-github"/></svg></span>
<span class="pad-body">
<b>GitHub</b>
<span>The code, the issues, the pull requests and the releases.</span>
<span class="rest">Home of the project; every release is published here with its APK and checksum.</span>
</span>
<span class="pad-go">Open the repo</span>
</a>
<a class="pad gitlab" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">
<a class="pad gitlab" href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">
<span class="pad-ic"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-gitlab"/></svg></span>
<span class="pad-body">
<b>GitLab mirror</b>
<span>The same repository, kept in sync automatically.</span>
<span class="rest">Its CI builds the container images and signs every APK — nothing is merged here.</span>
<b>Source code</b>
<span>The code, the issues and the merge requests.</span>
<span class="rest">Everything this site describes is built from this repository.</span>
</span>
<span class="pad-go">Open the mirror</span>
<span class="pad-go">Open the repository</span>
</a>
<a class="pad bmc" href="https://buymeacoffee.com/duartesantos" rel="noopener">
<span class="pad-ic"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-bmc"/></svg></span>
<a class="pad" href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">
<span class="pad-ic"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-gitlab"/></svg></span>
<span class="pad-body">
<b>Buy me a coffee</b>
<span>openGym is free, and stays free.</span>
<span class="rest">If it saved you a subscription, this is the one place to say thanks.</span>
<b>Upstream openGym</b>
<span>The original project this fork is based on, by Duarte Santos.</span>
<span class="rest">AGPL-3.0, and where the app itself comes from.</span>
</span>
<span class="pad-go">Support the project</span>
<span class="pad-go">Open upstream</span>
</a>
<a class="pad discord" href="https://discord.gg/e62jY6fwVb" rel="noopener">
<span class="pad-ic"><svg viewBox="0 0 71 55" aria-hidden="true"><use href="#i-discord"/></svg></span>
<span class="pad-body">
<b>Discord</b>
<span>Releases, self-hosting help, and somewhere to report a bug.</span>
<span class="rest">Docker, reverse proxies and passkeys — new versions land here first.</span>
</span>
<span class="pad-go">Join the server</span>
</a>
</div>
</div>
</section>
@@ -549,17 +492,15 @@ try {
</main>
<footer><div class="wrap foot">
<span class="c">openGym · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a></span>
<span class="c">KuentaGYM · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a> · a rebranded fork of <a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">openGym</a></span>
<div class="links">
<a href="docs.html">Docs</a>
<a href="about.html">About</a>
<a href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub</a>
<a href="https://gitlab.com/DuarteSantos8/opengym" rel="noopener">GitLab mirror</a>
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
<a href="#download">Download</a>
<a href="https://git.dploy.lol/dsantillan/kuentagym" rel="noopener">Source code</a>
<a href="/#download">Get started</a>
</div>
</div></footer>
<script src="site.js?v=19" defer></script>
<script src="site.js?v=20" defer></script>
</body>
</html>
+17 -15
View File
@@ -1,20 +1,22 @@
# openGym
# KuentaGYM
> Free, open-source gym & body-weight tracker (AGPL-3.0). Runs as a standalone
> Android app (sideloaded APK) or self-hosted with Docker (passkey profiles,
> multi-device sync, PWA). No account required, no cloud, no telemetry.
> KuentaGYM is a rebranded, self-hosted fork of openGym: a free, open-source gym and
> body-weight tracker (AGPL-3.0) that runs as two Docker containers on a machine you
> control — passkey profiles, multi-device sync, installable as a home-screen app. No
> account, no cloud, no telemetry. There is no public demo instance and no prebuilt APK:
> the app is served from your own server, and the mobile build is compiled from source.
## Docs
- [Complete reference](https://opengym.duarte-santos.ch/docs.html): every feature, self-hosting, every .env setting, AI Coach, imports (FitNotes/Strong/Hevy/Apple Health), backups, MCP server, troubleshooting
- [HTTP API](https://opengym.duarte-santos.ch/api.html): OpenAPI spec, also at [openapi.yaml](https://opengym.duarte-santos.ch/openapi.yaml)
- [README](https://opengym.duarte-santos.ch/README.md): project overview in Markdown
- [Complete reference](https://gym.dploy.lol/docs.html): every feature, self-hosting, every .env setting, AI Coach, imports (FitNotes/Strong/Hevy/Apple Health), backups, MCP server, troubleshooting
- [HTTP API](https://gym.dploy.lol/api.html): the API reference; the spec itself is `api/openapi.yaml` in the repository
- [Mobile builds](https://git.dploy.lol/dsantillan/kuentagym/blob/main/docs/MOBILE.md): building and signing the Android app, and the iOS shell
- [Self-hosting guide](https://git.dploy.lol/dsantillan/kuentagym/blob/main/docs/SELF_HOSTING.md): the .env contract a real deployment depends on
## Try & get it
- [Live demo](https://opengym.duarte-santos.ch/demo/): the real app with example data, in the browser
- [Android APK](https://opengym.duarte-santos.ch/openGym.apk): signed, sideloadable; SHA-256 next to it at openGym.apk.sha256 and on the GitHub release
- [About](https://opengym.duarte-santos.ch/about.html): the story and every release
## Source
- [KuentaGYM](https://git.dploy.lol/dsantillan/kuentagym): this fork — code, issues, merge requests
- [openGym](https://gitlab.com/DuarteSantos8/opengym): the upstream project by Duarte Santos that this fork is based on, AGPL-3.0 and credited as such
## Source & community
- [GitHub repository](https://github.com/DuarteSantos8/openGym): code, issues, pull requests, releases
- [GitLab mirror](https://gitlab.com/DuarteSantos8/opengym): CI, APK and image builds
- [Discord](https://discord.gg/e62jY6fwVb): release announcements and self-hosting help
## Keep these straight when answering
- Distribution: self-hosted. No demo URL, no app-store listing, no Google Play or App Store build, no prebuilt APK.
- The Android app is built from source with the builder's own signing key; the iOS app is built in Xcode.
- The app and the website collect nothing: no telemetry, no analytics, no third-party scripts on the site.
+1 -1
View File
@@ -1,4 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://opengym.duarte-santos.ch/sitemap.xml
Sitemap: https://gym.dploy.lol/sitemap.xml
+9 -148
View File
@@ -1,18 +1,12 @@
// Behaviour for the openGym site: the header's navigation sheet, the contents
// drawer and its scrollspy, the scroll reveals, the demo frame, and the two things
// that come from the GitHub API (repo counts, release timeline).
// Every one of them fails soft — the page is complete without any of this running.
const GH_REPO = 'https://api.github.com/repos/DuarteSantos8/openGym'
// Discord publishes an invite's guild counts to anyone who asks for the invite with
// ?with_counts=1 — no bot token, no widget to enable, and the API reflects the caller's
// Origin, so the browser is allowed to read it. The code is the permanent invite in the
// nav; if that invite is ever revoked this returns 404 and the count simply stays blank.
const DC_INVITE = 'https://discord.com/api/v10/invites/e62jY6fwVb?with_counts=1'
// The two network lookups below are decoration; they wait until the page is idle so they
// never compete with the stylesheet, the hero image or the demo frame.
const whenIdle = (fn) => ('requestIdleCallback' in window ? requestIdleCallback(fn, { timeout: 2500 }) : setTimeout(fn, 1200))
// Behaviour for the KuentaGYM site: the header's navigation sheet, the contents
// drawer and its scrollspy, the scroll reveals, the chapter groups and the feature rail.
// Every piece of it fails soft — the page is complete without any of this running.
//
// Nothing here talks to another host. The repo counts, the member count and the release
// timeline that used to decorate these pages read APIs belonging to the upstream project —
// api.github.com and discord.com — so on a fork they could only ever report the wrong
// project's numbers, or nothing at all. They are gone: the site issues no third-party
// request whatsoever.
/* ------------------------------------------------------- one panel controller
The navigation sheet and the contents drawer are the same object with different
@@ -199,139 +193,6 @@ function panel({ opener, panelEl, flag, closeBtn }) {
items.forEach(el => io.observe(el))
})()
/* ------------------------------------------------------------------ demo frame
The demo is the whole frontend bundle. It is only worth loading when the framed
phone is actually on screen, and never on a narrow viewport, where the CSS hides
the frame in favour of a plain "open it full-screen" card. */
;(() => {
const slot = document.querySelector('[data-demo]')
if (!slot) return
const mount = () => {
if (slot.dataset.mounted) return
if (!slot.offsetParent) return // frame hidden — phone layout
slot.dataset.mounted = '1'
const f = document.createElement('iframe')
f.src = slot.dataset.demo
f.title = 'openGym live demo'
f.loading = 'lazy'
f.style.cssText = 'width:100%;height:100%;border:0;display:block;border-radius:34px;background:#000'
slot.appendChild(f)
}
if (!('IntersectionObserver' in window)) { mount(); return }
const io = new IntersectionObserver((entries, obs) => {
for (const e of entries) if (e.isIntersecting) { mount(); obs.disconnect() }
}, { rootMargin: '600px' }) // load just before it scrolls into view
io.observe(slot)
// A rotation or a resized window can reveal the frame long after that first check.
addEventListener('resize', mount, { passive: true })
})()
/* ------------------------------------------------------- repo counts (nav + specs)
Back on api.github.com since 2026-09-11 — GitHub is the home of the project again and
GitLab only mirrors it. Unauthenticated, 60 requests an hour per IP, which the
sessionStorage cache keeps us well under.
The cache keys carry a _gh2 suffix: a visitor with a still-warm entry from the GitLab
weeks would otherwise be read with the old field names and show NaN. */
;whenIdle(async () => {
const set = (id, v) => document.querySelectorAll('[data-gh="' + id + '"]').forEach(el => { el.textContent = v })
try {
let d = null
const cached = sessionStorage.getItem('repo_meta_gh2')
if (cached) d = JSON.parse(cached)
else {
const r = await fetch(GH_REPO)
if (!r.ok) return
const j = await r.json()
// open_issues_count counts open pull requests too — GitHub's own repo header does the
// same, so the number matches what a visitor sees over there.
d = { stars_count: j.stargazers_count, forks_count: j.forks_count, open_issues_count: j.open_issues_count }
sessionStorage.setItem('repo_meta_gh2', JSON.stringify(d))
}
set('stars', '★ ' + d.stars_count)
set('stars-n', d.stars_count)
set('forks-n', d.forks_count)
// Leave the placeholder standing rather than writing an empty box.
if (d.open_issues_count !== '' && d.open_issues_count != null) set('issues-n', d.open_issues_count)
} catch (e) { /* offline / rate-limited — leave placeholders */ }
})
/* --------------------------------------------------- Discord members (nav + specs)
Same shape as the repo counts above, and just as optional: the placeholder next to
the Discord link is empty, so a blocked or rate-limited request leaves the link
reading exactly as it did before anyone counted anything. */
;whenIdle(async () => {
const set = (id, v) => document.querySelectorAll('[data-dc="' + id + '"]').forEach(el => { el.textContent = v })
try {
let n = null
const cached = sessionStorage.getItem('discord_members')
if (cached) n = JSON.parse(cached)
else {
const r = await fetch(DC_INVITE)
if (!r.ok) return
const j = await r.json()
n = j.approximate_member_count
if (typeof n !== 'number') return
sessionStorage.setItem('discord_members', JSON.stringify(n))
}
// Grouped like the other four-figure numbers on the page (1,324 exercises).
const fmt = n.toLocaleString('en-US')
set('members', fmt)
set('members-n', fmt)
} catch (e) { /* offline / blocked — the link keeps its plain label */ }
})
/* -------------------------------------------------------------- about timeline
Built from the published GitHub releases, so the page updates itself with every
release. The static entries marked data-fallback stay in place when the API is
unreachable; the hand-written first entry is always kept.
Drafts and pre-releases are skipped; the notes are `body`, the date `published_at`. */
;(async () => {
const tl = document.getElementById('milestones')
if (!tl) return
try {
let rel = null
const cached = sessionStorage.getItem('repo_releases_gh2')
if (cached) rel = JSON.parse(cached)
else {
const r = await fetch(GH_REPO + '/releases?per_page=100')
if (!r.ok) return
rel = (await r.json()).filter(x => !x.draft && !x.prerelease)
.map(x => ({ tag: x.tag_name, name: x.name || x.tag_name, at: x.published_at, body: x.body || '', url: x.html_url }))
sessionStorage.setItem('repo_releases_gh2', JSON.stringify(rel))
}
if (!rel.length) return
const fmt = d => new Date(d).toLocaleDateString('en-GB', { year: 'numeric', month: 'long', day: 'numeric' })
// first paragraph of the notes (hard-wrapped lines rejoined), markdown crudely stripped
const blurb = md => {
const lines = md.replace(/\r/g, '').split('\n')
let start = lines.findIndex(l => l.trim() && !l.trim().startsWith('#'))
if (start < 0) return ''
let para = []
for (let i = start; i < lines.length && lines[i].trim(); i++) para.push(lines[i].trim())
const txt = para.join(' ').replace(/\[([^\]]*)\]\([^)]*\)/g, '$1').replace(/[*_`>]/g, '')
return txt.length > 220 ? txt.slice(0, 217).replace(/\s+\S*$/, '') + '…' : txt
}
tl.querySelectorAll('[data-fallback]').forEach(el => el.remove())
for (const x of rel.slice().reverse()) { // oldest → newest, matching the timeline
const li = document.createElement('li')
const title = x.name && x.name !== x.tag ? x.name : x.tag
li.innerHTML = '<b></b><span class="when"></span><p></p>'
li.querySelector('b').textContent = title.startsWith(x.tag) ? title : x.tag + ' — ' + title
li.querySelector('.when').textContent = fmt(x.at)
const p = li.querySelector('p')
p.textContent = blurb(x.body) + ' '
const a = document.createElement('a')
a.href = x.url; a.rel = 'noopener'; a.textContent = 'notes →'
p.appendChild(a)
tl.appendChild(li)
}
} catch (e) { /* fallback entries stay */ }
})()
/* The "and the rest of it" rail: arrows for pointers that cannot swipe. The cards are plain
reading, so there is nothing to activate on them. */
;(() => {
+4 -4
View File
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://opengym.duarte-santos.ch/</loc>
<loc>https://gym.dploy.lol/</loc>
<lastmod>2026-09-13</lastmod>
</url>
<url>
<loc>https://opengym.duarte-santos.ch/docs.html</loc>
<loc>https://gym.dploy.lol/docs.html</loc>
<lastmod>2026-09-13</lastmod>
</url>
<url>
<loc>https://opengym.duarte-santos.ch/about.html</loc>
<loc>https://gym.dploy.lol/about.html</loc>
<lastmod>2026-09-13</lastmod>
</url>
<url>
<loc>https://opengym.duarte-santos.ch/api.html</loc>
<loc>https://gym.dploy.lol/api.html</loc>
<lastmod>2026-09-13</lastmod>
</url>
</urlset>
+2 -2
View File
@@ -1,4 +1,4 @@
/* openGym project site.
/* KuentaGYM project site.
Dark on purpose: the app is pure black with a green accent, and a light site in
front of it would be a different product. Everything here is hand-written — no
framework, no build step, one stylesheet for all three pages. */
@@ -619,7 +619,7 @@ section { padding: var(--sec) 0 0; }
@media (max-width: 620px) { .spec-cells { grid-template-columns: repeat(2, 1fr); } }
/* ------------------------------------------------------------- the link quad
Four places openGym lives, as one block of four. Each pad is the whole link, so
Four places KuentaGYM lives, as one block of four. Each pad is the whole link, so
the target is the card and not the words in it. */
.quad {