A simple C++ desktop application for displaying real-time lyrics over your screen.
LyricOverlay is a lightweight program that fetches the currently playing track from Spotify and displays the lyrics as an overlay. It runs in the background and stays on top of other applications. There's only support for Windows, but the project might be cross-plataform in the future.
- Only Windows.
- Spotify Integration – Fetches the current song in real-time (1s).
- Lyrics Display – Shows lyrics in a transparent overlay.
- C++ – Core language
- SFML – Handles window rendering and text display
- Official Spotify Web API – Retrieves current track information
- Lyrics API – Fetches lyrics for the current track
LyricOverlay does not fetch lyrics directly from Spotify or any official Spotify API. Instead, you must provide your own lyrics API endpoint. By default, you can use spotify-lyrics-api or any other lyrics API, as long as it returns data in the same format as the Spotify Web API's lyrics endpoint.
Setup:
- Deploy or choose a lyrics API (such as akashrchandran/spotify-lyrics-api).
- Set the
LYRICS_API_ENDPOINTenvironment variable in yourstart.batto point to your chosen API.
Example:
set LYRICS_API_ENDPOINT=http://localhost:3000Disclaimer:
Using the akashrchandran/spotify-lyrics-api or similar services may violate Spotify's Terms of Service. Use these APIs at your own risk. LyricOverlay itself does not violate any Spotify terms; it only displays lyrics fetched from an external API endpoint that you provide.
- Install SFML
- Get Spotify API credentials
- (Optional) Get a Lyrics API key
git clone https://github.com/yourusername/LyricOverlay.git
cd LyricOverlayClone vcpkg and install curl and openssl
git submodule update --init --recursive
cd vcpkg
./bootstrap-vcpkg.bat
./vcpkg.exe installAdd your spotify credentials in the start.bat
set CLIENT_ID=your-client-id
set SECRET_KEY=your-secret-keyCompile using CMake
cmake -B build -S . "-DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake"
.\start.bat- Minimal UI – Simple and non-intrusive.
- Spotify Integration
Contributions are welcome. Open an issue or submit a pull request.
GPL 3.0 - A free software
