GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - peguerosdc/subplayer: A music player frontend compatible with Subsonic backends

BranchesTags
Open more actions menu

Latest commit

 

History

286 Commits
286 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
public
public
 
 
src
src
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
codecov.yaml
codecov.yaml
 
 
config-overrides.js
config-overrides.js
 
 
nginx.conf
nginx.conf
 
 
package.json
package.json
 
 
themes.config.js
themes.config.js
 
 
themes.content.js
themes.content.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Subplayer

codecov Build Status Docker Pulls

This is a frontend application designed to be a simple, functional and nice looking web player to be used with a Subsonic backend (tested with spl0k/supysonic and deluan/navidrome).

Overview

Live Demo: Subplayer at Netlify

Features

  • Play and seek audio
  • View/create/edit playlists
  • Add/remove songs from Starred
  • Search artists/albums/songs
  • Browse your music by Artist, Albums and Genres (only compatible with v1.13.0)
  • Star/unstar albums
  • Scrobble
  • Add/Remove from queue
  • Theming

Building custom themes

By default, the only themes available are Blue, Orange, Green and Grey (all in light and dark mode). If you want to create your custom themes, you can edit /themes.config.js with your own object to change how Rsuite will look like. Each theme must be named starting with either "light" or "dark" to let the compiler know which settings to load.

To see the list of variables that you can define for customization, visit RSuite's documentation.

NOTE: the tool that Rsuite provides to create custom themes is not designed to work with create-react-app (which is how this project was built), so the implementation here is considered a hack and, as a result, it has (as far as I found) two downsides:

  1. you can't create a lot of themes as the compiler will run out of memory (that's why I only defined 4 colours by default) and
  2. on the first run, you will see a blank page. After reloading, the application will work as expected.

Installation

Running the source code

Clone the repository and run from the root folder:

$ yarn install
$ yarn start

Docker installation

To build the image yourself:

$ docker build . -t peguerosdc/subplayer

Or using the experimental buildx to build (and push) for multiple platforms:

$ docker buildx build --platform linux/arm64,linux/amd64 --push -t peguerosdc/subplayer .

To run the image:

$ docker run --name mysubplayer \
    -p 8000:80 \
    --restart unless-stopped \
    -d peguerosdc/subplayer

To stop:

$ docker stop mysubplayer

TODO

  • Implement CI to push Docker image automatically when merged to master
  • There are some TODOs in the unit tests, but most features are tested.
  • feature: Rearrange items in queue. I tried this with the current rsuite's Table but didn't like the final implementation. I am thinking in (someday) writing a new <SongsTable/> from scratch to add all the features I want.
  • Re-work MusicPlayer.
  • How to test components with hooks without 1) using mount and 2) re-doing all the unit tests with React Testing Library?

Contributions

Any TODO item, any bug you find and want to fix, any architecture/performance/Docker improvements, any new feature you think would be cool to have is welcome :) Just keep in mind that this project is meant to be a lightweight application.

NOTE: if you want to add new features, please implement at least the basic unit tests you can think of. Pull-requests will not be merged without testing.

Acknowledgements

  • Favicon made by Freepik from www.flaticon.com
  • Using rsuite/rsuite UI components.

License

Licensed under the GNU General Public License v3.0.

About

A music player frontend compatible with Subsonic backends

subplayer.netlify.app/

Topics

airsonicaudioaudio-streaminghome-mediamusicmusic-playermusic-streamingreactrsuiteself-hostedsubsonicsubsonic-client

Resources

Readme
GPL-3.0 license
Activity

Stars

100 stars

Watchers

6 watching

Forks

13 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.