Build a Pomodoro Focus Timer with Synth Chimes and Brown Noise in HTML

A single HTML file Pomodoro timer with a progress ring, four-round cycles, distinct synthesized work and break bells, and a toggleable brown-noise bed.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior front-end developer and sound designer who builds calm, polished productivity tools.

Build Stillwater, a Pomodoro focus timer in one self-contained HTML file. It runs four focus rounds with a short break after each, and a long break after the fourth. An SVG progress ring empties as time passes. Every phase change plays a soft synthesized bell.

Rules:
1. Controls: large Start/Pause, Reset and Skip buttons, plus three rhythm presets: 25/5/15, 50/10/20 and a 20-second demo. Keyboard shortcuts: Space start or pause, R reset, S skip, N brown noise, M mute. Show a key legend.
2. Sound: use only the Web Audio API, created on the first click or key press. Build bells from sine partials at inharmonic ratios with exponential decay. Focus start is a rising two-note bell. A break is a falling three-note bell, with a fourth low note for the long break. Add preview buttons for both bells.
3. Brown noise: a looping generated buffer through a lowpass filter. It fades in and out gently, has an on/off switch, and stays at low volume. Include a visible Mute all switch.
4. Timing: base time on timestamps, not tick counts. Show four round dots, the current phase label and the time in the tab title.
5. Design: warm off-white background and one accent color per phase: green for focus, amber for short break, indigo for long break. Use tabular numerals and a two-column layout that stacks on phones. Keep colors high contrast. Turn off the ring animation when prefers-reduced-motion is set, and announce phase changes in a polite live region.

Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Stillwater, a calm Pomodoro timer with bells and brown noise.

Press Start or Space to begin a focus round. The ring empties as time runs down. When a round ends, a falling bell starts a rest. A rising bell calls you back to work. After four rounds you get a long break with a deeper bell. Switch on Brown noise (N) for a soft background hum, or mute everything (M). Pick Demo 20s to hear a full cycle in about two minutes.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Timestamps rather than tick counts keep the timer accurate even when the tab is throttled or hidden.
  • Rising and falling bell shapes make work and break cues easy to tell apart without looking at the screen.
  • Creating the AudioContext on first input and fading the noise avoids autoplay blocks and harsh clicks.

Paste into ChatGPT, Claude or Gemini. Save the reply's code as stillwater.html and open it in any browser, or run it in the chat's preview or canvas. Try the 20-second demo preset to hear the bells quickly.

Common edits

  • Change the presets to fit your routine, for example 45/15, and set a different round count before the long break.
  • Swap the bell frequencies or partial ratios for a deeper singing-bowl tone, or raise the lowpass cutoff for brighter pink-style noise.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Sound Effects & Music