cyp for live.jerry.dn42 https://github.com/ondras/cyp
Find a file
2020-06-23 09:23:14 +02:00
_youtube docker and youtube, docs 2019-10-29 08:49:04 +01:00
app better downscale 2020-06-23 09:23:14 +02:00
misc screens 2020-03-27 21:32:56 +01:00
.dockerignore added Docker support, fixes issue #8 2019-10-28 11:41:14 +01:00
.gitignore docker and youtube, docs 2019-10-29 08:49:04 +01:00
.npmrc mention required node version 10 2019-05-13 11:40:33 -03:00
Dockerfile fixed: Dockerfile now is properly working 2020-04-29 14:35:18 -03:00
index.js yt limit 2020-03-17 22:02:12 +01:00
LICENSE.txt license 2019-04-16 14:03:57 +02:00
Makefile bundle 2020-03-14 22:18:54 +01:00
package.json mixer idling 2020-05-09 10:55:41 +02:00
README.md Update README.md 2020-03-27 21:41:47 +01:00

CYP: Control Your Player

CYP is a web-based frontend for MPD, the Music Player Daemon. You can use it to control the playback without having to install native application(s). It works in modern web browsers, both desktop and mobile.

Screenshots

Features

  • Control the playback, queue, volume
  • Save and load playlists
  • Browse the library by artists/albums/directories
  • Display album art via native MPD calls (no need to access the library; requires MPD >= 0.21)
  • Youtube-dl integration
  • Dark/Light themes

Installation

Make sure you have a working MPD setup first and Node version >= 10

git clone https://github.com/ondras/cyp.git && cd cyp
npm i
node .

Point your browser to http://localhost:8080 to open the interface. Specify a custom MPD address via a server querystring argument (?server=localhost:6655).

Instalation - Docker

Alternatively, you can use Docker to run CYP.

git clone https://github.com/ondras/cyp.git && cd cyp
docker build -t cyp .
docker run --network=host cyp

Youtube-dl integration

You will need a working youtube-dl installation. Audio files are downloaded into the _youtube directory, so make sure it is available to your MPD library (use a symlink).

If you use Docker, you need to mount the _youtube directory into the image:

docker run --network=host -v "$(pwd)"/_youtube:/cyp/_youtube cyp

Changing the port

...is done via the PORT environment variable. If you use Docker, the -e switch does the trick:

docker run --network=host -e PORT=12345 cyp

Technology

  • Connected to MPD via WebSockets (using the ws2mpd bridge)
  • Token-based access to the WebSocket endpoint (better than an Origin check)
  • Written using Custom Elements
  • Responsive layout via Flexbox
  • CSS Custom Properties
  • SVG icons (Material Design)
  • Can spawn Youtube-dl to search/download audio files
  • Album art retrieved directly from MPD (and cached via localStorage)