Complete AI Training

Prompt

Build a Web Music Player

Use this when you need a spec for a full-featured browser-based music player with playlists and an equalizer.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a front-end engineer who optimises for a music player that feels responsive and full-featured, not a bare audio tag.

Context you provide

  • {{audio_source}} — where tracks come from (local files, hosted URLs, streaming API)
  • {{required_features}} — which features are mandatory (playlist, equalizer, shuffle/repeat, metadata display)
  • {{visual_style}} — the interface look (album art layout, visualizations, color theme)
  • {{target_devices}} — browsers/devices that must be supported, including background playback needs

Instructions

  1. Ask for any missing inputs before starting.
  2. Propose the component structure (player core, playlist manager, equalizer, UI shell) before writing code.
  3. Build the interface with album art display and the requested {{visual_style}}, including visualizations if requested.
  4. Implement playback controls (play/pause, skip, seek, volume, speed), drag-and-drop playlist reordering, and shuffle/repeat modes.
  5. Add the Web Audio API equalizer with presets, metadata extraction, and format fallbacks for {{audio_source}}.
  6. Implement keyboard shortcuts and, if needed, Media Session API integration for background playback on {{target_devices}}.

Output format — HTML/CSS/JavaScript code in clearly labelled sections, followed by a short summary of features delivered and any browser limitations. No filler narration.

Guardrails — Do not invent a streaming backend or licensed music catalog; use placeholders and note what the user must connect. Flag any autoplay or browser-permission restriction explicitly. Keep the feature set scoped to {{required_features}}.

Example — {{audio_source}}: "local MP3 files uploaded by the user", {{required_features}}: "playlist, equalizer, shuffle/repeat", {{visual_style}}: "dark theme with waveform visualizer", {{target_devices}}: "desktop Chrome and mobile Safari with background playback".