sauna-timer-extension

Sauna Round Timer — Chrome extension

A round timer for the sauna in your browser toolbar: time in the heat, a break, the next round, then a final cool-down. A desktop notification marks the end of each part, even with the popup closed.

Made by DIVELUX, a small family brand in Irvine, California that makes handmade wool sauna hats. More free tools: https://diveluxsaunahat.com/pages/sauna-tools

The extension popup counting down round 1 of 2

Not medical advice. The limits (1–6 rounds, 1–35 minutes per round, 1–30 minutes of break) are bounds for a timer, not recommendations. Step out sooner if you feel dizzy, sick or faint.

What it does

Privacy and permissions

Permission Why
alarms Wake the extension at the end of each part, with the popup closed
notifications Tell you a part has ended
storage Remember the session settings and where the timer is, on this computer only

No host permissions, no content scripts, no network requests, no analytics, no remote code. Nothing leaves the browser. The only links are the two DIVELUX links at the bottom of the popup, which open in a new tab when clicked.

Install

From this folder (developer mode): open chrome://extensions, turn on Developer mode, click “Load unpacked”, choose this folder. Works in Chrome, Edge, Brave and other Chromium browsers, version 116 or newer.

Zip for the Chrome Web Store: sauna-timer-extension-1.0.0.zip holds only the files the extension needs (manifest at the root).

How it works

File What it is
manifest.json Manifest V3
session.js The session rules as pure functions: segments, start, pause, skip, catch-up, messages. Same rounds and limits as the <sauna-timer> element
background.js Service worker. Owns the state in chrome.storage.local, keeps one chrome.alarms alarm at the end of the current part, posts notifications, sets the badge
popup.html, popup.css, popup.js The popup. Draws the stored state four times a second and sends commands to the worker
icons/ 16, 32, 48, 128 px
store/ Web Store images: 1280×800 screenshot, 440×280 tile, 128 px icon
tests/ Unit tests and the browser test

Tests

node tests/session.test.mjs            # 41 checks of the session rules, no browser
NODE_PATH=/path/to/node_modules node tests/browser.cjs   # needs Playwright and its Chromium

The browser test loads the extension unpacked in Chromium (--load-extension), opens popup.html, changes the plan, starts the timer and checks that an alarm is set at the end of the part and the badge says R1. It then moves the end of the part 1.5 s ahead, lets the real alarm fire, and checks that the session moved to the break, the alarm was re-armed and a notification was created. It also checks pause, reset, that the state survives closing the popup, that there are no console errors or warnings, and that no network request is made. Last run: passed, Chromium from Playwright 1.50, headless.

Not checked by the test: how the notification looks and sounds on each operating system (that is up to the OS and its Do Not Disturb settings).

License

MIT, © 2026 DIVELUX Inc.