spotify-wrapped Tailwind Templates

Spotify Wrapped

Your personal Spotify stats dashboard - view your top artists, tracks, and listening habits anytime. Built with Next.js, TypeScript, and Tailwind CSS.

Spotify Profile Viewer

A web application that allows users to view their Spotify profile and listening data using the Spotify Web API.

Demo

Spotify Profile Viewer Demo

Prerequisites

Before you begin, ensure you have:

  • Node.js (v18 or higher)
  • A Spotify Developer account
  • A registered Spotify application with:
    • Client ID
    • Client Secret
    • Redirect URI set to http://localhost:3000/callback

Setup

  1. Clone the repository:

    git clone https://github.com/osallak/spotify-wrapped
    cd spotif-wrapped
    
  2. Install dependencies:

    npm install
    
  3. Create a .env.local file in the root directory with your Spotify credentials:

    NEXT_PUBLIC_SPOTIFY_CLIENT_ID=your_client_id_here
    NEXT_PUBLIC_SPOTIFY_CLIENT_SECRET=your_client_secret_here
    NEXT_PUBLIC_REDIRECT_URI=http://localhost:3000/callback
    
  4. Start the development server:

    npm run dev
    
  5. Open http://localhost:3000 in your browser.

Features

  • Spotify Authentication
  • User Profile Display
  • Top Artists and Tracks
  • Recently Played Tracks
  • Playlists
  • Following Data

Tech Stack

Development

To contribute to this project:

  1. Create a feature branch:

    git checkout -b feature/your-feature-name
    
  2. Make your changes and commit:

    git commit -m "Add your feature description"
    
  3. Push to your branch:

    git push origin feature/your-feature-name
    

Environment Variables

The following environment variables are required:

  • NEXT_PUBLIC_SPOTIFY_CLIENT_ID: Your Spotify application client ID
  • NEXT_PUBLIC_SPOTIFY_CLIENT_SECRET: Your Spotify application client secret
  • NEXT_PUBLIC_REDIRECT_URI: The callback URL for Spotify authentication

Spotify Setup

  1. Go to Spotify Developer Dashboard
  2. Create a new application
  3. Add http://localhost:3000/callback to the Redirect URIs in your application settings
  4. Copy the Client ID and Client Secret to your .env.local file

License

[Your chosen license]

Acknowledgments

Top categories

Loading Svelte Themes