$ sudo play --mood friday-deploy
That is the tagline, not a command. There is nothing to run in a terminal. The app shows that line inside its window, and it changes as you pick a genre and a mood.
A small macOS menu bar app that picks today's Spotify playlist for you, based on what you are coding and how you feel about it.
Pick a genre. Pick a developer mood. Press play.
The documentation lives at sudoplay.dev.
Sudo Play 1.0.4 is out, signed and notarized, for Macs with Apple silicon.
Follow the Status list in docs/INSTRUCTIONS.md to see how far along it is.
You choose a genre, like rock or lofi, and a mood, like Friday Deploy or Debugging. The app suggests one playlist for today.
The pick is the same all day, and the same for everyone who chooses the same genre and mood. So if a playlist fits your afternoon, you can tell someone else how to find it. Tomorrow it changes.
Press Play and it opens in Spotify. A short line under the buttons says what is playing. If Spotify is closed, Sudo Play starts it first and then plays, which can take a few seconds. If Spotify is still starting after about 20 seconds, the line asks you to press Play again. If you chose "open only" or the web player in Settings, the playlist opens in Spotify or in your browser and you press play there, so the line says where it opened. You can cycle to another playlist with Next, or hit Surprise me and let it choose both for you.
It works from the keyboard too. Press Enter to play, N for Next, S for Surprise me and Esc to close the window. Tab moves between the genre chips, the mood chips and the buttons, and the arrow keys pick a chip. Screen readers read a mood by its name, without the emoji.
There is an optional daily reminder, so a playlist is waiting when you start work.
| Mood | When |
|---|---|
| Shipped It | Something just went live |
| Coffee Needed | Slow start, low fuel |
| Blue Monday | Low energy, start of the week |
| Flow State | Deep focus, no distractions |
| Debugging | Calm and patient, long investigation |
| Friday Deploy | Brave, energetic, a bit risky |
| Agent Mode | Calm, watching the machines work |
| Night Shift | Wired, past midnight, one more commit |
Genres and moods live in the catalog, so adding one takes no code.
You need a Mac with Apple silicon, M1 or later, and the Spotify app or a browser. There is no Intel build yet.
- Download Sudo-Play-1.0.4-arm64.dmg (163 MB) from the 1.0.4 release.
- Open the DMG and drag Sudo Play to Applications.
- Open Sudo Play. macOS asks once whether to open an app downloaded from the internet. Click Open.
The first time you press Play, macOS asks whether Sudo Play may control Spotify. Click Allow, so it can start the playlist in the Spotify app.
Coming from an earlier version? Download the DMG and drag Sudo Play to Applications, then choose Replace. Your settings stay. The app does not update itself.
This step is optional. In Terminal, run:
shasum -a 256 ~/Downloads/Sudo-Play-1.0.4-arm64.dmg
It should print c4ae4f0547b6b641c0739c47beba9f595bae1e4c51a7595f0d598e2ee62c03cd.
On this repository's GitHub page, choose Watch, then Custom, then Releases. Sudo Play does not check for updates itself, because the daily catalog download is its only network call.
You need a Mac, PHP 8.4 with Composer, and Node 22 or later. The .nvmrc file pins Node 22, so nvm use picks it.
git clone https://github.com/albertoarena/sudo-play.git
cd sudo-play
composer setup
php artisan native:runcomposer setup installs the PHP and JavaScript dependencies, creates .env and the app key, sets up the local database and builds the frontend. Run it once.
php artisan native:run starts the app. The first run also downloads Electron, so it takes a while. Stop it with Ctrl+C.
If you are changing the interface, run composer native:dev instead. It starts the app and the Vite dev server together, so your changes show up without a rebuild.
A copy of the catalog ships with the app, so it has playlists to suggest from the first run, even offline. To add one, see Adding a playlist.
To run the tests and checks, see CONTRIBUTING.md.
The catalog is one YAML file: catalog/playlists.yaml. Adding a playlist is a few lines and a pull request.
- id: rock-friday-deploy-01
title: Riffs for risky releases
url: https://open.spotify.com/playlist/XXXXXXXXXXXXXXXXXXXXXX
genre: rock
moods: [friday-deploy, flow-state]
curator: your-github-handleRules and examples are in CONTRIBUTING.md. A bot checks your file when you open the pull request and tells you if something is wrong.
Playlists do not wait for a release. Once merged, yours reaches everyone within a day.
The app makes one network call, to download the catalog file. No accounts, no analytics, no tracking, and nothing about you leaves your Mac.
See PRIVACY.md.
Playlists, fixes and ideas are welcome. Start with CONTRIBUTING.md. It explains how to add a playlist and how to run the checks. Forking to contribute needs no permission and keeps this project's name: TRADEMARK.md is about publishing your own version, not about pull requests.
- sudoplay.dev, the documentation site for the released app
- CONTRIBUTING.md, how to add a playlist or change the code
- PRIVACY.md, what the app sends and stores
- SECURITY.md, how to report a security problem
- docs/REQUIREMENTS.md, what the app does
- docs/INSTRUCTIONS.md, the build plan
- docs/DECISIONS.md, why things are the way they are
- docs/RELEASE.md, how a release is cut
This project is not affiliated with, endorsed by, or connected to Spotify. It uses no Spotify API and asks for no Spotify login. It only opens public playlist links that people have contributed.
Spotify is a trademark of Spotify AB.
MIT. Contributions are made under MIT too, see CONTRIBUTING.md.
The licence covers the code. The name, the app icon, the other art and the tagline are not part of it, and TRADEMARK.md says what you can do with them. Most things need no permission, including writing about Sudo Play and contributing.