Skip to content

Carrinson/Bumper

Repository files navigation

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:


Bumper 🎵

A personal Spotify analytics web app that lets you explore your listening habits — top tracks, top artists, recently played, and what's currently playing.


Features

  • 🔐 Spotify OAuth2 login via PKCE (no client secret exposed)
  • 🎧 Currently playing track
  • 📊 Top tracks and artists (1 month, 6 months, 1 year)
  • 🕘 Recently played (last 50 tracks)
  • ⏱️ Minutes listened in the last 7 days

Tech Stack

Frontend

  • React 18
  • React Router v7
  • React Bootstrap
  • Vite

Auth

  • Spotify Web API
  • PKCE Authorization Code Flow

Deployment

  • Vercel

Getting Started

Prerequisites

Installation

git clone https://github.com/your-username/bumper.git
cd bumper
npm install

Environment Setup

In your Spotify Developer Dashboard:

  1. Create an app
  2. Add http://localhost:5173/callback as a Redirect URI
  3. Copy your Client ID

Open src/pages/Login.jsx and update:

const CLIENT_ID = 'your_client_id_here';
const REDIRECT_URI = 'http://localhost:5173/callback';

Running Locally

npm run dev

Visit http://localhost:5173


Deployment (Vercel)

  1. Push your repo to GitHub
  2. Import the project on Vercel
  3. Add your production redirect URI in the Spotify Dashboard (e.g. https://your-app.vercel.app/callback)
  4. Update REDIRECT_URI in Login.jsx to match
  5. Ensure a vercel.json exists in the project root:
{
  "rewrites": [
    { "source": "/(.*)", "destination": "/index.html" }
  ]
}

Spotify Developer Mode

This app is currently in Spotify development mode, meaning only manually added users can log in. To request access, contact the developer.

Extended quota mode (public access) is planned for a future release once a backend is in place.


Roadmap

  • Mobile responsive UI improvements
  • FastAPI backend for secure token exchange and refresh
  • Redis session storage
  • Docker Compose setup (frontend + backend + Redis)
  • Spotify extended quota mode submission

License

MIT

About

A personal Spotify analytics web app that lets you explore your listening habits — top tracks, top artists, recently played, and what's currently playing.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages