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
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
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 like this
Build a 16-Step Drum Sequencer with Tempo and Swing in One HTML File
A ready-to-paste prompt that makes an AI build a clickable 16-step drum machine with synthesized drums, preset grooves, tempo, swing and a moving playhead.
Build a Classroom Game Show Buzzer Board with Timer Sounds in HTML
A prompt that builds a single HTML quiz-night console with four colored team buzzers, correct and wrong sounds, scoring, and a ticking countdown that ends in a horn.
Build a Generative Ambient Chime Toy With Pentatonic Notes in One HTML File
A ready-to-paste prompt that builds a calm ambient music toy where every tap drops a glowing, drifting ripple and a pentatonic chime, with an auto-play mode.
Build a Guided Breathing Exercise App with Soft Rising Tones in One HTML File
A prompt that produces a single-file breathing guide with box, 4-7-8 and coherent patterns, an expanding circle and gentle synthesized sine swells.
Build a Piano Interval Ear-Training Quiz with Streak Scoring in One HTML File
A one-file interval ear trainer that plays two synthesized piano notes, gives four multiple-choice answers, tracks streaks and shows the answer on a keyboard.
Build a Pitch Pipe and Tuner Reference Tone Player for Guitar, Ukulele and Violin
A prompt that produces a single-file pitch pipe app playing sustained per-string reference tones for guitar, ukulele and violin, with A4 calibration from 432 to 446 Hz.