# spotify-discover

> spotify discovery server for node

Latest version **1.0.2** (published 2017-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install spotify-discover
pnpm add spotify-discover
yarn add spotify-discover
bun add spotify-discover
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-08-28 |
| First published | 2017-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tim Schrodi |
| Maintainers | schrodit |
| Keywords | nodejs, spotify, zeroconf |

## Links

- npm: https://www.npmjs.com/package/spotify-discover
- Repository: https://github.com/schrodit/spotify-discover
- Homepage: https://github.com/schrodit/spotify-discover#readme
- Issues: https://github.com/schrodit/spotify-discover/issues
- npm.io page: https://npm.io/package/spotify-discover

## Dependencies (4)

- [mdns](https://npm.io/package/mdns.md) ^2.3.3
- [express](https://npm.io/package/express.md) ^4.15.4
- [typescript](https://npm.io/package/typescript.md) ^2.4.2
- [body-parser](https://npm.io/package/body-parser.md) ^1.17.2

## Recent versions

- 1.0.2 (latest) — 2017-08-28
- 1.0.1 (next) — 2017-08-22
- 1.0.0 — 2017-08-22

## README

# spotify-discovery-node [![Build Status](https://travis-ci.org/schrodit/spotify-discover.svg?branch=master)](https://travis-ci.org/schrodit/spotify-discover)

This is a node.js implementation of the [spotify-connect](https://www.spotify.com/de/connect/) technology.
Just start the app and connect with any spotify client inside your local network. It returns the spotify-connect given auth credentials:

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


## Usage
```javascript
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](https://github.com/plietar/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>

---
_Source: https://npm.io/package/spotify-discover · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
