Skip to the demo
DIVELUX More free sauna tools

Sauna Timer Element

One HTML tag puts a sauna round timer on any web page: time in the heat, a break, repeat, final cool-down. No dependencies, no build step, free under the MIT license.

<sauna-timer rounds="3" heat="10" rest="10"></sauna-timer>
3
10
10

Your tag

<sauna-timer rounds="3" heat="10" rest="10"></sauna-timer>

Live element

Events it fires

Press Start, Skip ahead or Reset above. Each event carries the timer's state in event.detail.

  1. Nothing yet.

Add it to your site

Load the script once, anywhere on the page, then use the tag as often as you like.

Plain HTML

<script src="https://divelux.github.io/sauna-timer-element/sauna-timer.iife.js" defer></script>

<sauna-timer rounds="3" heat="10" rest="10"></sauna-timer>

As an ES module

<script type="module" src="https://divelux.github.io/sauna-timer-element/sauna-timer.js"></script>

With a bundler

npm install sauna-timer-element

import 'sauna-timer-element';

Attributes

AttributeWhat it setsRangeDefault
roundsRounds in the heat1–63
heatMinutes per round1–3510
restMinutes of break between rounds1–3010
cooldownMinutes of final cool-down1–30same as rest
mutedNo beep until the visitor turns it onpresent or notnot present
headingA title above the timerany textnone
creditoff hides the "Timer by DIVELUX" lineoffshown

Values outside the range are pulled back into it, and junk falls back to the default, so a typo cannot break the page. The full reference, with methods, events, CSS custom properties and parts, is in the README.

A timer, not advice. The ranges are limits for the element, not recommendations. General guidance is to keep a single stay in a hot sauna to no more than 15–20 minutes (see Harvard Health Publishing on sauna safety), and people new to the heat usually start much shorter. How a person feels always outranks the clock. Not medical advice.