Store
Browse@brika/plugin-spotify
Viewing in

Spotify

Brika Labsv0.4.0MITrequires brika ^0.4.02 languages

Spotify Connect player for BRIKA dashboards

83 installs
$brika install @brika/plugin-spotify

Capabilities

3 bricks1 block5 sparks

Localization

Ships translations for 2 languages. Brika picks the active locale from the hub at runtime, falling back to English.

EnglishDEFAULTFrançais

About

Spotify Connect

Spotify playback controller for BRIKA dashboards. Displays now-playing info, album art, and provides full transport controls via the Spotify Web API.

Setup

  1. Create an app at developer.spotify.com
  2. Add http://127.0.0.1:3001/api/oauth/spotify/callback as a Redirect URI in your Spotify app settings
  3. In BRIKA, go to the plugin preferences and paste your Client ID
  4. Click the Connect link to authorize

Uses PKCE — no client secret needed.

Brick: Spotify Player

Responsive player that adapts to the grid size:

SizeLayout
1-2 colsAlbum art with play/pause overlay
3-4 colsAlbum art background with floating control panel
5+ colsSplit layout — album art left, full controls right

Height unlocks additional features:

  • h >= 3 (medium layout): seek slider
  • h >= 4: volume slider
  • h >= 5 (large layout): device name badge

Config

NameTypeDefaultDescription
refreshIntervalnumber3000Polling interval in ms (1000–30000)

Progress is interpolated locally between polls for smooth UI updates.

Spark: Track Changed

Emitted whenever the playing track changes.

Payload:

FieldTypeDescription
trackNamestringTrack title
artistNamestringArtist name(s), comma-separated
albumNamestringAlbum title
albumArtstring | nullAlbum art URL (640px)
timestampnumberUnix timestamp (ms)

Scopes

  • user-read-playback-state
  • user-modify-playback-state
  • user-read-currently-playing