Skip to content
PaidguyPublic

About

Explore your Last.fm stats, discover listening patterns, and turn your music history into beautiful, shareable recaps

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation


statsFM Logo

statsFM

Turn your Last.fm listening history into deep music insights and shareable posters.


CI Deploy TypeScript Vite License


Features  ·  Tech Stack  ·  Quick Start  ·  Structure  ·  Contributing



✦ Features

🎧  Deep Music Insights

Goes beyond simple play counts. Discover your unique taste rating, how varied your artist rotation is, and which decades of music you listen to the most.

📊  Listening Habits & Charts

See exactly when you listen to music with 24-hour activity charts, weekly heatmaps, and a live speedometer that tracks your daily listening pace.

🖼️  Shareable Posters & Recaps

Turn your top artists and tracks into high-resolution festival lineup posters, artist spotlight cards, and vertical story recaps ready to download and share.

⚡  Fast, Clean & Private

Designed with a smooth, minimalist interface, a live "Now Playing" ticker, and a built-in backend server that keeps your Last.fm API key completely hidden.


✦ Tech Stack

Part Built With What It Does
Frontend React, TypeScript, Vite Powers the user interface, interactive charts, and fast page loads
Analytics Custom Insights Engine Calculates taste scores, decade breakdowns, and listening patterns
Backend Node.js (server.ts) Fetches data from Last.fm, caches results, and protects your API key
Automation GitHub Actions Automatically tests code (ci.yml) and deploys updates (deploy.yml)

✦ Quick Start

1. What You Need

2. Install & Set Up

# Clone the repository
git clone [https://github.com/Paidguy/statsfm.git](https://github.com/Paidguy/statsfm.git)
cd statsfm

# Install packages
npm install

# Create your environment file
cp .env.example .env

3. Add Your API Key

Open the .env file and paste your Last.fm API key:

Variable Required Description
LASTFM_API_KEY Yes Your personal Last.fm API key (kept safe on the server)
PORT Optional Custom port for the local server

4. Run the App

# Start the app in development mode
npm run dev

# Build the app for production
npm run build

✦ Project Structure

statsFM/
├── .github/                 # Automated testing, deployment & issue templates
├── public/                  # App icon, static files & 404 error page
├── src/
│   ├── api/                 # Connects the frontend to the backend server
│   ├── components/          # UI screens, charts, heatmaps & poster generators
│   ├── server/              # Handles Last.fm API requests and caching
│   ├── types/               # TypeScript data definitions
│   ├── utils/               # Math and logic for insights and decade tracking
│   ├── App.tsx              # Main page layout
│   └── main.tsx             # App starting point
├── .env.example             # Sample environment file
├── server.ts                # Backend server entry file
└── vite.config.ts           # Build and bundler settings

✦ Contributing

Want to report a bug, suggest a feature, or submit code? Check out CONTRIBUTING.md to get started.

  1. Fork this repository
  2. Create a new branch (git checkout -b feat/your-feature)
  3. Commit your changes (git commit -m 'feat: add your feature')
  4. Push to the branch (git push origin feat/your-feature)
  5. Open a Pull Request


Released under the MIT License.
Built by @Paidguy


About

Explore your Last.fm stats, discover listening patterns, and turn your music history into beautiful, shareable recaps

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages