The barbell strength log you actually own.
Open-source · offline-first · self-hosted · MIT
Rampset is a training log for people who lift a barbell. Guided 5×5 and Madcow programs with automatic progression, freeform routines, per-side plate math, ramped warm-ups, and personal-record tracking — as an installable PWA you run yourself.
It's yours: reshape any program, rewrite the progression engines or add your own, keep every rep on your device, and export it all whenever. No subscription, no password to lose, no roadmap that abandons you.
Website & guide → https://isaacrowntree.github.io/rampset
- Program mode — StrongLifts-style 5×5 (A/B, Plus, Lite, Mini, Ultra, Ultra Max). Tap-cycle plate circles, warm-up ramps, per-side plate math, automatic +weight on success and deload after repeated fails.
- Madcow mode — weekly ramped 5×5: heavy / light / intensity days, a Friday PR set that sets next week's top, back-off sets.
- Routine mode — freeform Strong-style set rows, every set prefilled from your last session.
- Progress — estimated 1RM, top set, volume and reps per lift, with a personal-record ★ the moment you beat an all-time best; body-weight trend.
- History — a calendar of every session plus recaps. Export gives everything back.
- Offline-first — IndexedDB on the device is the source of truth; the whole app works with no network (gym dead zones, airplane mode), and screen wake-lock keeps it on during a workout.
git clone https://github.com/isaacrowntree/rampset
cd rampset
bun install
bun run dev # → http://localhost:3000, device-only (no accounts)
bun run preview # → http://localhost:8787, the real worker: accounts, syncbun run dev is plain Next.js, which can't run Durable Objects — so the app
offers Start on this device, a local-only account with no sync. Use
bun run preview to work on sign-in and sync: it builds the worker and serves
it under wrangler dev, with the Durable Objects, R2, rate limits and email
running locally (sent emails are written under .wrangler/tmp/email/).
bun run test # unit + component (Vitest, jsdom)
bun run test:integration # the Auth Durable Object on real workerd SQLite
bun run test:e2e # the whole app in Chromium against the built workerThe end-to-end suite (e2e/) is the one to trust. It drives real journeys —
signing up with a passkey (Chrome's virtual authenticator), training 5×5,
Madcow and a custom routine, correcting history, importing from StrongLifts,
recovering a lost phone by email, settings, deleting an account — against the
built worker with nothing mocked. The core sync journey runs online,
offline, on a flappy connection and on a slow one, and checks a workout
reaches the second phone exactly once.
Rampset deploys to Cloudflare Workers via the OpenNext adapter. Anyone can create an account on your instance: a passkey (Face ID, a fingerprint) is the login, and an optional recovery email gets them back in if they lose every device. Accounts, passkeys and sessions live in a Durable Object — there is nothing to configure in the dashboard.
bun run deploy # opennextjs-cloudflare build && deployThen, once deployed:
- Set your Cloudflare account id in
wrangler.jsonc(replace the placeholder) or exportCLOUDFLARE_ACCOUNT_ID. - Create the R2 bucket the
BACKUPSbinding points at (for cloud backups), and give it a lifecycle rule that expires hourly snapshots after 90 days:bunx wrangler r2 bucket lifecycle add liftlog-backups expire-snapshots snapshots/ --expire-days 90. (Each account also keeps at most 200 snapshots, whatever their age.) - Recovery email (optional): set
EMAIL_FROMinwrangler.jsoncto an address on a domain onboarded to Cloudflare Email Sending (bunx wrangler email sending enable <domain>), and set theAUTH_CODE_SECRETsecret that codes are hashed under (openssl rand -base64 32 | bunx wrangler secret put AUTH_CODE_SECRET). Without both, the app simply doesn't offer recovery by email. - Bot protection (optional): create a Turnstile widget and set the
TURNSTILE_SITE_KEYvar andTURNSTILE_SECRET_KEYsecret. Sign-up and recovery then ask for a Turnstile check.
Sign-in and email routes are rate limited per client IP, and sync/backup per
account (the ratelimits bindings). The journal takes a big backlog in batches
of 100 ops / 1 MB; a backup is capped at 10 MB, with one rollback snapshot kept
per hour and at most 200 per account. Sync and backup requests name the account
they're for, and the server refuses any that don't match the session.
What it costs: Workers and Durable Objects are free at household scale, and
there's no KV/cache to configure. The one paid gate is R2 — the app's
backups sit comfortably inside R2's 10 GB free tier, but Cloudflare requires a
payment method on file to enable R2 (you won't be charged under the free
limits). Prefer no card at all? Remove the BACKUPS R2 binding from
wrangler.jsonc — sync still works, and Settings → Download backup gives
you a complete file whenever you want.
Everything is on the phone first. Settings → Your data downloads a full
backup file, restores one (from any account — this is how you move to a new
one), exports a CSV, and imports your history from StrongLifts or Strong.
A phone from before accounts keeps its lifters' history untouched; Settings →
From before accounts moves each one into an account when you're ready.
Programs are templates in the repo (src/lib/programTemplates.ts); choose
StrongLifts 5×5, Madcow, or a custom routine you build in the Program tab.
- Next.js 16 App Router, all screens client components.
- IndexedDB (Dexie) is the on-device source of truth — fully functional offline. Cross-device sync (a per-account SQLite Durable Object that orders each account's ops, via durable-sync), accounts (passkeys + email recovery in an Auth Durable Object, via durable-auth), and backups (R2 snapshots) via Cloudflare Workers.
- Engines are pure, unit-tested functions in
src/lib/: linear progression- deload, Madcow ramps, routine prefill, plate-per-side math, Epley e1RM, PR detection. Editing them is the point — start there.
- PWA: manifest + service worker (network-first shell, offline fallback), installable to the home screen.
- Design: OLED black + IWF plate palette, per-user light/dark skins.
Rampset is one of three open-source pieces that fit together, each usable on its own:
- durable-sync — its offline-first sync: an op log in a Durable Object and an outbox on the phone.
- durable-auth — its passkey sign-in: accounts, sessions and email recovery in one Durable Object.
Write-ups: Rampset · durable-sync · durable-auth.
Fork it and go. The progression logic lives in src/lib/ (each engine has a
.test.ts next to it — write a failing test, make it pass). New programs are
data in src/lib/programTemplates.ts. It's MIT licensed: build the training app
you want, closed or open, and keep your data.
MIT. Rampset is an independent open-source project. "StrongLifts" and "Madcow" refer to well-known training methods and are not affiliated with or endorsed by this project.


