A minimal, fullscreen web app that displays your currently playing Spotify album art in real time. Designed for a second screen, ambient display, or Fire TV Stick setup.
- Fullscreen album art with blurred background glow
- Smooth crossfade transition on track change
- Track info overlay (song, artist, album) appears on hover, auto-hides after 5 seconds
- Cursor auto-hides after 3 seconds of inactivity
- Bilingual UI (中文 / English)
- Auto token refresh — log in once, stay connected
Go to Spotify Developer Dashboard and create a new app.
- Set Redirect URI to your deployed page URL (e.g.
https://yourusername.github.io/spotify-now-playing/) - Copy your Client ID
You can access https://shepherd98.github.io/spotify-now-playing/ to use it. Or: This is a single HTML file with no build step. You can host it anywhere:
GitHub Pages (recommended):
- Fork or clone this repo
- Go to repo Settings → Pages → Source → GitHub Actions
- Choose Static HTML, commit the workflow
- Your site will be live at
https://yourusername.github.io/spotify-now-playing/
Or simply open index.html locally — just make sure the Redirect URI in your Spotify app matches your local address.
- Open the deployed page
- Paste your Spotify Client ID
- Click Connect Spotify and authorize
- Start playing music on any Spotify device — the album art will appear automatically
- Open Silk Browser on your Fire TV Stick
- Navigate to your deployed URL
- Log in once with your Client ID
- Go fullscreen
- To prevent screensaver interruption: Settings → Display & Sounds → Screensaver → Start Time → Never
- Uses Spotify Web API with OAuth 2.0 PKCE flow (no backend required)
- Polls
GET /v1/me/player/currently-playingevery 3 seconds - Displays the highest resolution album art (640×640) with a CSS blur background layer
- Automatically refreshes the access token using the stored refresh token
HTML / CSS / JavaScript — single file, no dependencies, no build tools.
一个极简的全屏网页应用,实时显示你正在播放的 Spotify 专辑封面。专为第二块屏幕、氛围显示屏或 Fire TV Stick 设计。
- 全屏显示专辑封面,背景带模糊光晕效果
- 切歌时平滑淡入淡出过渡
- 鼠标悬停显示歌曲信息(歌名、歌手、专辑),5 秒后自动隐藏
- 鼠标 3 秒无操作自动隐藏光标
- 双语界面(中文 / English)
- 自动刷新 Token,登录一次即可持续使用
前往 Spotify Developer Dashboard 创建一个新的 App。
- 将 Redirect URI 设置为你部署后的页面地址(例如
https://你的用户名.github.io/spotify-now-playing/) - 复制 Client ID
你可以直接访问 https://shepherd98.github.io/spotify-now-playing/ 或者:
本项目是一个纯静态 HTML 文件,无需构建,可以部署在任何地方:
GitHub Pages(推荐):
- Fork 或 Clone 本仓库
- 进入仓库 Settings → Pages → Source → GitHub Actions
- 选择 Static HTML,提交 workflow
- 页面将部署在
https://你的用户名.github.io/spotify-now-playing/
或者直接本地打开 index.html —— 确保 Spotify App 中的 Redirect URI 与你的本地地址一致即可。
- 打开部署好的页面
- 粘贴你的 Spotify Client ID
- 点击 连接 Spotify 并完成授权
- 在任意设备上播放 Spotify 音乐,专辑封面会自动显示
- 打开 Fire TV Stick 上的 Silk 浏览器
- 访问你部署好的页面地址
- 输入 Client ID 登录一次
- 全屏显示
- 防止跳屏保:Settings → Display & Sounds → Screensaver → Start Time → Never
- 使用 Spotify Web API,采用 OAuth 2.0 PKCE 授权流程(无需后端服务器)
- 每 3 秒轮询
GET /v1/me/player/currently-playing接口 - 获取最高分辨率的专辑封面(640×640),配合 CSS 模糊背景层显示
- 使用 Refresh Token 自动刷新 Access Token,无需反复登录
HTML / CSS / JavaScript —— 单文件,零依赖,无需构建工具。
MIT

