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:
1 parent
f91cde15a1
commit
87bfd6d4c4
152 files changed
+1784
-1604
No files matched your search
+31
-40
@@ -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 & 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 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. */
|
||||
|
||||
Reference in new issue
Block a user