{"id":346,"date":"2026-10-19T16:11:53","date_gmt":"2026-10-19T14:11:53","guid":{"rendered":"https:\/\/www.netlabor.it\/?p=346"},"modified":"2026-11-20T16:35:24","modified_gmt":"2026-11-20T15:35:24","slug":"gymtimer-un-timer-da-palestra-minimalista","status":"publish","type":"post","link":"https:\/\/www.netlabor.it\/en\/gymtimer-un-timer-da-palestra-minimalista\/","title":{"rendered":"GymTimer: A Minimalist Gym Timer"},"content":{"rendered":"\n<div class=\"wp-block-bogo-language-switcher\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Anyone who does interval training knows the problem: your phone&#8217;s built-in clock doesn&#8217;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\u2014keep time during your workout\u2014and does it offline.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is no backend, no sign-up, and no tracking. Just four hand-written files, a handful of JavaScript lines, and a service worker.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"481\" height=\"1024\" src=\"https:\/\/www.netlabor.it\/netlabor\/wp-content\/uploads\/2026\/11\/gymtimer-481x1024.webp\" alt=\"GymTimer\" class=\"wp-image-188\" srcset=\"https:\/\/www.netlabor.it\/netlabor\/wp-content\/uploads\/2026\/11\/gymtimer-481x1024.webp 481w, https:\/\/www.netlabor.it\/netlabor\/wp-content\/uploads\/2026\/11\/gymtimer-141x300.webp 141w, https:\/\/www.netlabor.it\/netlabor\/wp-content\/uploads\/2026\/11\/gymtimer-768x1636.webp 768w, https:\/\/www.netlabor.it\/netlabor\/wp-content\/uploads\/2026\/11\/gymtimer-721x1536.webp 721w, https:\/\/www.netlabor.it\/netlabor\/wp-content\/uploads\/2026\/11\/gymtimer-600x1278.webp 600w, https:\/\/www.netlabor.it\/netlabor\/wp-content\/uploads\/2026\/11\/gymtimer.webp 796w\" sizes=\"auto, (max-width: 481px) 100vw, 481px\" \/><figcaption class=\"wp-element-caption\"><em><em>Interval mode: four seconds to see where you are and what you need to do.<\/em><\/em><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Seven Modes, Zero Mandatory Setup<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The app covers the formats people actually use at the gym:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>AMRAP<\/strong> \u2014 timed workout where the goal is completing as many rounds as possible. At the end, it asks for your score\u2014completed rounds and extra reps\u2014which gets saved to your history.<\/li>\n\n\n\n<li><strong>EMOM<\/strong> \u2014 every minute on the minute, for however many rounds you choose.<\/li>\n\n\n\n<li><strong>Tabata<\/strong> \u2014 20 seconds of work, 10 seconds of rest, 8 rounds. Zero parameters to touch.<\/li>\n\n\n\n<li><strong>Interval<\/strong> \u2014 custom work and rest periods for any number of rounds you want.<\/li>\n\n\n\n<li><strong>Countdown<\/strong> \u2014 a straightforward countdown for rest periods and single timed efforts.<\/li>\n\n\n\n<li><strong>Stopwatch<\/strong> \u2014 for open-ended sets.<\/li>\n\n\n\n<li><strong>Sequence<\/strong> \u2014 multiple timers lined up in a row, each with its own name.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Open the app and a timer is already loaded: the <strong>Start<\/strong> button works immediately. You adjust values via numeric inputs or <code>+<\/code> and <code>\u2212<\/code> buttons, and each mode remembers the last configuration you used.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Sequence<\/strong> mode deserves an extra line, because it&#8217;s the one I use the most. You build a lineup like <em>&#8220;5-minute warm-up, then 4 rounds of intervals, then a Tabata, then a 2-minute cooldown countdown,&#8221;<\/em> give each step a name, reorder them with the arrows, and hit Start. While running, the screen tells you where you are (<em>&#8220;Step 2 of 4 \u00b7 Interval&#8221;<\/em>), and the background color shifts when you switch from work to rest.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What Really Matters: Readable from Across the Room and Audible<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">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&#8217;re in without even reading the numbers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Audio is synthesized on the fly with the Web Audio API\u2014no 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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is also screen wake lock: when the timer starts, the app asks the browser to keep the display awake. It&#8217;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.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Install It on Your Phone (30 Seconds)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GymTimer is a PWA, so you install it straight from your browser without going through any app store.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Android, Chrome:<\/strong> Open the app URL, tap the three-dot menu in the top-right corner, and choose <strong>Add to Home screen<\/strong> (or <strong>Install app<\/strong>). The icon will appear alongside your regular apps.<\/li>\n\n\n\n<li><strong>iPhone and iPad, Safari:<\/strong> Open the URL, tap <strong>Share<\/strong> at the bottom, scroll down, and select <strong>Add to Home Screen<\/strong>, then <strong>Add<\/strong>. It has to be Safari\u2014on iOS, other browsers cannot install PWAs.<\/li>\n\n\n\n<li><strong>Desktop, Chrome or Edge:<\/strong> 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.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Presets, History, and Shareable Links<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Three features I use every week:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Presets.<\/strong> Save your current setup under a name (<em>&#8220;Cindy,&#8221;<\/em> <em>&#8220;Short Metcon,&#8221;<\/em> <em>&#8220;90s Rest&#8221;<\/em>) and it appears as a quick button right next to the inputs. Presets are filtered by mode, so they never clutter your interface.<\/li>\n\n\n\n<li><strong>History.<\/strong> Every completed workout is logged with its date, mode, duration, and\u2014for AMRAPs\u2014your score. The last 50 entries stay available in the panel at the bottom of the page, complete with a button to clear them.<\/li>\n\n\n\n<li><strong>Shareable links.<\/strong> The share button builds a URL encoding the mode and parameters, such as <code>?mode=interval&amp;work=45&amp;rest=15&amp;rounds=8<\/code>. 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&#8217;s the handiest shortcut there is.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Three Languages and Keyboard Shortcuts<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The interface is translated into English, Italian, and German, with live switching from the top menu. If you&#8217;re on a computer, the shortcuts are: <strong>Space<\/strong> to start and pause, <strong>R<\/strong> to reset, <strong>M<\/strong> to mute, and <strong>1\u20137<\/strong> to jump between modes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Under the Hood<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The project is intentionally bare-bones, and to me that&#8217;s its greatest strength: <code>index.html<\/code>, <code>app.js<\/code>, <code>i18n.js<\/code>, and <code>style.css<\/code>. No framework, no bundler, no <code>node_modules<\/code>. You open <code>index.html<\/code> in a browser and edit away. There&#8217;s no build step to remember and no dependencies going stale.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two technical decisions paid off particularly well:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Time is always computed as the difference between <code>Date.now()<\/code> and the start timestamp<\/strong>, never by accumulating frame deltas. If the browser skips a few <code>requestAnimationFrame<\/code> ticks because the tab is in the background, the timer stays accurate to the millisecond.<\/li>\n\n\n\n<li><strong>Display state is centralized:<\/strong> a single function, <code>snapshot()<\/code>, 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.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">What&#8217;s Left Out, by Design<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">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\u2014being a self-contained bundle of files that works anywhere, forever.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a gym timer, honestly, that&#8217;s more than enough.<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-e5cf2f02-0c39-41e0-917e-17792418db73\" href=\"https:\/\/www.netlabor.it\/netlabor\/wp-content\/uploads\/2026\/11\/GymTimer.zip\">GymTimer App<\/a><a href=\"https:\/\/www.netlabor.it\/netlabor\/wp-content\/uploads\/2026\/11\/GymTimer.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-e5cf2f02-0c39-41e0-917e-17792418db73\">Download<\/a><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anyone who does interval training knows the problem: your phone&#8217;s built-in clock doesn&#8217;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\u2014keep time during your workout\u2014and does it offline. There is no backend, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"full-width-page-template.php","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/www.netlabor.it\/?p=184","footnotes":""},"categories":[6,7],"tags":[8,9,11,10],"class_list":["post-346","post","type-post","status-publish","format-standard","hentry","category-informatica","category-programmazione","tag-informatica","tag-programmazione","tag-sport","tag-web-app","en-US","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/www.netlabor.it\/wp-json\/wp\/v2\/posts\/346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netlabor.it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netlabor.it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netlabor.it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netlabor.it\/wp-json\/wp\/v2\/comments?post=346"}],"version-history":[{"count":1,"href":"https:\/\/www.netlabor.it\/wp-json\/wp\/v2\/posts\/346\/revisions"}],"predecessor-version":[{"id":348,"href":"https:\/\/www.netlabor.it\/wp-json\/wp\/v2\/posts\/346\/revisions\/348"}],"wp:attachment":[{"href":"https:\/\/www.netlabor.it\/wp-json\/wp\/v2\/media?parent=346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netlabor.it\/wp-json\/wp\/v2\/categories?post=346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netlabor.it\/wp-json\/wp\/v2\/tags?post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}