All Projects → loverajoel → Spotify Sdk

loverajoel / Spotify Sdk

Spotify SDK | Entity and Collection oriented | Browser and Node support!

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects

Labels

Projects that are alternatives of or similar to Spotify Sdk

Spotcommander
The most intuitive and feature-rich remote control for Spotify for Linux
Stars: ✭ 152 (-24%)
Mutual labels:  spotify
Esp8266 Spotify Remote
Control your Spotify player from a ESP8266 with color touch display
Stars: ✭ 170 (-15%)
Mutual labels:  spotify
Librespot
Open Source Spotify client library
Stars: ✭ 2,689 (+1244.5%)
Mutual labels:  spotify
Spotify Lyrics
🎉 Desktop Spotify Web Player Instant Synchronised Lyrics
Stars: ✭ 162 (-19%)
Mutual labels:  spotify
Coverify
🎧 Design fresh album cover for your Spotify playlists
Stars: ✭ 167 (-16.5%)
Mutual labels:  spotify
Spotify Now Playing
Spotify now playing information and control popup for macOS menu bar
Stars: ✭ 171 (-14.5%)
Mutual labels:  spotify
Netease To Youtube Or Spotify
迁移你的网易云歌单到 Youtube or Spotify. Easily transfer your Netease music playlist to Youtube or Spotify
Stars: ✭ 146 (-27%)
Mutual labels:  spotify
Boombeastic
A Raspberry Pi based smart connected speaker with support for airplay, spotify, mpd and local playback
Stars: ✭ 195 (-2.5%)
Mutual labels:  spotify
Ablemusicplayer
🎵 A Youtube Music like app with a Spotify like design - ad free and open source. Feel free to PR. NOTE: BEING REWRITTEN, HENCE THE REPO WILL BE INACTIVE FOR A WHILE
Stars: ✭ 167 (-16.5%)
Mutual labels:  spotify
Smudge
Control the Spotify app from within Emacs.
Stars: ✭ 186 (-7%)
Mutual labels:  spotify
Polybar Spotify
🎵 Spotify status and controls module for Polybar with text scrolling
Stars: ✭ 162 (-19%)
Mutual labels:  spotify
Librespot Java
The most up-to-date open source Spotify client
Stars: ✭ 166 (-17%)
Mutual labels:  spotify
Novatorem
Dynamic realtime profile ReadMe linked with spotify
Stars: ✭ 176 (-12%)
Mutual labels:  spotify
Hubframework
DEPRECATED – Spotify’s component-driven UI framework for iOS
Stars: ✭ 1,861 (+830.5%)
Mutual labels:  spotify
Spotlightify
The Spotify overlay controller
Stars: ✭ 190 (-5%)
Mutual labels:  spotify
Musicnow
CLI tool to download songs with metadata.
Stars: ✭ 146 (-27%)
Mutual labels:  spotify
Spotifylyrics
Fetches and displays lyrics to currently playing song in Spotify, Tidal and VLC.
Stars: ✭ 171 (-14.5%)
Mutual labels:  spotify
Obscurify
Find out more about your music taste and compare it to others' with Obscurify
Stars: ✭ 200 (+0%)
Mutual labels:  spotify
Instant Lyrics
Shows lyrics of the currently playing Spotify song, or any song, instantly.
Stars: ✭ 191 (-4.5%)
Mutual labels:  spotify
Baritone
Spotify controls that live in your menubar.
Stars: ✭ 178 (-11%)
Mutual labels:  spotify

Spotify SDK

npm version Documentation Status

Unofficial SDK recommended for Spotify in his developer center

Entity oriented SDK to work with the Spotify Web API.

Entity oriented? What? Yes, you will always receive entities+helpers as the API's response.

An awesome example

Too simple like: Get my User then retrieve my Playlist, then add a Track to one Playlist.

user.me().then((myUser) => { // -> return a User entity with helpers
    myUser.playlists().then((playlistsCollection) => {
        playlistsCollection.first().tracks // -> tracksCollections
        playlistsCollection.first().addTrack(trackEntity) // -> add a track to the playlist
    });
});

More Examples

Basic example

Complex example

Showcase - Projects using Spotify-SDK

- MagicPlaylist

- 20v

- Infinite Music Trivia

Getting Started

You can get it on npm.

npm install spotify-sdk --save

How to start?

After installing, you should add the SDK to your project.

import {Client, TrackHandler, PlaylistHandler} from 'spotify-sdk';

You can import all entities, handlers and resources of the library.

Init the client

let client = Client.instance;

client.settings = {
    clientId: 'CLIENT_ID',
    secretId: 'SECRET_ID'
};

If your applications require methods that need authentication:

client.settings = {
    clientId: 'CLIENT_ID',
    secretId: 'SECRET_ID',
    scopes: [SCOPE, SCOPE2],
    redirect_uri: 'REDIRECT_URL'
};

client.token = 'TOKEN';

Here there is a suggested implementation for login.

Documentation

Read the documentation here

Node Support

Now you can use the sdk in node!

Browser Support

This SDK use Babel and Polyfill in order to add comptiblity with old browseres.

Chrome logo Firefox logo Internet Explorer logo Opera logo Safari logo
42+ ✔ 41+ ✔ 9+ ✔ 29+ ✔ 8 ✔

Development

git clone [email protected]:loverajoel/spotify-sdk.git

npm install

npm run watch

Contributing

Pull requests and issues are very welcome. If you have found an bug, please open an issue.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].