You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

spotify-audio-element

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify-audio-element

A custom element for the Spotify player with an API that aims to match the `` API

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
29K
1118.6%
Maintainers
2
Weekly downloads
 
Created
Source

<spotify-audio>

NPM Version NPM Downloads jsDelivr hits (npm) npm bundle size

A custom element for the Spotify player with an API that aims to match the <audio> API.

  • 🏄‍♂️ Compatible HTMLMediaElement API
  • 🕺 Seamlessly integrates with Media Chrome

Example

<script type="module" src="https://cdn.jsdelivr.net/npm/spotify-audio-element@0.1/+esm"></script>
<spotify-audio controls src="https://open.spotify.com/artist/246dkjvS1zLTtiykXe5h60"></spotify-audio>

Install

First install the NPM package:

npm install spotify-audio-element

Import in your app javascript (e.g. src/App.js):

import 'spotify-audio-element';

Optionally, you can load the script directly from a CDN using jsDelivr:

<script type="module" src="https://cdn.jsdelivr.net/npm/spotify-audio-element@0.1/+esm"></script>

This will register the custom elements with the browser so they can be used as HTML.

Keywords

spotify

FAQs

Package last updated on 15 Jul 2025

Did you know?

Socket

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.

Install

Related posts