cyp for live.jerry.dn42
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
JerryXiao edbc474b9a
fix nan duration
9 months ago
_youtube docker and youtube, docs 3 years ago
app fix nan duration 9 months ago
misc screens 3 years ago
.dockerignore added Docker support, fixes issue #8 3 years ago
.gitignore passwords.json support 3 years ago
.npmrc mention required node version 10 4 years ago
Dockerfile fixed: Dockerfile now is properly working 3 years ago
LICENSE.txt license 4 years ago
Makefile bundle 3 years ago passwords.json support 3 years ago
index.js publish cyp changes 1 year ago
package.json publish cyp changes 1 year ago

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.



  • 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


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

git clone && 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 && 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 done via the PORT environment variable. If you use Docker, the -e switch does the trick:

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

Password-protected MPD

Create a passwords.json file in CYPs home directory. Specify passwords for available MPD servers:

  "localhost:6600": "my-pass-1",
  "some.other.server.or.ip:12345": "my-pass-2

Make sure that hostnames and ports match those specified via the server querystring argument (defaults to localhost:6600).


  • 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)