Spotify-Downloader is a web application that enables users to download tracks from Spotify playlists as MP3 files. You can log in with your Spotify account to access your playlists, or paste a public playlist URL. The app fetches playlist tracks and provides easy download options, including real-time progress updates.
Key Features:
- Login with Spotify or paste playlist URL
- Browse and select tracks
- Download tracks as MP3 or ZIP
- Real-time download progress
Purpose:
Makes it easy to download Spotify playlist tracks for offline use, solving the hassle of accessing favorite music without an internet connection.
- Node.js (v18+)
- npm
git clone https://github.com/yourusername/Spotify-Downloader.git
cd Spotify-Downloader
# Backend setup
cd backend
npm install
npm run server
# Frontend setup
cd ../frontend
npm install
npm run dev
-
Login with Spotify:
Authenticate to access your playlists. -
Paste Playlist URL:
Enter a public Spotify playlist URL. -
Download:
Select tracks and download as MP3 or ZIP.
-
Environment Variables:
backend/.env
:SPOTIFY_CLIENT_ID
SPOTIFY_CLIENT_SECRET
SPOTIFY_REDIRECT_URI
VITE_FRONTEND_URL
PORT
frontend/.env
:VITE_BACKEND_URL
-
Config Files:
backend/.env
frontend/.env
-
GET /api/playlist
Fetch playlist information from a Spotify URL. -
GET /api/stream
Stream and download individual tracks (uses Socket.io for progress). -
POST /api/download-zip
Download selected tracks as a ZIP file. -
POST /api/auth
Spotify authentication (login, callback, etc.).
MIT License. See LICENSE for details.