Skip to content

strnadchristopher/good-vibrations

Repository files navigation

Good Vibes

Good Vibes is a web based Spotify music player written in React and powered by Vite. It showcases how to integrate the Spotify Web API and the Spotify Web Playback SDK to browse your music collection and control playback directly in the browser.

screenshot

Features

  • Spotify Login – authenticate using your Spotify account to access your library
  • Playlists, Albums & Artists – browse your playlists, saved albums and followed artists
  • Search – find tracks, artists and albums using Spotify search
  • Web Playback – play music without leaving the page using the Spotify Web Playback SDK
  • Full Screen Player – optional overlay for an immersive listening experience

Getting Started

  1. Clone the repository

    git clone <repo-url>
    cd good-vibrations
  2. Install dependencies

    npm install
  3. Create a .env file in the project root with your Spotify credentials. These values can be obtained from the Spotify Developer Dashboard.

    VITE_SPOTIFY_CLIENT_ID=<your-client-id>
    VITE_SPOTIFY_CLIENT_SECRET=<your-client-secret>
    VITE_CALLBACK_URL=http://localhost:8675/spotify
    VITE_APP_NAME=GoodVibes
  4. Run the development server

    npm run dev

    The application will be available at http://localhost:8675.

  5. Build for production (optional)

    npm run build
    npm run preview

Usage

After logging in you will land on the Home page which displays your profile, top tracks and top artists. Use the navigation links to explore:

  • Playlists – view your playlists and open individual lists for track details
  • Albums – browse saved albums
  • Artists – see the artists you follow and inspect their discography
  • Search – press Ctrl + F or use the search icon to find any track, album or artist

The player bar at the bottom lets you play, pause and skip tracks. When streaming on another device, you can transfer playback to the web player by clicking the banner that appears.

Limitations

  • A Spotify Premium subscription is required for full playback using the Web Playback SDK.
  • Playback only works while the browser window remains open and focused.
  • Music cannot be played offline and audio quality is subject to the browser's capabilities.
  • When listening on another device you must transfer playback to the browser before controls are active.

Screenshots

A few captures showing various screens are available in the screenshots/ directory:

Home

Home

Artists

Artists

Artist Page

Artist Page

Album Page

Album

Search

Search

Now Playing

Now Playing

License

This project is provided for educational purposes. You are free to fork and adapt it for your own use.

About

Spotify Web Playback Project in React + Vite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors