GymTimer: A Minimalist Gym Timer

Anyone who does interval training knows the problem: your phone’s built-in clock doesn’t know what a Tabata is, third-party apps demand an account, serve ads, and occasionally fail to reach their server. GymTimer is my minimalist answer: a web app that does one thing—keep time during your workout—and does it offline.

There is no backend, no sign-up, and no tracking. Just four hand-written files, a handful of JavaScript lines, and a service worker.

GymTimer
Interval mode: four seconds to see where you are and what you need to do.

Seven Modes, Zero Mandatory Setup

The app covers the formats people actually use at the gym:

  • AMRAP — timed workout where the goal is completing as many rounds as possible. At the end, it asks for your score—completed rounds and extra reps—which gets saved to your history.
  • EMOM — every minute on the minute, for however many rounds you choose.
  • Tabata — 20 seconds of work, 10 seconds of rest, 8 rounds. Zero parameters to touch.
  • Interval — custom work and rest periods for any number of rounds you want.
  • Countdown — a straightforward countdown for rest periods and single timed efforts.
  • Stopwatch — for open-ended sets.
  • Sequence — multiple timers lined up in a row, each with its own name.

Open the app and a timer is already loaded: the Start button works immediately. You adjust values via numeric inputs or + and − buttons, and each mode remembers the last configuration you used.

Sequence mode deserves an extra line, because it’s the one I use the most. You build a lineup like “5-minute warm-up, then 4 rounds of intervals, then a Tabata, then a 2-minute cooldown countdown,” give each step a name, reorder them with the arrows, and hit Start. While running, the screen tells you where you are (“Step 2 of 4 · Interval”), and the background color shifts when you switch from work to rest.

What Really Matters: Readable from Across the Room and Audible

The display takes up the center of the screen with large digits, and the background color changes based on the current phase: one tint for work, one for rest, and another when finished. If your phone is sitting on the floor or propped against a rack, you can tell what state you’re in without even reading the numbers.

Audio is synthesized on the fly with the Web Audio API—no sound files to download. Three seconds before the end, short beeps kick in; on a phase change, a fuller tone plays; at the finish, a long signal sounds. The speaker button mutes everything, and your mute preference persists across sessions.

There is also screen wake lock: when the timer starts, the app asks the browser to keep the display awake. It’s the small detail that separates a real gym timer from a generic countdown, because nobody wants to unlock their phone with sweaty hands mid-set.

How to Install It on Your Phone (30 Seconds)

GymTimer is a PWA, so you install it straight from your browser without going through any app store.

  • Android, Chrome: Open the app URL, tap the three-dot menu in the top-right corner, and choose Add to Home screen (or Install app). The icon will appear alongside your regular apps.
  • iPhone and iPad, Safari: Open the URL, tap Share at the bottom, scroll down, and select Add to Home Screen, then Add. It has to be Safari—on iOS, other browsers cannot install PWAs.
  • Desktop, Chrome or Edge: Open the URL and click the install icon in the address bar (the one with a monitor and an arrow). The app opens in its own standalone window.

On first launch, the browser downloads everything and caches it: from that moment on, it works even in airplane mode, in a garage, or at a park with no reception.

Presets, History, and Shareable Links

Three features I use every week:

  • Presets. Save your current setup under a name (“Cindy,” “Short Metcon,” “90s Rest”) and it appears as a quick button right next to the inputs. Presets are filtered by mode, so they never clutter your interface.
  • History. Every completed workout is logged with its date, mode, duration, and—for AMRAPs—your score. The last 50 entries stay available in the panel at the bottom of the page, complete with a button to clear them.
  • Shareable links. The share button builds a URL encoding the mode and parameters, such as ?mode=interval&work=45&rest=15&rounds=8. Anyone opening it gets the timer pre-configured. On mobile it triggers the native share sheet; on desktop it copies the link to your clipboard. For a coach posting the daily workout in a group chat, it’s the handiest shortcut there is.

Three Languages and Keyboard Shortcuts

The interface is translated into English, Italian, and German, with live switching from the top menu. If you’re on a computer, the shortcuts are: Space to start and pause, R to reset, M to mute, and 1–7 to jump between modes.

Under the Hood

The project is intentionally bare-bones, and to me that’s its greatest strength: index.html, app.js, i18n.js, and style.css. No framework, no bundler, no node_modules. You open index.html in a browser and edit away. There’s no build step to remember and no dependencies going stale.

Two technical decisions paid off particularly well:

  1. Time is always computed as the difference between Date.now() and the start timestamp, never by accumulating frame deltas. If the browser skips a few requestAnimationFrame ticks because the tab is in the background, the timer stays accurate to the millisecond.
  2. Display state is centralized: a single function, snapshot(), determines what should be shown for any given elapsed time, and a single function applies that result to the DOM. Adding a new mode means touching five spots rather than rewriting the update loop.

What’s Left Out, by Design

No charts or analytics, no push notifications when the app is closed, no custom audio uploads, no cross-device sync. All of those sound useful in theory and prove costly in practice: each one would require a server or an extra permission, stripping the app of its defining quality—being a self-contained bundle of files that works anywhere, forever.

For a gym timer, honestly, that’s more than enough.