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

+53 -69
View File
@@ -1,6 +1,6 @@
<div align="center">
<img src="assets/banner.png" alt="openGym" width="720">
<img src="assets/banner.png" alt="KuentaGYM" width="720">
<br>
@@ -19,16 +19,8 @@ No account on someone else's server, no subscription, no ads. Just `docker compo
![Docker](https://img.shields.io/badge/Docker-compose-2496ED?style=flat-square&logo=docker&logoColor=white)
![No tracking](https://img.shields.io/badge/telemetry-none-f472b6?style=flat-square)
<br>
[![Pipeline](https://gitlab.com/DuarteSantos8/opengym/badges/main/pipeline.svg?style=flat-square)](https://gitlab.com/DuarteSantos8/opengym/-/pipelines)
[![Coverage](https://gitlab.com/DuarteSantos8/opengym/badges/main/coverage.svg?job=test:frontend&style=flat-square)](https://gitlab.com/DuarteSantos8/opengym/-/pipelines?ref=main)
[![Release](https://img.shields.io/github/v/release/DuarteSantos8/openGym?style=flat-square)](https://github.com/DuarteSantos8/openGym/releases)
![Last commit](https://img.shields.io/github/last-commit/DuarteSantos8/openGym?style=flat-square)
[![GitHub stars](https://img.shields.io/github/stars/DuarteSantos8/openGym?style=flat-square&logo=github&logoColor=white)](https://github.com/DuarteSantos8/openGym/stargazers)
[![Issues](https://img.shields.io/github/issues/DuarteSantos8/openGym?style=flat-square)](https://github.com/DuarteSantos8/openGym/issues)
[![Tests](https://github.com/DuarteSantos8/openGym/actions/workflows/test.yml/badge.svg)](https://github.com/DuarteSantos8/openGym/actions/workflows/test.yml)
[![Mirror](https://github.com/DuarteSantos8/openGym/actions/workflows/mirror.yml/badge.svg)](https://github.com/DuarteSantos8/openGym/actions/workflows/mirror.yml)
[![Discord](https://img.shields.io/badge/Discord-join-5865F2?style=flat-square&logo=discord&logoColor=white)](https://discord.gg/e62jY6fwVb)
[![Buy Me A Coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-support-FFDD00?style=flat-square&logo=buymeacoffee&logoColor=black)](https://buymeacoffee.com/duartesantos)
[![Tests](https://git.dploy.lol/dsantillan/kuentagym/actions/workflows/test.yml/badge.svg?branch=main&style=flat-square)](https://git.dploy.lol/dsantillan/kuentagym/actions)
[![Images](https://git.dploy.lol/dsantillan/kuentagym/actions/workflows/docker-publish.yml/badge.svg?branch=main&style=flat-square)](https://git.dploy.lol/dsantillan/kuentagym/actions)
</div>
@@ -46,18 +38,18 @@ No account on someone else's server, no subscription, no ads. Just `docker compo
<div align="center">
### [🌐 opengym.duarte-santos.ch](https://opengym.duarte-santos.ch) · [📦 Source on GitHub](https://github.com/DuarteSantos8/openGym) · [🦊 GitLab mirror](https://gitlab.com/DuarteSantos8/opengym)
### [🌐 gym.dploy.lol](https://gym.dploy.lol) · [📦 Source on Gitea](https://git.dploy.lol/dsantillan/kuentagym)
Screenshots, docs and the APK download live on the site.<br>
<sub>Want to poke at it first? The <a href="https://opengym.duarte-santos.ch/demo/">in-browser
demo</a> is the real app with example data — no account, nothing to install.</sub>
A rebranded, self-hosted fork of [openGym](https://gitlab.com/DuarteSantos8/opengym) by Duarte
Santos — same AGPL v3.0 code, our own name and deployment. See [NOTICE.md](NOTICE.md) for
attribution.
</div>
## Why
Most workout apps lock your data behind a login on their servers, nag you to upgrade, or
disappear when the startup does. openGym is the opposite: **it runs on your box, your data
disappear when the startup does. KuentaGYM is the opposite: **it runs on your box, your data
stays in a folder you control, and it's yours to fork.** It still feels modern — installable
as a home-screen app, passkey sign-in, offline support, sync across your phone and laptop.
@@ -105,15 +97,15 @@ as a home-screen app, passkey sign-in, offline support, sync across your phone a
- 📦 **Yours to keep** — one-tap JSON export/import, guest mode, **no telemetry**; switching kg ↔ lb offers to convert every stored number
- 🤖 **Ask an AI about your training** (optional) — an [MCP server](mcp/README.md) lets a client like Claude Desktop or Cursor read your history in your own words: *"what did I bench last week?"*. Read-only, spawned locally by the client, nothing leaves your box. Not in the Docker build — if you don't use an AI assistant, it isn't there
- 🧠 **An AI coach that writes your plan** (optional, off by default) — answer a handful of questions and it designs a week of routines; later it reads what you actually logged and proposes changes, each one with the evidence behind it. You approve every change and can undo it. It runs on **your** server under **your** provider account — Anthropic, OpenAI, Gemini or any OpenAI-compatible endpoint (Ollama on your LAN counts) with a pasted API key on the default image, or the Claude Agent SDK / Codex CLI on a separate build. The phone app can use your instance or its own key. See [docs/AI_COACH.md](docs/AI_COACH.md)
- 📱 **Standalone Android app** — the whole tracker as a sideloadable APK: no account, no server, data on the phone, native workout reminders, and an **in-app update check** that downloads the next signed APK and verifies its checksum ([download](https://opengym.duarte-santos.ch))
- 📱 **Standalone Android app** — the whole tracker as a sideloadable APK: no account, no server, data on the phone, native workout reminders, and an **in-app update check** that downloads the next signed APK and verifies its checksum. This fork publishes no APK yet — build and sign it yourself, see [docs/MOBILE.md](docs/MOBILE.md)
## Quick start (self-host)
You need [Docker](https://docs.docker.com/get-docker/) with Compose.
```bash
git clone https://github.com/DuarteSantos8/openGym
cd openGym
git clone https://git.dploy.lol/dsantillan/kuentagym
cd KuentaGYM
cp .env.example .env
docker compose pull # grab prebuilt images (amd64 + arm64) — skip to build from source instead
docker compose up -d
@@ -122,18 +114,17 @@ docker compose up -d
Open **http://localhost:8080**, tap **Create profile**, and you're in. First launch downloads
the exercise media (~140 MB) once.
> **About that media:** it reaches openGym through
> **About that media:** it reaches KuentaGYM through
> [hasaneyldrm/exercises-dataset](https://github.com/hasaneyldrm/exercises-dataset), which
> redistributes [ExerciseDB v1](https://exercisedb.dev/) — its metadata and instruction text are
> MIT, but the images and animations are third-party content under *neither* that MIT license nor
> openGym's AGPL, and their ownership is currently disputed between Gym visual and ExerciseDB.
> openGym ships none of it: your instance downloads it from upstream. Reusing it yourself,
> KuentaGYM's AGPL, and their ownership is currently disputed between Gym visual and ExerciseDB.
> KuentaGYM ships none of it: your instance downloads it from upstream. Reusing it yourself,
> commercially or not, means clearing it with the rights holder — see [NOTICE.md](NOTICE.md).
The prebuilt images are published twice, from the same tag: `registry.gitlab.com/duartesantos8/opengym/{api,web}`
(what `docker-compose.yml` pulls) and `ghcr.io/duartesantos8/opengym-{api,web}` on GitHub — swap the
`image:` lines if you prefer GHCR. Prefer building the images yourself instead of pulling from a
registry? Drop the `pull` step and run `docker compose up -d --build` — you don't need Node or
a build step locally either way.
The images are published to this fork's own registry by `.gitea/workflows/docker-publish.yml`:
`git.dploy.lol/dsantillan/kuentagym-api` and `git.dploy.lol/dsantillan/kuentagym-web` (what
`docker-compose.yml` pulls). Prefer building them yourself? Drop the `pull` step and run
`docker compose up -d --build` — you don't need Node or a build step locally either way.
> Want it reachable from your phone over the internet with passkeys? You'll need an HTTPS
> domain — a two-line change in `.env`. See **[docs/SELF_HOSTING.md](docs/SELF_HOSTING.md)**.
@@ -145,11 +136,10 @@ no backend — everything stays on the phone, with native workout-day reminders
backups. Self-hosting gets you multi-device sync and profiles for friends & family; the
mobile app is the install-and-done flavor.
- **Android:** [**download the APK**](https://opengym.duarte-santos.ch) — or straight from
[GitLab's package registry](https://gitlab.com/DuarteSantos8/opengym/-/packages) or the
[GitHub release](https://github.com/DuarteSantos8/openGym/releases/latest), where every
build sits next to its `.sha256` — and sideload it; openGym is deliberately not on the Play
Store. Or build it yourself: **[docs/MOBILE.md](docs/MOBILE.md)**.
- **Android:** no APK is published for this fork yet, so build it yourself and sideload it —
**[docs/MOBILE.md](docs/MOBILE.md)**. KuentaGYM is deliberately not on the Play Store. Once you
attach a signed APK to a release on the fork's Gitea repository, the app's update check starts
offering it to installed copies.
- **iPhone:** Apple doesn't allow installing apps outside the App Store, so there is no iOS
download. Self-host and add it to your home screen from Safari (it's a full PWA), or build
the native app onto your own device from Xcode — see **[docs/MOBILE.md](docs/MOBILE.md)**.
@@ -173,7 +163,7 @@ mobile app is the install-and-done flavor.
- **api/** — Node with no framework, two dependencies (`@simplewebauthn/server` for passkeys, `web-push` for notifications), storing everything as plain JSON files under `./data`
- **web/** — a multi-stage image that builds the frontend and serves it with nginx, proxying `/api` to the backend so it's all on **one origin** (passkeys require this)
The full HTTP API is documented as an OpenAPI spec in [`api/openapi.yaml`](api/openapi.yaml) — browsable at [opengym.duarte-santos.ch/api.html](https://opengym.duarte-santos.ch/api.html).
The full HTTP API is documented as an OpenAPI spec in [`api/openapi.yaml`](api/openapi.yaml) — browsable at [gym.dploy.lol/api.html](https://gym.dploy.lol/api.html).
## Your data
@@ -195,7 +185,7 @@ All via `.env` (see `.env.example`):
| `NGINX_PORT` | Port the web container listens on, inside the container | `80` |
| `BACKEND` | Name of the API service that `/api` is proxied to — change it if yours isn't called `api` | `api` |
| `PORT` | Port the API listens on; the web container proxies to the same value | `3000` |
| `RP_NAME` | Name shown in the passkey prompt | `openGym` |
| `RP_NAME` | Name shown in the passkey prompt | `KuentaGYM` |
| `SESSION_DAYS`| How long a sign-in lasts, in days | `90` |
| `ADMIN_UIDS` | User ids that get the admin dashboard (comma-separated) | *(none)* |
| `INVITE_ONLY` | Require an invite code to create a profile | *(off)* |
@@ -215,7 +205,7 @@ host side of that volume, not the variable.
## Roadmap
The plan lives in [ROADMAP.md](ROADMAP.md), and the
[GitHub milestones](https://github.com/DuarteSantos8/openGym/milestones) hold the issues. **A release every
[GitHub milestones](https://git.dploy.lol/dsantillan/kuentagym/milestones) hold the issues. **A release every
two weeks**, each one small and themed: the promised items, editing finished workouts, the session queue,
programmes and phases, the progression engine, cardio — then **v1.4.0, the foundation: storage moves to a
database and search is rebuilt, the one compatibility break** — then accounts (password and OIDC login,
@@ -248,57 +238,51 @@ in the Docker build.
## Community
- **[Discord](https://discord.gg/e62jY6fwVb)** — release announcements, self-hosting help and
the back-and-forth that would be a slow issue thread. Quickest way to get an answer.
- **[Issues](https://github.com/DuarteSantos8/openGym/issues)** — bugs, questions, self-hosting
help and ideas. (Issues still open on the GitLab mirror are read too.) Label a question
`question` and an idea `idea`, and it gets treated as one rather than as agreed-on work. Use
an issue over the Discord for anything the next person should be able to find by searching.
- **[Issues](https://git.dploy.lol/dsantillan/kuentagym/issues)** — bugs, questions, self-hosting
help and ideas. Label a question `question` and an idea `idea`, and it gets treated as one
rather than as agreed-on work.
- **Login trouble?** Most of it is an `RP_ID`/`ORIGIN` mismatch — check
[docs/SELF_HOSTING.md](docs/SELF_HOSTING.md) before opening an issue.
- **[Pull requests](https://github.com/DuarteSantos8/openGym/pulls)** — see
[CONTRIBUTING.md](CONTRIBUTING.md). Merge requests already open on the GitLab mirror are still
reviewed and land on `main` here; new work, please, as a pull request.
- **[Pull requests](https://git.dploy.lol/dsantillan/kuentagym/pulls)** — see
[CONTRIBUTING.md](CONTRIBUTING.md).
> **GitHub is home; GitLab is a mirror.** `github.com/DuarteSantos8/openGym` was offline from
> 2026-08-19 to 2026-09-10 while the account was suspended, and the project lived on GitLab in the
> meantime. It is back, and [gitlab.com/DuarteSantos8/opengym](https://gitlab.com/DuarteSantos8/opengym)
> is now kept in sync by a GitHub Actions workflow on every push to `main` and every `v*` tag —
> nothing is pushed or merged there by hand. The mirror stays because its CI builds the release
> artefacts: the signed APK, the multi-arch images (GitLab registry, mirrored to GHCR) and the SBOMs.
> (gitea.com/DuarteSantos/openGym is a plain mirror.) In [CHANGELOG.md](CHANGELOG.md), `!NN` is a
> GitLab merge request from those weeks; `#NN` refers to whichever tracker the report came through.
> **This is a fork.** KuentaGYM is a rebranded, self-hosted fork of
> [openGym](https://gitlab.com/DuarteSantos8/opengym) by Duarte Santos; the code, the licence
> (AGPL-3.0) and the changelog history are upstream's, and the name, the deployment and the
> container registry are this fork's. The project has moved between forges more than once, which is
> why [README](README.md), [CONTRIBUTING.md](CONTRIBUTING.md) and
> [docs/](docs/) still contain references to GitHub and GitLab pipelines: those describe upstream's
> infrastructure. Nothing here runs them — see [NOTICE.md](NOTICE.md) for the attribution, and
> [CHANGELOG.md](CHANGELOG.md) for release history, where `#NN` and `!NN` are upstream issue and
> merge-request numbers.
## Contributing
Issues and PRs welcome — see [CONTRIBUTING.md](CONTRIBUTING.md). Good first issues: more starter
plans, exercise-data languages, import from other trackers. **A ⭐ helps more people find it.**
plans, exercise-data languages, import from other trackers.
openGym is free and stays free: AGPL, no subscription, no paid tier, nothing held back for
sponsors. If it replaced a paid tracker for you and you want to chip in, there's a coffee button
below (and a badge at the top) — a star, a bug report or a merge request is worth just as much.
<a href="https://buymeacoffee.com/duartesantos" target="_blank">
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"
alt="Buy Me A Coffee"
style="height: 60px !important;width: 217px !important;">
</a>
KuentaGYM is free and stays free: AGPL, no subscription, no paid tier, nothing held back for
sponsors. This fork does not take donations, so there is no coffee button here — if you want to
support the work this is built on, that goes to upstream:
[openGym](https://gitlab.com/DuarteSantos8/opengym). A star, a bug report or a pull request on
either project is worth just as much.
## License
**openGym's own code** is [GNU AGPL v3.0](LICENSE) — free and open source. You can self-host,
use, modify and share it; if you run a modified version as a network service, you must offer that
version's source under the same license. Nobody can turn openGym into a closed, proprietary
product.
The code — upstream's and this fork's changes alike — is [GNU AGPL v3.0](LICENSE): free and open
source. You can self-host, use, modify and share it; if you run a modified version as a network
service, you must offer that version's source under the same license. Nobody can turn KuentaGYM
into a closed, proprietary product. Attribution to the original project is in
[NOTICE.md](NOTICE.md).
**Third-party content is not, and openGym cannot sublicense it.** The exercise metadata and
instruction text originate from [ExerciseDB v1](https://exercisedb.dev/) and reach openGym through
**Third-party content is not, and KuentaGYM cannot sublicense it.** The exercise metadata and
instruction text originate from [ExerciseDB v1](https://exercisedb.dev/) and reach KuentaGYM through
[hasaneyldrm/exercises-dataset](https://github.com/hasaneyldrm/exercises-dataset) under the
**MIT** license. The exercise images and animations are third-party content covered by neither
that license nor the AGPL, and their ownership is **currently unresolved** — the upstream dataset
attributes them to [Gym visual](https://gymvisual.com/) under a non-transferable permission, while
[ExerciseDB/AscendAPI](https://exercisedb.io/faq) claims to be their creator and owner. A
clarification has been requested. openGym does not redistribute them (your instance fetches them
clarification has been requested. KuentaGYM does not redistribute them (your instance fetches them
at first run) and does not relicense them. To reuse that media yourself, clear it with the rights
holder first.