Show your Spotify playing on your Github profile
See the codeCreate Spotify now playing card on your github profile
Running on Vercel serverless function, store data in Firebase (store only access_token, refresh_token, token_expired_timestamp)
2024-06-21
Vercel change the package the free tier is not enough for our usage. I moved service to self-host at Digital Ocean.
Please replace your old endpoint https://spotify-github-profile.vercel.app to https://spotify-github-profile.kittinanx.com
Connect And Grant Permission Example Customization Running for development locally Setting up Vercel Setting up Firebase Setting up Spotify dev Running locally How to Contribute Known Bugs Credit
Connect with Spotify button below to grant permissionYou can customize the appearance by adding query parameters to your URL:
| Parameter | Description | Default |
|---|---|---|
theme | Theme to use (default, compact, natemoo-re, novatorem, karaoke, spotify-embed, apple) | default |
background_color | Background color (hex without #) | 121212 |
border_radius | Border radius in pixels | 10 |
bar_color | Equalizer bar color (hex without #) | 53b14f |
bar_color_cover | Extract bar color from album cover (true/false) | false |
cover_image | Show album cover image (true/false) | true |
show_offline | Show offline status when not playing (true/false) | false |
interchange | Swap artist and song name positions (true/false) | false |
mode | Color mode for supported themes (light/dark) | light |
https://spotify-github-profile.kittinanx.com/api/view?uid=YOUR_UID&cover_image=true&theme=default&border_radius=15&bar_color=53b14f
To run the application locally without Vercel:
Copy .env.example to .env in the root directory and replace the placeholder values with your actual configuration.
Install the required dependencies:
pip install -r api/requirements.txt
Run the application:
python api/app.py
Access the login page at http://localhost:3000/api/login
Note: Ensure your Spotify app's redirect URI is set to http://localhost:3000/api/callback and BASE_URL in .env is set to http://localhost:3000/api.
To develop locally, you need:
http://localhost:3000/api/callbacknpm i -g vercel.env file at the root of the projectSPOTIFY_CLIENT_ID, SPOTIFY_SECRET_ID, and insert the name of your downloaded JSON file in FIREBASEBASE_URL='http://localhost:3000/api'
SPOTIFY_CLIENT_ID='____'
SPOTIFY_SECRET_ID='____'
FIREBASE='__BASE64_FIREBASE_JSON_FILE__'
vercel dev$ vercel dev
Vercel CLI 20.1.2 dev (beta) — https://vercel.com/feedback
> Ready! Available at http://localhost:3000
pytest tests/ -v
pytest tests/ --cov=api --cov-report=html
pytest tests/test_api_view.py -v
pytest tests/ --maxfail=5 --disable-warnings -v
404/500 Error when playing local files
Inspired by https://github.com/natemoo-re
17 followers · starred Aug 2026
1,775 followers · starred Jun 2022
12 followers · starred Sep 2025
106 followers · starred Oct 2021
Show your Spotify playing on your Github profile
See the codeCreate Spotify now playing card on your github profile
Running on Vercel serverless function, store data in Firebase (store only access_token, refresh_token, token_expired_timestamp)
2024-06-21
Vercel change the package the free tier is not enough for our usage. I moved service to self-host at Digital Ocean.
Please replace your old endpoint https://spotify-github-profile.vercel.app to https://spotify-github-profile.kittinanx.com
Connect And Grant Permission Example Customization Running for development locally Setting up Vercel Setting up Firebase Setting up Spotify dev Running locally How to Contribute Known Bugs Credit
Connect with Spotify button below to grant permissionYou can customize the appearance by adding query parameters to your URL:
| Parameter | Description | Default |
|---|---|---|
theme | Theme to use (default, compact, natemoo-re, novatorem, karaoke, spotify-embed, apple) | default |
background_color | Background color (hex without #) | 121212 |
border_radius | Border radius in pixels | 10 |
bar_color | Equalizer bar color (hex without #) | 53b14f |
bar_color_cover | Extract bar color from album cover (true/false) | false |
cover_image | Show album cover image (true/false) | true |
show_offline | Show offline status when not playing (true/false) | false |
interchange | Swap artist and song name positions (true/false) | false |
mode | Color mode for supported themes (light/dark) | light |
https://spotify-github-profile.kittinanx.com/api/view?uid=YOUR_UID&cover_image=true&theme=default&border_radius=15&bar_color=53b14f
To run the application locally without Vercel:
Copy .env.example to .env in the root directory and replace the placeholder values with your actual configuration.
Install the required dependencies:
pip install -r api/requirements.txt
Run the application:
python api/app.py
Access the login page at http://localhost:3000/api/login
Note: Ensure your Spotify app's redirect URI is set to http://localhost:3000/api/callback and BASE_URL in .env is set to http://localhost:3000/api.
To develop locally, you need:
http://localhost:3000/api/callbacknpm i -g vercel.env file at the root of the projectSPOTIFY_CLIENT_ID, SPOTIFY_SECRET_ID, and insert the name of your downloaded JSON file in FIREBASEBASE_URL='http://localhost:3000/api'
SPOTIFY_CLIENT_ID='____'
SPOTIFY_SECRET_ID='____'
FIREBASE='__BASE64_FIREBASE_JSON_FILE__'
vercel dev$ vercel dev
Vercel CLI 20.1.2 dev (beta) — https://vercel.com/feedback
> Ready! Available at http://localhost:3000
pytest tests/ -v
pytest tests/ --cov=api --cov-report=html
pytest tests/test_api_view.py -v
pytest tests/ --maxfail=5 --disable-warnings -v
404/500 Error when playing local files
Inspired by https://github.com/natemoo-re
17 followers · starred Aug 2026
1,775 followers · starred Jun 2022
12 followers · starred Sep 2025
106 followers · starred Oct 2021