All Projects → brentvollebregt → spotify-lyrics-viewer

brentvollebregt / spotify-lyrics-viewer

Licence: other
View the lyrics of the current playing Spotify song in your browser

Programming Languages

typescript
32286 projects
HTML
75241 projects

Projects that are alternatives of or similar to spotify-lyrics-viewer

aw-watcher-spotify
Logs what you listen to on Spotify
Stars: ✭ 41 (+105%)
Mutual labels:  spotify-api
spotify-vibe-check
Spotify Vibe Checker Web App to vibe check your Spotify Playlists! (currently broken due to CORS)
Stars: ✭ 24 (+20%)
Mutual labels:  spotify-api
spotify-connect-ws
A Socket.IO plugin for interfacing with Spotify's Connect API using WebSockets.
Stars: ✭ 61 (+205%)
Mutual labels:  spotify-api
spotify-api-graphql-console
Spotify Web API GraphQL console.
Stars: ✭ 29 (+45%)
Mutual labels:  spotify-api
spotify-api-plusplus
A C++ wrapper of the Spotify Web API
Stars: ✭ 56 (+180%)
Mutual labels:  spotify-api
spotify-release-gun
A python tool that informs about new releases of the artists you follow.
Stars: ✭ 17 (-15%)
Mutual labels:  spotify-api
spotify-reverse-playlist
This Linux bash script reverses the tracks in a playlist. It creates a new playlist with all tracks reversed.
Stars: ✭ 29 (+45%)
Mutual labels:  spotify-api
spotify-stats
🎧 Your spotify profile's top artists and tracks with charts and playlist creator.
Stars: ✭ 73 (+265%)
Mutual labels:  spotify-api
spottr
🌵 Your Spotify stats all in one place.
Stars: ✭ 25 (+25%)
Mutual labels:  spotify-api
spotifytrack
A personal homepage showing users' top songs and artists, providing a shareable link that they can use to show it off to friends.
Stars: ✭ 48 (+140%)
Mutual labels:  spotify-api
SpotifyWebApi
A .net core wrapper for the Spotify Web API
Stars: ✭ 19 (-5%)
Mutual labels:  spotify-api
listentogether-hackathon
Grab some friends, connect your Spotify account, and listen to music in sync with each other.
Stars: ✭ 20 (+0%)
Mutual labels:  spotify-api
SpotMusicGen
A Program that creates a Spotify playlist from a YouTube Playlist
Stars: ✭ 47 (+135%)
Mutual labels:  spotify-api
taller-nuxt
🚀Explicación y código del taller de Nuxt para Wecodefest 2019
Stars: ✭ 20 (+0%)
Mutual labels:  spotify-api
springtunes
Control your Spotify client remotely from your browser
Stars: ✭ 19 (-5%)
Mutual labels:  spotify-api
xspfy
Import XSPF playlists to Spotify.
Stars: ✭ 29 (+45%)
Mutual labels:  spotify-api
Spotify.ahk
An AutoHotkey wrapper for the Spotify web API designed to allow control over Spotify's internal volume slider and provide various other functionality.
Stars: ✭ 50 (+150%)
Mutual labels:  spotify-api
graphql-spotify
GraphQL Schema And Resolvers For Spotify Web API
Stars: ✭ 55 (+175%)
Mutual labels:  spotify-api
spotify-terminal
Terminal application to play/control Spotify.
Stars: ✭ 61 (+205%)
Mutual labels:  spotify-api
playlists
💽 An archive of my Spotify playlists.
Stars: ✭ 34 (+70%)
Mutual labels:  spotify-api
Spotify Lyrics Viewer Banner

View the lyrics of the current playing Spotify song in your browser.

🌐: spotify-lyrics-viewer.nitratine.net

🛠️ Setup

  1. Clone the repo.
  2. Setup the server
    • Execute npm install to install dependencies
    • Execute cp .env.example .env (or copy for Windows) and populate .env by replacing XXXXXX's
  3. Setup the client
    • cd client to change directories to the client project
    • Execute npm install to install dependencies
    • Execute cp .env.example .env (or copy for Windows)
    • Execute npm run build to build the client (the server will host these built files)
    • Go back to the project root: cd ..
  4. Execute npm start to start the server

🧪 Development Setup

Client

When running the client in development mode using npm start, the client will use the REACT_APP_API_ROOT environment variable value to decide where to send requests. If this is not provided, the current hosted URL will be used.

Server

npm run dev can also be used for development of the server; this allows for hot-reloading. Running the client using npm start and setting REACT_APP_API_ROOT to where the server is running will allow for a development setup with hot-reloading.

When running the server locally, HTTPS needs to be setup due to the use of Secure=true on cookies (due to SameSite="none"). The server will look for server.cert and server.key in the current working directory to use for SSL. When first setting up the server, do the following:

  1. Generate server.cert and server.key by execute openssl req -nodes -new -x509 -keyout server.key -out server.cert in the root directory.
  2. Start the server by executing npm run dev in the root directory.
  3. Go to https://localhost:5000/ and click "Advanced" -> "Proceed to localhost (unsafe)", this solves ERR_CERT_AUTHORITY_INVALID for development.

launch.json offers the ability to connect and debug the the server when running npm run dev.

Screenshots

Spotify Lyrics Viewer showing lyrics Spotify Lyrics Viewer showing lyrics in dark mode

📝 Features

  • Spotify authorization (Authorization Code Flow) for current song identification
  • GENIUS lyric fetching
  • Tokens stored in a session-like object
    • Session is in a cookie due to server restrictions
  • Dark theme

Why?

I often get curious of what the lyrics of the current playing song is. I use Spotify a lot so having somewhere where I could login and it immediately provide the lyrics of the current playing song would be very helpful and save a lot of time.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].