Spooty is a self-hosted Spotify downloader. It lets you search Spotify inside the app and download tracks, albums, or artists. It can also subscribe to playlists and download new songs upon release. Spooty does not download audio from Spotify; it only uses Spotify for metadata and then finds and downloads matching music on YouTube. The project is based on NestJS and Angular.
- 1단계: 설치 및 실행 권한 부여
- 설치: 다운로드한
.dmg파일을 열고 Spooty 아이콘을 Applications(응용 프로그램) 폴더로 드래그합니다. - 권한 해제: 터미널(Terminal)을 열고 아래 코드를 복사해서 실행합니다. (Mac 보안 경고 해결용)
xattr -dr com.apple.quarantine /Applications/Spooty.app
- 실행: Spooty 앱을 실행하여 정상 작동하는지 확인합니다.
- 설치: 다운로드한
- 2단계: Spotify API 연동 (최초 1회)
- Spotify Developer Dashboard에 접속하여 로그인합니다.
- Create App을 클릭하여 새 앱을 만듭니다. (이름/설명은 자유)
- Redirect URI 항목에
https://127.0.0.1:3000을 입력하고 저장합니다. - 만들어진 앱의 Settings에서 다음 정보를 복사해 Spooty 앱 설정에 붙여넣습니다.
- Client ID 복사 ➜ 앱 설정에 붙여넣기
- View client secret 클릭 후 복사 ➜ 앱 설정에 붙여넣기
- 원하는 다운로드 경로 및 포맷을 선택한 후 설정을 저장합니다.
- 3단계: 곡 다운로드 방법
- Spooty 앱에서 곡/앨범/아티스트를 검색합니다.
- 원하는 결과 옆의 다운로드 버튼을 누릅니다.
다운로드가 진행되지 않는다면 YouTube 권한 문제일 수 있습니다.
- 브라우저에서 YouTube 로그인 후 개발자 도구(Option + Command + I)를 켭니다.
- Application 탭 > Cookies >
youtube.com을 선택합니다. - 목록에 있는 모든 쿠키를
이름=값;형식으로 이어 붙여 복사합니다.- 예:
VISITOR_INFO1_LIVE=abc; YSC=def; SID=ghi...
- 예:
- 이 문자열을 앱의 Settings > YouTube Cookies에 붙여넣고 저장하세요.
참고: 쿠키가 만료되면 이 과정을 다시 반복해야 합니다.
Important
Please do not use this tool for piracy! Download only music you own rights! Use this tool only on your responsibility.
- 🚀 Installation
- ⚖️ License
Recommended and the easiest way to start using Spooty is via Docker.
To fully use Spooty, you need to create an application in the Spotify Developer Dashboard:
- Go to Spotify Developer Dashboard
- Sign in with your Spotify account
- Create a new application
- Note your
Client IDandClient Secret - Add a redirect URI in the Spotify app settings (required by Spotify, not used by Spooty):
- Local server example:
http://localhost:3000 - Desktop app example:
https://127.0.0.1:3000
- Local server example:
These credentials will be used by Spooty to access the Spotify API.
Just run docker command or use docker compose configuration. For detailed configuration, see available environment variables.
docker run -d -p 3000:3000 \
-v /path/to/downloads:/spooty/backend/downloads \
-e SPOTIFY_CLIENT_ID=your_client_id \
-e SPOTIFY_CLIENT_SECRET=your_client_secret \
raiper34/spooty:latestservices:
spooty:
image: raiper34/spooty:latest
container_name: spooty
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- /path/to/downloads:/spooty/backend/downloads
environment:
- SPOTIFY_CLIENT_ID=your_client_id
- SPOTIFY_CLIENT_SECRET=your_client_secret
# Configure other environment variables if neededSpooty can also be built from source.
- Node v18.19.1 (it is recommended to use
nvmnode version manager to install proper version of node) - Ffmpeg
- Python3
Tip: use
nvm(or your preferred Node version manager) to match.nvmrc. Local Node bundles such as.nodeor.toolsare for personal use and should not be committed.
- install Node v18.19.1 using
nvm installand use that node versionnvm use - from project root install all dependencies using
npm install - download bundled
yt-dlpbinaries usingnpm run deps:download - copy
.env.defaultas.envinsrc/backendfolder and modify desired environment properties (see environment variables) - add your Spotify application credentials to the
.envfile:SPOTIFY_CLIENT_ID=your_client_id SPOTIFY_CLIENT_SECRET=your_client_secret - build source files
npm run build- if Angular build crashes, retry with
CI=1 npm run build - built project will be stored in
distfolder
- if Angular build crashes, retry with
- start server
npm run start
This project can be packaged as a signed macOS app with an embedded UI.
- Install dependencies:
npm install - Download bundled
yt-dlpbinaries:npm run deps:download - Build backend + frontend:
npm run build(if it crashes, useCI=1 npm run build) - Prepare backend native dependencies for Electron:
node scripts/prepare-backend-deps.mjs - Create the DMG:
npm run build:desktop
The DMG is generated under src/desktop/dist.
The desktop app exposes a Settings panel where users enter Spotify credentials and other configuration values.
Settings are stored per-user; no .env files are included in the packaged app.
- Open Settings and enter your Spotify Client ID and Client Secret.
- Save Settings.
- Use the Search box to find a track, album, or artist.
- Click Download next to the result you want.
If you're on macOS, use the GitHub Actions workflow to build a Windows installer:
- Push a tag like
v2.2.2or run thebuild-windowsworkflow manually. - Download the artifact from the workflow run (it includes the
.exe).
Some behaviour and settings of Spooty can be configured using environment variables and .env file. In the desktop app, these values are managed in-app via the Settings panel and stored per-user.
| Name | Default | Description |
|---|---|---|
| DB_PATH | ./config/db.sqlite (relative to backend) |
Path where Spooty database will be stored |
| FE_PATH | ../frontend/browser (relative to backend) |
Path to frontend part of application |
| DOWNLOADS_PATH | ./downloads (relative to backend) |
Path where downloaded files will be stored |
| FORMAT | mp3 |
Format of downloaded files (currently fully supported only mp3 but you can try whatever you want from ffmpeg) |
| PORT | 3000 | Port of Spooty server |
| SPOTIFY_CLIENT_ID | your_client_id | Client ID of your Spotify application (required) |
| SPOTIFY_CLIENT_SECRET | your_client_secret | Client Secret of your Spotify application (required) |
| YT_DOWNLOADS_PER_MINUTE | 3 | Set the maximum number of YouTube downloads started per minute |
| YT_COOKIES | Allows you to pass your YouTube cookies to bypass some download restrictions. See below for instructions. | |
| YTDLP_BINARY_PATH | Optional absolute path to yt-dlp binary (use this when yt-dlp is not on PATH) |
|
| FFMPEG_PATH | Optional absolute path to ffmpeg binary (overrides the bundled installer) |
- Go to https://www.youtube.com and log in if needed.
- Open the browser developer tools (F12 or right click > Inspect).
- Go to the "Application" tab (in Chrome) or "Storage" (in Firefox).
- In the left menu, find "Cookies" and select https://www.youtube.com.
- Copy all the cookies (name=value) and join them with a semicolon and a space, like: VISITOR_INFO1_LIVE=xxxx; YSC=xxxx; SID=xxxx; ...
- Paste this string into the YT_COOKIES environment variable (in your .env or Docker config).
