Pomodoro Timer

A pomodoro timer that actually finishes on time. These spend their whole life in a hidden tab, which is exactly where a naively built timer breaks: browsers throttle background tabs to one tick a second and then roughly one a minute, so a timer counting down by ticks runs slow and interrupts you minutes late. This one records when the phase should end and checks the clock, so it is right however rarely the browser lets it redraw. The long break also lands after the right number of focus sessions — counting phases instead makes it arrive twice as often, which is the usual bug and takes a while to notice.

The default cycle

PhaseLengthWhen
Focus25 minRounds 1–4
Short break5 minAfter rounds 1, 2, 3
Long break15 minAfter round 4
All of themAdjustableThe numbers are a starting point

When to use it

  1. Work in focused blocks with enforced breaks.
  2. Time study sessions.
  3. Break a long task into manageable rounds.
  4. Remember to stand up and move.
  5. Structure a day of deep work.

How to Use

  1. Start a focus session.
  2. Stop when it ends — the break is the point of the technique.
  3. Adjust the durations to suit the work you actually do.

Features

  1. Accurate in a background tab
  2. Monotonic clock, immune to system time changes
  3. Configurable focus and break lengths
  4. Long break after the right number of focus rounds
  5. Optional sound and notification
  6. Round counter
  7. Nothing transmitted

FAQs

Does it keep time if I switch tabs?

Yes, and that is the main reason to use it. Browsers throttle hidden tabs so aggressively that a tick-counting timer runs minutes slow — which is worse than useless for something whose whole job is to interrupt you at the right moment. This checks the clock rather than counting.

What is the pomodoro technique?

Twenty-five minutes of focused work, a five-minute break, and a longer break after four rounds. The numbers are a starting point rather than a rule — the value is in the enforced stopping, not in the specific figures, and all four are adjustable here.

When does the long break happen?

After the configured number of completed focus sessions, four by default. Note that it counts focus sessions, not phases — timers that count phases give you a long break every other round, which is a common bug and quietly halves the structure.

Will it notify me?

If you allow it. Sound and browser notifications are both optional and off until you turn them on — permission is asked at the point of use rather than on page load, and a timer that makes noise without being asked is worse than one that stays quiet.

Do my settings persist?

For the session. Nothing is stored on a server and nothing survives a reload, which is the trade for needing no account.

Should I use 25 minutes?

Try it, then adjust. Some work suits fifty-minute blocks; some people focus better in fifteen. The technique's value is the enforced break, not the number — which is why every duration here is editable.

Technical Details

A pomodoro timer spends most of its life in a background tab, which is exactly the condition under which a naively built one stops working. Browsers throttle hidden tabs: intervals are clamped to one a second, and in Chrome to roughly one a minute after five minutes. A timer that decrements a counter on each tick therefore runs slow in the background and finishes minutes late — precisely when you are relying on it to interrupt you. This one records when the phase should end and compares against the clock on each repaint, so the interval is only a redraw trigger and the remaining time is correct however rarely it fires. `performance.now()` is used rather than `Date.now()` because it is monotonic and cannot be moved backwards by a clock adjustment mid-session. The phase cycle has a specific off-by-one worth naming: the long break belongs after a number of completed *focus* sessions, not after that many phases. Counting phases makes it arrive twice as often as configured, which is the commonest bug in these and is not obvious until you notice you are getting a long break every other round. Only a completed focus session increments the round counter here; a break never does. The countdown display rounds up rather than down, so it reaches zero only when the phase is genuinely over — a timer showing 0:00 while still running for another two hundred milliseconds reads as broken. Notification and sound are offered rather than assumed, because a timer that makes noise without being asked is worse than one that does nothing, and browser notification permission is requested at the point of use rather than on load. Nothing is transmitted and nothing is stored on a server; settings live in the page for the session.

Productivity Tools

Productivity Tools

  • ATS CV Generator
  • Checklist & To-Do Maker
  • Countdown Timer
  • Mind Map Maker
  • Bank Statement to CSV
  • Invoice Generator
  • Semantic Search in Your Files
  • Stopwatch