A lightweight, modern menu bar application that automatically scrobbles your Apple Music playback to Last.fm. Built with Swift 6 and optimized for macOS 26.
- Automatic Scrobbling: Automatically detects Apple Music playback and scrobbles tracks after a 30-second listening threshold.
- Menu Bar Interface: A clean, native UI following macOS 26 design guidelines.
- Real-time Status: Dynamic icons and color-coded states (Waiting, Success, Error) to keep you informed.
- Secure Auth: Implements Last.fm's 2.0 API authentication flow.
- macOS 26.0 or later.
- A Last.fm account and API credentials.
The app requires your Last.fm API credentials to be set as environment variables for security:
- Obtain your API Key and Secret from Last.fm API.
- Set the following variables in your environment:
LASTFM_API_KEYLASTFM_API_SECRET
- Launch: Open the application.
- Authorize: Click "1. Autorizar en Last.fm" to open your browser and grant permission.
- Confirm: Return to the app and click "2. Completar inicio de sesión."
- Listen: Play music on Apple Music; the app will handle the rest.
- Language: Swift 6 (Concurrency-first)
- Framework: SwiftUI
- Observation:
@Observablemacro for state management - Communication:
DistributedNotificationCenterfor system-wide Apple Music events
Note: This repository provides the application in a pre-compiled format.