ViewInSpotify is a Chrome extension that allows you to find Spotify links for songs you are playing in YouTube videos. This repository contains both the extension and a Node.js backend.
Before you begin, make sure:
- You have installed Node.js and npm.
- You have a modern web browser such as Chrome.
- You have access to your Google API and Spotify API credentials.
To install ViewInSpotify, follow these steps:
git clone https://github.com/YaySushi/view-in-spotify.git
cd view-in-spotify
Navigate to the backend directory and install dependencies:
cd server
npm install
Set up the environment variables for the backend:
Create a .env
file in the server
directory and add your API keys:
YOUTUBE_API_KEY=your_youtube_api_key_here
SPOTIFY_CLIENT_ID=your_spotify_client_id_here
SPOTIFY_CLIENT_SECRET=your_spotify_client_secret_here
In the server
directory, run:
npm start
This starts the backend server on http://localhost:3001
.
- Open Chrome and navigate to
chrome://extensions/
- Enable Developer Mode at the top right.
- Click "Load unpacked" and select the
view-in-spotify
directory.
Navigate to a YouTube video with music, click the extension icon, and use the popup to find the song on Spotify.