Project website + one icon everywhere
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.
This commit is contained in:
1 parent
768dee50ca
commit
becd2357ff
73 files changed
+4688
-48
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# opengym.duarte-santos.ch
|
||||
|
||||
Source of the project website — plain hand-written HTML/CSS/JS, no build step,
|
||||
served by nginx.
|
||||
|
||||
Not in this folder (added at deploy time):
|
||||
|
||||
- `img/` — the five screenshots from `../assets/screenshots/` plus `banner.png`
|
||||
- `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`)
|
||||
|
||||
`site.js` fetches the star/fork counts from the public GitHub API at view time.
|
||||
@@ -0,0 +1,112 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<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.">
|
||||
<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>About openGym</h1>
|
||||
<p class="lead">openGym wasn't planned as a product. It started as a tiny app I built for
|
||||
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
|
||||
training data on someone else's servers — usually all three. So I did the homelab thing:
|
||||
built a small mobile web page, put it on my own server, and started logging.</p>
|
||||
|
||||
<p>It turns out a tracker you build for yourself gets sharpened in a way products don't.
|
||||
Every awkward tap at the squat rack became that evening's fix. The guided workout flow,
|
||||
the weight pre-fills, the rest timer, the "ask my body weight before the first set"
|
||||
ritual — none of that came from a feature list. It came from actually standing in the
|
||||
gym with the thing in my hand.</p>
|
||||
|
||||
<p>Then friends wanted in. That brought passkey profiles — sign in with your fingerprint,
|
||||
no passwords, everyone's data separate — and sync, so the log survives any phone.
|
||||
Somewhere along the way the little page got rewritten into a proper React app, learned
|
||||
12 languages, grew a muscle map, importers for FitNotes, Strong, Hevy and Apple Health,
|
||||
and finally became a native Android app you can install from this site.</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
|
||||
should be inspectable, and nobody — including me — should be able to take a closed,
|
||||
paid version of it away from the community.</p>
|
||||
|
||||
<p>openGym still runs on the same homelab server it started on, and I still log every
|
||||
session with it. That's the quality bar: I'm the first user of every release.</p>
|
||||
|
||||
<p class="who" style="color:var(--faint)">— <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a></p>
|
||||
|
||||
<h2>Milestones</h2>
|
||||
<ul class="tl">
|
||||
<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><b>v1.0 — open-sourced</b><span class="when">July 20, 2026</span>
|
||||
<p>Docker-Compose self-hosting, passkey profiles, guided workouts, 1,324-exercise
|
||||
library. AGPL from day one.</p></li>
|
||||
<li><b>v1.1 — the community version</b><span class="when">July 21–22, 2026</span>
|
||||
<p>Twelve UI languages, custom exercises, equipment filters, supersets & cardio
|
||||
polish, push notifications with workout reminders, an admin dashboard with
|
||||
invite-only signup.</p></li>
|
||||
<li><b>v1.2 — redesign, muscle map & demo</b><span class="when">July 23, 2026</span>
|
||||
<p>A full visual redesign with a hand-drawn icon set, the muscle-balance body map,
|
||||
a browser demo, and importers that bring your history over from other apps.</p></li>
|
||||
<li><b>v1.2.2 — the mobile app</b><span class="when">July 23, 2026</span>
|
||||
<p>The standalone Android app: everything on your phone, no account, no server —
|
||||
distributed as a plain APK from this site, deliberately store-free.</p></li>
|
||||
</ul>
|
||||
|
||||
<h2>Principles</h2>
|
||||
<ul>
|
||||
<li><b>Your data is yours.</b> Local-first, one-file backups, no lock-in — leaving
|
||||
openGym must always be one export away.</li>
|
||||
<li><b>No telemetry, ever.</b> If a feature needs analytics to justify itself, it
|
||||
doesn't ship.</li>
|
||||
<li><b>Dependency-light.</b> The backend is one Node file with a single dependency;
|
||||
the frontend is React, a router and a store. Small enough to actually audit.</li>
|
||||
<li><b>Open source that stays open.</b> AGPL-3.0, so every fork and every hosted
|
||||
version owes its code back to everyone.</li>
|
||||
</ul>
|
||||
|
||||
<div class="hero-btns" style="justify-content:flex-start;margin:30px 0 10px">
|
||||
<a class="btn" href="/#download">Get openGym</a>
|
||||
<a class="btn ghost" href="https://github.com/DuarteSantos8/openGym" rel="noopener">Star it on GitHub</a>
|
||||
</div>
|
||||
</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>
|
||||
@@ -0,0 +1,156 @@
|
||||
<!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>
|
||||
@@ -0,0 +1,171 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>openGym — free, open-source gym & 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.">
|
||||
<meta name="theme-color" content="#0c0e12">
|
||||
<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/banner.png">
|
||||
<meta property="og:url" content="https://opengym.duarte-santos.ch/">
|
||||
<meta property="og:type" content="website">
|
||||
<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">
|
||||
<script type="application/ld+json">
|
||||
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"openGym",
|
||||
"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/",
|
||||
"downloadUrl":"https://opengym.duarte-santos.ch/openGym.apk",
|
||||
"author":{"@type":"Person","name":"Duarte Santos","url":"https://duarte-santos.ch"}}
|
||||
</script>
|
||||
</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>
|
||||
|
||||
<header class="hero"><div class="wrap">
|
||||
<div class="logo">
|
||||
<img src="icon-512.png" alt="openGym icon" width="108" height="108" style="border-radius:26px">
|
||||
</div>
|
||||
<h1>openGym</h1>
|
||||
<p class="tag">Your workouts. Your weights. Your data.</p>
|
||||
<p class="sub">A free, open-source gym & body-weight tracker.
|
||||
No subscription, no account required, no telemetry — ever.</p>
|
||||
<div class="hero-btns">
|
||||
<a class="btn" href="#download">Get openGym</a>
|
||||
<a class="btn ghost" href="https://duartesantos8.github.io/openGym/" rel="noopener">Try the live demo</a>
|
||||
</div>
|
||||
</div></header>
|
||||
|
||||
<section id="features"><div class="wrap">
|
||||
<p class="kicker">Everything a training log needs</p>
|
||||
<h2>Built in the gym, not in a boardroom</h2>
|
||||
<p class="lead">Every feature exists because it was needed on the gym floor — nothing is
|
||||
there to sell you anything.</p>
|
||||
<div class="grid">
|
||||
<div class="feat"><div class="ic">▶️</div><h3>Guided workouts</h3><p>Knows what day it is, starts today's session, pre-fills your weights from last time, times your rest, spots PRs.</p></div>
|
||||
<div class="feat"><div class="ic">🏋️</div><h3>1,324 exercises</h3><p>Searchable library with animated demos, filterable by body part and the equipment you actually own — plus your own custom exercises.</p></div>
|
||||
<div class="feat"><div class="ic">🗓️</div><h3>Weekly plan</h3><p>A routine per weekday, and any day can be rescheduled when life happens — without touching the plan.</p></div>
|
||||
<div class="feat"><div class="ic">⚖️</div><h3>Body weight & goal</h3><p>Interactive chart with your goal line; every change is colored by whether it moves toward it.</p></div>
|
||||
<div class="feat"><div class="ic">💪</div><h3>Muscle map</h3><p>A body diagram shaded by how much work each muscle got — and which ones got nothing.</p></div>
|
||||
<div class="feat"><div class="ic">🟩</div><h3>Activity heatmap</h3><p>A GitHub-style year view of your training time. Streaks included.</p></div>
|
||||
<div class="feat"><div class="ic">🔗</div><h3>Supersets & cardio</h3><p>Pair exercises back-to-back with one rest, and log time + speed where weight × reps makes no sense.</p></div>
|
||||
<div class="feat"><div class="ic">📥</div><h3>Bring your history</h3><p>Import from FitNotes, Strong, Hevy — or body weight straight out of an Apple Health export.</p></div>
|
||||
<div class="feat"><div class="ic">🌍</div><h3>12 languages</h3><p>Full UI translation, exercise instructions in 10 languages, loaded on demand.</p></div>
|
||||
<div class="feat"><div class="ic">🔑</div><h3>Passkeys, not passwords</h3><p>Self-hosted profiles sign in with Face ID / fingerprint. Each person's data stays their own.</p></div>
|
||||
<div class="feat"><div class="ic">🎨</div><h3>Designed, not assembled</h3><p>Light & dark themes, 8 accent colors, a hand-drawn icon set. Looks the same on every phone.</p></div>
|
||||
<div class="feat"><div class="ic">📦</div><h3>Yours to keep</h3><p>One-tap JSON export and import. Your training log is a file you own, not a row in someone's cloud.</p></div>
|
||||
</div>
|
||||
</div></section>
|
||||
|
||||
<section id="screens"><div class="wrap">
|
||||
<p class="kicker">Screenshots</p>
|
||||
<h2>Five screens, zero clutter</h2>
|
||||
<div class="shots">
|
||||
<figure><img src="img/home.png" alt="openGym home screen with weekly overview and body-weight chart" loading="lazy" width="1170" height="2532"><figcaption>Home</figcaption></figure>
|
||||
<figure><img src="img/workout.png" alt="Guided workout screen with sets, rest timer and pre-filled weights" loading="lazy" width="1170" height="2532"><figcaption>Workout</figcaption></figure>
|
||||
<figure><img src="img/stats.png" alt="Stats screen with activity heatmap and charts" loading="lazy" width="1170" height="2532"><figcaption>Stats</figcaption></figure>
|
||||
<figure><img src="img/plan.png" alt="Weekly plan screen with routines per weekday" loading="lazy" width="1170" height="2532"><figcaption>Plan</figcaption></figure>
|
||||
<figure><img src="img/library.png" alt="Exercise library with search and filters" loading="lazy" width="1170" height="2532"><figcaption>Library</figcaption></figure>
|
||||
</div>
|
||||
</div></section>
|
||||
|
||||
<section id="download"><div class="wrap">
|
||||
<p class="kicker">Get openGym</p>
|
||||
<h2>One app, two flavors</h2>
|
||||
<p class="lead">Same codebase, your choice of where the data lives: entirely on your phone,
|
||||
or on a server you control.</p>
|
||||
<div class="duo">
|
||||
<div class="card hl">
|
||||
<h3>📱 Mobile app</h3>
|
||||
<p class="for">For anyone — install and you're 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 via the share sheet</li>
|
||||
<li class="no">No cross-device sync</li>
|
||||
</ul>
|
||||
<a class="btn" href="openGym.apk" download>Download for Android</a>
|
||||
<p class="meta">v1.2.2 · 4.4 MB · Android 6.0+ · signed APK, sideload (your browser will ask — that's normal outside the Play Store)</p>
|
||||
<p class="meta"><b>iPhone?</b> Apple doesn't 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 class="card">
|
||||
<h3>🖥️ Self-hosted</h3>
|
||||
<p class="for">For homelabbers — and their friends & family.</p>
|
||||
<ul>
|
||||
<li>Sync across all your devices</li>
|
||||
<li>Passkey profiles for multiple people</li>
|
||||
<li>Your data readable on the desktop</li>
|
||||
<li>Works as a home-screen app on iPhone & Android</li>
|
||||
<li>One <code>docker compose up</code></li>
|
||||
</ul>
|
||||
<a class="btn ghost" href="docs.html#selfhost">Self-hosting guide</a>
|
||||
<p class="meta">AGPL-3.0 · prebuilt images for amd64 + arm64</p>
|
||||
</div>
|
||||
</div>
|
||||
</div></section>
|
||||
|
||||
<section id="story"><div class="wrap">
|
||||
<div class="story">
|
||||
<p class="kicker">Why openGym exists</p>
|
||||
<blockquote>openGym started as <strong>a tiny app I built for myself</strong> — I just wanted to
|
||||
log my workouts and weight without a subscription app claiming my training data.
|
||||
Then friends wanted in, then it grew a mind of its own.</blockquote>
|
||||
<p class="who">— Duarte Santos · <a href="about.html">read the whole story →</a></p>
|
||||
</div>
|
||||
</div></section>
|
||||
|
||||
<section id="opensource"><div class="wrap">
|
||||
<p class="kicker">Open source</p>
|
||||
<h2>AGPL-licensed, forever</h2>
|
||||
<p class="lead">The code is public, the license keeps every fork open, and there is no
|
||||
commercial version waiting behind a curtain. If openGym is useful to you,
|
||||
a ⭐ on GitHub helps more people find it.</p>
|
||||
<div class="os">
|
||||
<div class="stat"><b data-gh="stars-n">–</b><span>GitHub stars</span></div>
|
||||
<div class="stat"><b data-gh="forks-n">–</b><span>forks</span></div>
|
||||
<div class="stat"><b data-gh="issues-n">–</b><span>open issues</span></div>
|
||||
<div class="stat"><b>1,324</b><span>exercises</span></div>
|
||||
<div class="stat"><b>12</b><span>languages</span></div>
|
||||
</div>
|
||||
<div class="hero-btns" style="justify-content:flex-start;margin-top:24px">
|
||||
<a class="btn ghost" href="https://github.com/DuarteSantos8/openGym" rel="noopener">openGym on GitHub</a>
|
||||
<a class="btn ghost" href="https://github.com/DuarteSantos8/openGym/blob/main/CONTRIBUTING.md" rel="noopener">Contributing</a>
|
||||
<a class="btn ghost" href="https://github.com/DuarteSantos8/openGym/blob/main/CHANGELOG.md" rel="noopener">Changelog</a>
|
||||
</div>
|
||||
</div></section>
|
||||
|
||||
<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>
|
||||
@@ -0,0 +1,20 @@
|
||||
// Live GitHub numbers in the nav + open-source strip. Fails silently — the site
|
||||
// works fine without them (unauthenticated API: 60 req/h per IP, cached below).
|
||||
(async () => {
|
||||
const set = (id, v) => document.querySelectorAll('[data-gh="' + id + '"]').forEach(el => { el.textContent = v })
|
||||
try {
|
||||
let d = null
|
||||
const cached = sessionStorage.getItem('gh_repo')
|
||||
if (cached) d = JSON.parse(cached)
|
||||
else {
|
||||
const r = await fetch('https://api.github.com/repos/DuarteSantos8/openGym')
|
||||
if (!r.ok) return
|
||||
d = await r.json()
|
||||
sessionStorage.setItem('gh_repo', JSON.stringify({ stargazers_count: d.stargazers_count, forks_count: d.forks_count, open_issues_count: d.open_issues_count }))
|
||||
}
|
||||
set('stars', '★ ' + d.stargazers_count)
|
||||
set('stars-n', d.stargazers_count)
|
||||
set('forks-n', d.forks_count)
|
||||
set('issues-n', d.open_issues_count)
|
||||
} catch (e) { /* offline / rate-limited — leave placeholders */ }
|
||||
})()
|
||||
@@ -0,0 +1,159 @@
|
||||
/* openGym project site — matches the app: dark, lime accent, cards, system font. */
|
||||
:root {
|
||||
--bg: #0c0e12; --card: #16181d; --card2: #1c1f26; --line: #23262d;
|
||||
--fg: #f2f2f7; --dim: #8e8e93; --faint: #6e6e73;
|
||||
--acc: #30d158; --acc-dim: rgba(48, 209, 88, .12);
|
||||
color-scheme: dark;
|
||||
}
|
||||
* { margin: 0; box-sizing: border-box; }
|
||||
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
|
||||
body {
|
||||
background: var(--bg); color: var(--fg);
|
||||
font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
}
|
||||
a { color: var(--acc); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
img { max-width: 100%; }
|
||||
|
||||
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
|
||||
|
||||
/* ---------- nav ---------- */
|
||||
nav {
|
||||
position: sticky; top: 0; z-index: 10;
|
||||
background: rgba(12, 14, 18, .82); backdrop-filter: blur(14px);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.nav-in { display: flex; align-items: center; gap: 20px; height: 58px; }
|
||||
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); }
|
||||
.brand:hover { text-decoration: none; }
|
||||
.brand svg { width: 26px; height: 26px; }
|
||||
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
|
||||
.nav-links a { color: var(--dim); font-size: 14.5px; font-weight: 500; }
|
||||
.nav-links a:hover { color: var(--fg); text-decoration: none; }
|
||||
.nav-links a.cta { color: #0c0e12; background: var(--acc); padding: 7px 14px; border-radius: 10px; font-weight: 600; }
|
||||
.icn { fill: none; stroke: var(--acc); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
|
||||
|
||||
/* ---------- hero ---------- */
|
||||
header.hero { text-align: center; padding: 74px 0 30px; }
|
||||
.hero .logo {
|
||||
width: 108px; height: 108px; margin: 0 auto 22px; border-radius: 26px;
|
||||
background: var(--card); display: flex; align-items: center; justify-content: center;
|
||||
box-shadow: 0 0 90px rgba(48, 209, 88, .14);
|
||||
}
|
||||
.hero .logo svg { width: 66px; height: 66px; }
|
||||
.hero h1 { font-size: clamp(38px, 7vw, 56px); letter-spacing: -.03em; }
|
||||
.hero .tag { font-size: clamp(17px, 3vw, 21px); color: var(--dim); margin: 10px auto 6px; max-width: 640px; }
|
||||
.hero .sub { color: var(--faint); font-size: 15px; max-width: 560px; margin: 0 auto; }
|
||||
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
|
||||
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 13px;
|
||||
background: var(--acc); color: #0c0e12; font-weight: 600; font-size: 16px;
|
||||
}
|
||||
.btn:hover { text-decoration: none; filter: brightness(1.08); }
|
||||
.btn.ghost { background: var(--card2); color: var(--fg); }
|
||||
.btn .ct { background: rgba(0, 0, 0, .18); border-radius: 7px; padding: 1px 8px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
|
||||
.btn.ghost .ct { background: rgba(255, 255, 255, .08); }
|
||||
|
||||
/* ---------- sections ---------- */
|
||||
section { padding: 54px 0 10px; }
|
||||
.kicker { color: var(--acc); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
|
||||
h2 { font-size: clamp(26px, 4.5vw, 34px); letter-spacing: -.02em; margin: 6px 0 10px; }
|
||||
.lead { color: var(--dim); max-width: 680px; margin-bottom: 30px; }
|
||||
|
||||
/* ---------- feature grid ---------- */
|
||||
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
|
||||
.feat { background: var(--card); border-radius: 16px; padding: 18px; }
|
||||
.feat .ic {
|
||||
width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
|
||||
justify-content: center; font-size: 19px; margin-bottom: 12px; background: var(--acc-dim);
|
||||
}
|
||||
.feat h3 { font-size: 16px; margin-bottom: 4px; }
|
||||
.feat p { font-size: 13.5px; color: var(--dim); }
|
||||
|
||||
/* ---------- screenshots ---------- */
|
||||
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
|
||||
.shots figure { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
|
||||
.shots img {
|
||||
width: min(240px, 62vw); border-radius: 22px; border: 1px solid var(--line);
|
||||
display: block; background: var(--card);
|
||||
}
|
||||
.shots figcaption { color: var(--faint); font-size: 13px; margin-top: 8px; }
|
||||
|
||||
/* ---------- flavors ---------- */
|
||||
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
|
||||
.card {
|
||||
background: var(--card); border-radius: 18px; padding: 24px; border: 1px solid transparent;
|
||||
}
|
||||
.card.hl { border-color: rgba(48, 209, 88, .35); }
|
||||
.card h3 { font-size: 20px; margin-bottom: 4px; display: flex; gap: 9px; align-items: center; }
|
||||
.card .for { color: var(--faint); font-size: 13.5px; margin-bottom: 14px; }
|
||||
.card ul { list-style: none; padding: 0; margin: 0 0 18px; }
|
||||
.card li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; color: var(--dim); }
|
||||
.card li::before { content: "✓"; position: absolute; left: 2px; color: var(--acc); font-weight: 700; }
|
||||
.card li.no::before { content: "—"; color: var(--faint); }
|
||||
.card .btn { width: 100%; justify-content: center; }
|
||||
.meta { font-size: 12.5px; color: var(--faint); margin-top: 10px; text-align: center; }
|
||||
|
||||
/* ---------- story / quote ---------- */
|
||||
.story {
|
||||
background: linear-gradient(160deg, var(--card) 0%, #12161c 100%);
|
||||
border-radius: 20px; padding: clamp(24px, 5vw, 44px); margin-top: 6px;
|
||||
}
|
||||
.story blockquote { font-size: clamp(18px, 3vw, 23px); line-height: 1.5; letter-spacing: -.01em; max-width: 760px; }
|
||||
.story blockquote strong { color: var(--acc); font-weight: 600; }
|
||||
.story .who { color: var(--faint); margin-top: 16px; font-size: 14.5px; }
|
||||
|
||||
/* ---------- open source strip ---------- */
|
||||
.os { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
|
||||
.stat { background: var(--card); border-radius: 14px; padding: 16px 22px; min-width: 130px; }
|
||||
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
|
||||
.stat span { color: var(--faint); font-size: 13px; }
|
||||
|
||||
/* ---------- docs / prose pages ---------- */
|
||||
.prose { max-width: 760px; padding: 46px 0 20px; }
|
||||
.prose h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -.02em; margin-bottom: 8px; }
|
||||
.prose > p.lead { margin-bottom: 34px; }
|
||||
.prose h2 { font-size: 24px; margin: 44px 0 10px; }
|
||||
.prose h3 { font-size: 17.5px; margin: 26px 0 8px; }
|
||||
.prose p, .prose li { color: #c7c7cc; font-size: 15.5px; }
|
||||
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
|
||||
.prose li { margin: 5px 0; }
|
||||
.note {
|
||||
background: var(--acc-dim); border-left: 3px solid var(--acc);
|
||||
border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 16px 0; font-size: 14.5px;
|
||||
}
|
||||
pre {
|
||||
background: #0a0c10; border: 1px solid var(--line); border-radius: 12px;
|
||||
padding: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; margin: 14px 0;
|
||||
}
|
||||
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
|
||||
p code, li code { background: var(--card2); border-radius: 6px; padding: 1.5px 6px; font-size: 13.5px; }
|
||||
.toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
|
||||
.toc a { background: var(--card); border-radius: 999px; padding: 7px 15px; font-size: 13.5px; color: var(--dim); }
|
||||
.toc a:hover { color: var(--fg); text-decoration: none; }
|
||||
|
||||
/* ---------- timeline ---------- */
|
||||
.tl { list-style: none; padding: 0; margin: 26px 0; position: relative; }
|
||||
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
|
||||
.tl li { position: relative; padding: 0 0 26px 34px; }
|
||||
.tl li::before {
|
||||
content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px;
|
||||
border-radius: 50%; background: var(--bg); border: 3px solid var(--acc);
|
||||
}
|
||||
.tl b { display: block; font-size: 16.5px; color: var(--fg); }
|
||||
.tl .when { color: var(--faint); font-size: 13px; }
|
||||
.tl p { margin-top: 4px; }
|
||||
|
||||
/* ---------- footer ---------- */
|
||||
footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 30px 0 46px; }
|
||||
.foot { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; color: var(--faint); font-size: 14px; }
|
||||
.foot .links { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
|
||||
.foot a { color: var(--dim); }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.nav-links { gap: 12px; }
|
||||
.nav-links a.hide-s { display: none; }
|
||||
.nav-in { gap: 12px; }
|
||||
header.hero { padding-top: 52px; }
|
||||
}
|
||||
Reference in new issue
Block a user