Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
spotify-web-playback
Advanced tools
Spotify Web Playback is a TypeScript-enabled API for using the Spotify Web Playback SDK.
The Spotify Web Playback SDK enables developers to stream and play Spotify tracks in any web browser that supports Encrypted Media Extensions (currently only FireFox, Google Chrome, and Microsoft Edge are supported).
Read the documentation here.
Install spotify-web-playback by running:
npm i -s spotify-web-playback
or
yarn add spotify-web-playback
Web browsers can use:
import Spotify from 'https://esm.sh/spotify-web-playback';
const token = '<SPOTIFY_TOKEN>';
const uri = 'spotify:track:54flyrjcdnQdco7300avMJ';
const spotify = new SpotifyPlayer();
await spotify.connect(token);
spotify.play(uri);
This library does not handle obtaining a Spotify token. You have to take care of that yourself.
You have two options:
An example of #2 is included. Please see demo.mjs and public/demo.mjs for more information.
Set CLIENT_ID
and CLIENT_SECRET
then run npm run demo
and open http://localhost:8989/
to view the demo.
Much of the inspiration for this API comes from Gil Barbara's react-spotify-web-playback.
Licensed under the MIT license. See LICENSE.md for more details.
FAQs
Spotify Web Playback API
The npm package spotify-web-playback receives a total of 26 weekly downloads. As such, spotify-web-playback popularity was classified as not popular.
We found that spotify-web-playback demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.