website/ holds the source of opengym.duarte-santos.ch — landing with live GitHub stats, docs and the story behind the app; no build step. The native app icons are now generated (capacitor-assets) from the same blocky dumbbell as the PWA icon, traced into resources/icon.svg, so the APK, home-screen PWA, and website favicon all match.
157 lines
8.3 KiB
HTML
157 lines
8.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>Docs — openGym</title>
|
|
<meta name="description" content="How to install openGym on Android, use it on iPhone, self-host it with Docker, import your training history, and keep backups.">
|
|
<meta name="theme-color" content="#0c0e12">
|
|
<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">
|
|
</head>
|
|
<body>
|
|
|
|
<nav><div class="wrap nav-in">
|
|
<a class="brand" href="/">
|
|
<img src="icon-180.png" alt="" width="26" height="26" style="border-radius:6px">
|
|
openGym
|
|
</a>
|
|
<div class="nav-links">
|
|
<a href="/#features" class="hide-s">Features</a>
|
|
<a href="/#screens" class="hide-s">Screenshots</a>
|
|
<a href="docs.html">Docs</a>
|
|
<a href="about.html" class="hide-s">About</a>
|
|
<a href="https://github.com/DuarteSantos8/openGym" rel="noopener"><span data-gh="stars">GitHub</span></a>
|
|
<a class="cta" href="/#download">Download</a>
|
|
</div>
|
|
</div></nav>
|
|
|
|
<main class="wrap prose">
|
|
<h1>Docs</h1>
|
|
<p class="lead">Everything you need to get openGym running — on a phone, or on your own
|
|
server. The deeper, maintainer-level docs live
|
|
<a href="https://github.com/DuarteSantos8/openGym/tree/main/docs" rel="noopener">in the repository</a>.</p>
|
|
|
|
<div class="toc">
|
|
<a href="#android">Android</a>
|
|
<a href="#iphone">iPhone</a>
|
|
<a href="#selfhost">Self-hosting</a>
|
|
<a href="#import">Import your history</a>
|
|
<a href="#backup">Backups</a>
|
|
<a href="#build">Build it yourself</a>
|
|
<a href="#faq">FAQ</a>
|
|
</div>
|
|
|
|
<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>Everything is stored on the phone itself. The only things fetched from the internet are
|
|
the exercise images and animations (from a CDN, on demand).</p>
|
|
|
|
<h2 id="iphone">Use on iPhone</h2>
|
|
<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
|
|
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, the native app runs on
|
|
your device with a free Apple ID (Apple expires the signature after 7 days; re-run
|
|
from Xcode to renew). 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> The <a href="https://duartesantos8.github.io/openGym/" rel="noopener">live demo</a>
|
|
runs in any browser with example data.</li>
|
|
</ul>
|
|
|
|
<h2 id="selfhost">Self-host with Docker</h2>
|
|
<p>The self-hosted flavor adds passkey profiles, sync across devices, and (optionally) an
|
|
admin dashboard. 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
|
|
cp .env.example .env
|
|
docker compose pull # prebuilt images (amd64 + arm64) — skip to build from source
|
|
docker compose up -d</code></pre>
|
|
<p>Open <code>http://localhost:8080</code>, tap <b>Create profile</b>, and you're in. The
|
|
first launch downloads the exercise media (~140 MB) once.</p>
|
|
<div class="note">Want it reachable from your phone with passkeys? You'll need an HTTPS
|
|
domain — a two-line change in <code>.env</code>. The full guide, including reverse-proxy
|
|
examples and the invite-only/admin options, is in
|
|
<a href="https://github.com/DuarteSantos8/openGym/blob/main/docs/SELF_HOSTING.md" rel="noopener">docs/SELF_HOSTING.md</a>.</div>
|
|
|
|
<h2 id="import">Import your training history</h2>
|
|
<p>Coming from another tracker? <b>Settings → Data → Import from another app</b> reads:</p>
|
|
<ul>
|
|
<li><b>FitNotes</b> (both the Android and the FitNotes 2 iOS export)</li>
|
|
<li><b>Strong</b> and <b>Hevy</b> (CSV exports — session lengths carry over, so the
|
|
activity heatmap fills in properly)</li>
|
|
<li><b>Apple Health</b> (body-weight history from the XML export)</li>
|
|
<li>…and anything else with date, exercise-name and weight/reps columns</li>
|
|
</ul>
|
|
<p>Exercise names are matched against the 1,324-exercise library; anything genuinely
|
|
ambiguous becomes one of your own custom exercises instead of being guessed at. A summary
|
|
shows exactly what will happen before anything is written, and importing is idempotent —
|
|
running it twice never duplicates a workout.</p>
|
|
|
|
<h2 id="backup">Backups</h2>
|
|
<p><b>Settings → Data → Export backup (JSON)</b> writes your entire log — plan, workouts,
|
|
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>
|
|
|
|
<h2 id="build">Build it yourself</h2>
|
|
<p>Everything on this page is built from the public repo:</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 / iOS app:</b> the Capacitor projects live in <code>frontend/android</code>
|
|
and <code>frontend/ios</code> — build, signing and distribution notes are in
|
|
<a href="https://github.com/DuarteSantos8/openGym/blob/main/docs/MOBILE.md" rel="noopener">docs/MOBILE.md</a>.</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.</p>
|
|
<h3>What data does openGym collect?</h3>
|
|
<p>None. There is no telemetry, no analytics, no crash reporting. The mobile app's only
|
|
network traffic is fetching exercise media from a CDN; a self-hosted instance talks only
|
|
to your own server.</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
|
|
whose whole point is that your data is yours.</p>
|
|
<h3>Mobile app or self-hosted — which one should I pick?</h3>
|
|
<p>If you just want to track your training: the mobile app. If you want your data on your
|
|
own hardware, synced across devices, with profiles for the people you train with: self-host.
|
|
You can start with the app and move to a server later — the backup file migrates everything.</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>
|
|
(CC-licensed): 1,324 exercises with animations and instructions in 10 languages.</p>
|
|
</main>
|
|
|
|
<footer><div class="wrap foot">
|
|
<span>openGym · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a></span>
|
|
<div class="links">
|
|
<a href="docs.html">Docs</a>
|
|
<a href="about.html" class="hide-s">About</a>
|
|
<a href="https://github.com/DuarteSantos8/openGym" rel="noopener">GitHub</a>
|
|
<a href="https://duartesantos8.github.io/openGym/" rel="noopener">Live demo</a>
|
|
</div>
|
|
</div></footer>
|
|
|
|
<script src="site.js" defer></script>
|
|
</body>
|
|
</html>
|