Turn your Last.fm listening history into deep music insights and shareable posters.
Features · Tech Stack · Quick Start · Structure · Contributing
|
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. |
See exactly when you listen to music with 24-hour activity charts, weekly heatmaps, and a live speedometer that tracks your daily listening pace. |
|
Turn your top artists and tracks into high-resolution festival lineup posters, artist spotlight cards, and vertical story recaps ready to download and share. |
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. |
| 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) |
- Node.js (v18 or newer) and npm
- A free Last.fm API Key
# 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 .envOpen 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 |
# Start the app in development mode
npm run dev
# Build the app for production
npm run buildstatsFM/
├── .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
Want to report a bug, suggest a feature, or submit code? Check out CONTRIBUTING.md to get started.
- Fork this repository
- Create a new branch (
git checkout -b feat/your-feature) - Commit your changes (
git commit -m 'feat: add your feature') - Push to the branch (
git push origin feat/your-feature) - Open a Pull Request