1.0.2 • Published 7 years ago

spotify-discover v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

spotify-discovery-node Build Status

This is a node.js implementation of the spotify-connect technology. Just start the app and connect with any spotify client inside your local network. It returns the spotify-connect given auth credentials:

{
    "action": "addUser",
    "userName": "your username",
    "blob": "BASE64 encoded credentials",
    "clientKey": "BASE64 encoded clientId",
    "loginId": "",
    "deviceName": "",
    "deviceId": "",
    "version": "Spotify internal version"
}

Usage

const spotify_discover = require('spotify-discover');

let discover = spotify_discover('Spotify-Connect-Name');
discover.on('connected', (auth) => {
    // use returned credentials
    console.log(auth);
});

Docs

This module is based on the librespot implementation of spotify connect and their research. For more accurate look on this implementation have a look at these docs https://github.com/plietar/librespot/blob/master/docs/authentication.md#zeroconf-based-authentication