Simple music scrobbler for Apple Music written in Node.js (22.12+) with Bun support
# Clone the repository
git clone https://github.com/vk0novalov/imusic-scrobby.git
# Navigate to the project directory
cd imusic-scrobby
# Install dependencies
npm install
# or for Bun
bun installCreate a .env file in the root directory based on provided example:
cp .env.example .envFill in the .env file with your API keys provided by Last.fm
You can get them here: https://www.last.fm/api/account/create
API_KEY=app_key
API_SECRET=app_secret# Run in development mode
npm run dev
# Run in production mode
npm start
# for Bun
bun run src/index.ts
# Run tests
npm tYou can use PM2 to run the application as a service.
Install PM2 globally:
npm install -g pm2Run the application as a service:
pm2 start npm --name imusic-scrobby -- startUseful how-to for Bun.
- applescript
- bun-storage (shim of localStorage for Bun)
This project is licensed under the MIT License - see the LICENSE file for details.
Viktor Konovalov - @vk0novalov