A fullscreen desktop music player built with Electron, Vite and React. It was created to showcase a music album: each track lives in its own folder with audio, cover art and lyrics, and the app presents them with an animated rotating 3D album-cover cube, an ambient blurred background and synchronized, karaoke-style lyrics.
Note on content: This repository contains only the player software. The actual album audio, cover images and song lyrics are not included — they are the copyrighted creative work of the artist and are intentionally kept out of the repo (see
.gitignore). Drop your own files into thesongs/folders to run it.
- Track selector grid that scans the
songs/directory at runtime - Playback controls with a seekable progress bar
- Animated 3D rotating cube using two cover images, sized from the cover's natural aspect ratio
- Ambient blurred cover background with a vignette
- Synchronized lyrics display driven by a per-song
lyrics.json - Built-in Sync mode: play a track and tap
Enteron each line to record timestamps, then save them back tolyrics.json - Adjustable lyrics timing offset
- Keyboard shortcuts:
Spaceplay/pause,Ffullscreen,Hhide UI,Escback, arrows offset - Auto-hiding controls during playback
- Custom secure
song://Electron protocol for serving local media
- Electron 40 +
electron-vite+electron-builder - React 19
- Plain CSS (no UI framework)
src/
main/index.js Electron main process: window, song:// protocol, IPC (scan/lyrics)
preload/index.js contextBridge API exposed to the renderer
renderer/
index.html
src/
App.jsx
main.jsx
components/
Player.jsx The whole player UI and logic
Player.css
songs/ One folder per track (media kept out of git)
Create a folder under songs/ (the folder name becomes the track title) and add:
track.wavortrack.mp3— the audiocover1.pngand optionallycover2.png— cover art (used on the 3D cube faces)lyrics.txt— one line per lyric; optional[Section]headers label line typeslyrics.json— generated by the in-app Sync mode; schema:
{
"title": "Song Title",
"artist": "Artist",
"lyrics": [
{ "time": 12.3, "text": "First line", "type": "verse" }
]
}npm install npm run dev # run in development npm run build # build main/preload/renderer npm run dist # build and package a Windows app (electron-builder --dir)
MIT — see LICENSE. The license covers the player source code only, not any album
media you add to the songs/ folders.