Dynamic island style widget for displaying what you're recently played on Spotify.

Overview

Spotify Island

Dynamic island style widget for displaying what you're recently played on Spotify.

🚀 Check the demo

spotify-island.mov

1. Get Spotify Token

  • Create a new app in Spotify Developer Dashboard
  • Get your client ID and client secret from that app
  • Authorize with your client ID and scopes (e.g. user-read-recently-played)
  • Copy your code from the URL
  • Get your refresh token

2. Environment Variables

Use the template .env.example.

To sync with your account, you'll need three things from Spotify Developer:

  • Client ID
  • Client secret
  • Refresh token

If you are going to use Spotify Island in your Nextjs project you also need to create next.config.js file for adding environment variables like this:

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  swcMinify: true,
  env: {
    REACT_APP_SPOTIFY_CLIENT_ID: process.env.REACT_APP_SPOTIFY_CLIENT_ID,
    REACT_APP_SPOTIFY_CLIENT_SECRET:
      process.env.REACT_APP_SPOTIFY_CLIENT_SECRET,
    REACT_APP_SPOTIFY_REFRESH_TOKEN:
      process.env.REACT_APP_SPOTIFY_REFRESH_TOKEN,
  },
};

module.exports = nextConfig;

3. Installation

npm install spotify-island

4. Props

key type default
position? "top-left", "top-right", "bottom-left", "bottom-right", "bottom-center", "default" "default"

Todo

  • Fix unhandledRejection: Error: FastAverageColor: resource as string is not supported in this environment

Note

Do not hesitate to open an issue for your questions and feedbacks.

You might also like...

Set a range that will be played.

Set a range that will be played.

Spicetify part selector This extension play selected part. Usage: 'd' - start position, 'f' - end position, 'r' - reset. For first set end position(f)

Nov 27, 2022

Extension forcing Reddit videos to be played by the fallback player.

⚡ FRP: The "Fuck Reddit Player" extension Simple extension to force Reddit videos to be played by the fallback player. Installation: 🦊 addons.mozilla

Oct 21, 2022

Extension forcing Reddit videos to be played by the fallback player.

⚡ FRP: The "Fuck Reddit Player" extension Simple extension to force Reddit videos to be played by the fallback player. Installation: 🦊 addons.mozilla

Oct 21, 2022

My personal profile with dynamic github statistics, coding infos, music status with the spotify API.

Oh, Hello there 👋 My name's Mouhcine, A recent bachelor Graduate Security Researcher/Student from 🇲🇦 . Currently Working on other projects. 📬 Soci

Oct 29, 2022

Dynamic-web-development - Dynamic web development used CSS and HTML

Dynamic-web-development - Dynamic web development used CSS and HTML

Dynamic-web-development ASSISNMENT I just used CSS and HTML to make a mobile int

Feb 8, 2022

dynamic-component-app is an angular application for dynamic component template creation

MyApp This project was generated with Angular CLI version 14.1.0. Development server Run ng serve for a dev server. Navigate to http://localhost:4200/

Aug 26, 2022

Base62-token.js - Generate & Verify GitHub-style & npm-style Base62 Tokens

base62-token.js Generate & Verify GitHub-style & npm-style Secure Base62 Tokens Works in Vanilla JS (Browsers), Node.js, and Webpack. Online Demo See

Jun 11, 2022

JqTree - Tree widget for jQuery

JqTree - Tree widget for jQuery

jqTree JqTree is a tree widget. Read more in the documentation. Features Create a tree from JSON data Drag and drop Works on ie9+, firefox, chrome and

Dec 22, 2022

Fintoc.js ES Module - Use the Fintoc widget as an ES module

Fintoc.js ES Module Use the Fintoc widget as an ES module. Installation Install using npm! (or your favourite package manager) # Using npm npm install

May 13, 2022
Owner
Nurçin
software engineer
Nurçin
TikTokLive-Widget: A socket client/server program that exposes a widget with alerts (such as gifts, followers ...) for a specific user streaming on Tik Tok Live platform

TikTokLive-Widget: A socket client/server program that exposes a widget with alerts (such as gifts, followers ...) for a specific user streaming on Tik Tok Live platform

null 3 Dec 3, 2022
Offline modification of Doodle Champion Island Games by Google

Doodle Champion Island Games This is an offline backup copy of the Doodle Champion Island Games by Google and Studio 4°C. The game has been modified t

null 67 Dec 24, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
A cache that automatically removes the least-recently-used items

A cache that automatically removes the least-recently-used items

Evandro Leopoldino Gonçalves 9 Feb 27, 2022
A website that will curate recently-asked interview questions from FAANG+ to help people practice & prep!

defaang.io A website that will curate recently-asked interview questions from FAANG+ to help people practice & prep! The questions will be submitted a

YK 488 Dec 12, 2022
A lightweight JavaScript library that renders text in a brilliant style by displaying strings of random characters before the actual text.

cryptoWriter.js A lightweight javascript library which creates brilliant text animation by rendering strings of random characters before the actual te

Keshav Bajaj 2 Sep 13, 2022
example app that creates a new player in Spotify Connect to play music from in the browse using Spotify Web Playback SDK.

Spotify Web Playback SDK Demo Requirements User must have Spotify Premium, DRM & EME supported and JavaScript enabled Web Browser. License Copyright 2

Sijey 8 Jul 20, 2022
A rhythm game played in your browser's address bar

URLX URLX is a rhythm game played in your browser's address bar. (no it does not stand for anything it's just the best name i could think of) Hit arro

Colon 37 Dec 21, 2022