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.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a front-end developer and sound designer who builds calm, accessible web tools.
Build Tidewell, a guided breathing page with soft synthesized tones. A glowing circle expands on each inhale, rests during holds and shrinks on each exhale. A gentle sine tone rises in pitch and swells in volume on the inhale, then falls and fades on the exhale.
Rules:
- Offer three patterns as toggle buttons: Box (4-4-4-4), 4-7-8 (inhale 4, hold 7, exhale 8) and Coherent (5.5 in, 5.5 out). Show the active pattern's description and timing.
- Show the phase name, a whole-second countdown, a thin progress ring around the circle, completed cycles and session time.
- Controls: Start/Pause and Reset buttons. Space starts or pauses, keys 1-3 pick a pattern, M mutes and R resets. Everything also works with mouse and touch.
- Audio: use the Web Audio API only, created on the first click or key press. Route two quiet sine oscillators a fifth apart through a lowpass filter. Use smooth ramps with no clicks, play a soft chime at each phase change and show a visible sound toggle. Keep peak volume low.
- Design: deep navy background, teal for inhale, lavender for hold, peach for exhale, system fonts and generous spacing. The page fits 360-1280px wide.
- With prefers-reduced-motion, keep the circle still and show the breath through brightness and the ring instead.
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
- Exact timings for each pattern leave the model nothing to guess, so the phases, countdown and circle stay in sync on the first try.
- Asking for ramped gain and frequency on sine oscillators gives soft, click-free swells instead of harsh beeps.
- Naming the reduced-motion fallback and keyboard shortcuts up front builds accessibility in from the start.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as tidewell.html and open it in any browser, or run it in the chat's preview or canvas. Press Start to hear the tones.
Common edits
- Add a custom pattern with sliders for inhale, hold and exhale seconds, or a session timer that ends after 3, 5 or 10 minutes.
- Change the tone to a warmer triangle wave or a lower root note, or swap the navy and teal palette for a dawn theme.
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 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.
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.