compactd
Remote music player that allows to play music remotely
Last updated 2 years ago by vinz243 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install compactd 
SYNC missed versions from official npm registry.

Compactd

(pronounce compact-D)

Sponsor

Donate using Liberapay

Compactd aims to be a self-hosted remote music player in your browser, streaming from you own personal server. It will also allows to download new music onto your server just like headphones does.

https://i.imgur.com/CeDJZim.jpg

Features

  • Scan any download folder (no neeed for a specific format like Plex)
  • Finder-like columns for browsing library
  • Fuzzy finder for searching library
  • Library reorganization (moving an album to a different artist)
  • Hidding and removing track (only from the database) from library
  • Streaming music
  • Music transcoding on-the-fly
  • Hotkey controls (J, K, L, Ctrl+P)
  • Artist and album downloading
  • Gazelle-based trackers support
  • Deluge torrent client supported
  • Waveform vizualisation

Stack

Redux, React, PouchDB, Webpack, Typescript, Socket.io...

Prequisites

  • Node v8 and npm v5. I recommend using https://github.com/creationix/nvm
  • CouchDB v2. You can install it following this guide for linux . Windows is quite straightforward, on Debian, you will need to build it from source following the tutorial. Just make sure you don't configure anything or any password.
  • Latest Ffmpeg. Installation varies from OS, you might wanna follow this guide
  • deluge with deluge-web are optionnal (for downloading new content)
  • audiowaveform is optionnal, only if you want to use the waveform feature. Ubuntu, Arch, and Mac OS are straightforward, debian requires building from source; Windows doesn't work.
  • opencv2 is optional, it allows the artwork processing tool to recognize face and crops images if they are not squared

Installation

$ npm install --global compactd
$ compactd --configure

Follow the steps. Once it is down everything is configured!

Nginx configuration

You need at least to locations, one for the http part and one for the socket server which allows realtime data update. Example:

server {

    listen 443 ssl;                                                             
    server_name compactd.io;

    include snippets/ssl-compactd.io.conf;
    include snippets/ssl-params.conf;

    access_log            /var/log/nginx/access.log;

    location /engine.io/ {
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_http_version 1.1;
      proxy_set_header        Host $host;
      proxy_set_header        X-Real-IP $remote_addr;
      proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header        X-Forwarded-Proto $scheme;

      proxy_pass          http://127.0.0.1:9001;
    }

    location / {
      proxy_set_header        Host $host;
      proxy_set_header        X-Real-IP $remote_addr;
      proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header        X-Forwarded-Proto $scheme;

      # Fix the âIt appears that your reverse proxy set up is broken" error.
      proxy_pass          http://127.0.0.1:9000;
      proxy_read_timeout  90;

      proxy_redirect      http://127.0.0.1:9000 https://compactd.io;
    }
  }

Starting

Just run

$ compactd --serve

This will spawn a pm2 process in the background if it's not already running for process management.

Stopping, restarting

$ pm2 restart compactd
$ pm2 stop compactd

Current Tags

  • 1.3.0                                ...           latest (2 years ago)
  • 1.2.0-11                                ...           true (2 years ago)

42 Versions

  • 1.3.0                                ...           2 years ago
  • 1.3.0-alpha.15                                ...           2 years ago
  • 1.3.0-alpha.14                                ...           2 years ago
  • 1.3.0-alpha.13                                ...           2 years ago
  • 1.3.0-alpha.12                                ...           2 years ago
  • 1.3.0-alpha.11                                ...           2 years ago
  • 1.3.0-alpha.10                                ...           2 years ago
  • 1.3.0-alpha.9                                ...           2 years ago
  • 1.3.0-alpha.8                                ...           2 years ago
  • 1.3.0-alpha.7                                ...           2 years ago
  • 1.3.0-alpha.6                                ...           2 years ago
  • 1.3.0-alpha.5                                ...           2 years ago
  • 1.3.0-alpha.4                                ...           2 years ago
  • 1.3.0-alpha.3                                ...           2 years ago
  • 1.3.0-alpha.2                                ...           2 years ago
  • 1.2.3                                ...           2 years ago
  • 1.3.0-alpha.1                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.3.0-alpha.0                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.2.0-14                                ...           2 years ago
  • 1.2.0-13                                ...           2 years ago
  • 1.2.0-12                                ...           2 years ago
  • 1.2.0-11                                ...           2 years ago
  • 1.2.0-10                                ...           2 years ago
  • 1.2.0-9                                ...           2 years ago
  • 1.2.0-7                                ...           2 years ago
  • 1.2.0-6                                ...           2 years ago
  • 1.2.0-5                                ...           2 years ago
  • 1.2.0-4                                ...           2 years ago
  • 1.2.0-3                                ...           2 years ago
  • 1.2.0-2                                ...           2 years ago
  • 1.2.0-1                                ...           2 years ago
  • 1.1.0-0                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (51)
Dev Dependencies (136)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |