DEV Community

Cover image for I vibe coded my own Spotify with one prompt. It really plays music, and it cost 8 cents.
Ezzaky Ab
Ezzaky Ab

Posted on Fully Autonomous

I vibe coded my own Spotify with one prompt. It really plays music, and it cost 8 cents.

A music player is a good test for an AI coding agent, because it cannot fake the result. Either sound comes out when you press play, or it does not.

So I opened an empty folder, typed one paragraph, and let the agent work. Six and a half minutes later I had Tidewave: playlists in a sidebar, albums with covers drawn in CSS, a track list, and a player bar that plays, pauses, skips and seeks. There is not a single audio file in the project. It cost 8 cents of model use.

Here is the real run, sped up:

The prompt

Build a music player like Spotify, called Tidewave. A sidebar with playlists, a grid of albums with covers drawn in CSS gradients, a track list, and a player bar at the bottom with play, pause, next, previous, a progress bar I can seek, and volume. There are no audio files: generate each song's melody with the Web Audio API so that it really plays. Dark design. Give it its own name, colours and logo; do not copy any brand. Plain HTML, CSS and JavaScript, no build tools and no installs.

Three things in that prompt did most of the work:

  • "There are no audio files: generate each song's melody." Without this line a model reaches for MP3 links that do not exist. Telling it where the sound comes from removes the one thing it cannot do.
  • "A progress bar I can seek." Naming the behaviour, not just the part, is what gets you a bar that works instead of a bar that is drawn.
  • "Do not copy any brand." You get a product of your own (Tidewave has its own logo and colours) instead of a lookalike.

What the agent actually did

  • It wrote the page, the styles and the player code.
  • It opened the app in its own browser and pressed play on the first album.
  • It checked that the track started, that the progress bar moved, and that the play button and the highlighted row changed.
  • It noticed the sidebar links were underlined, found that the browser was holding an older copy of the stylesheet, and fixed it.

That last part is the difference between a code generator and an agent. Nobody told it to look for the underline. It looked at its own result and did not like it.

Then I asked for one more thing

Add a heart button on every track, and a Liked songs playlist that collects them.

Under three minutes later every track had a heart, and a Liked Songs playlist filled up as I clicked. It did not rewrite the app; it changed the files that needed changing.

What it is, and what it is not

It is a real, working front end: you can click through it, and it makes sound. It is not a streaming service. There are no accounts, no licensed music, no servers. For a prototype, a demo, or the start of a real project, that is exactly the part you want done in minutes.

Try the same prompt

I used VibeCode.surf, a desktop code editor built around AI agents: they write the code, run it, and test it in a real browser on your own computer, with any model you choose. It runs on Mac, Windows and Linux and starts with a 7-day free trial. Disclosure: I am the founder.

Copy the prompt above, change the name, and see what yours looks like.

Top comments (0)