A lightweight Node.js API that returns a plain-text now-playing status from Last.fm. Foundation for a streamer overlay service.
GET /nowplaying?user=<lastfm-username>
Responses:
Now playing: Bohemian Rhapsody by Queen
Not currently playing anything
Error: User not found
cp .env.example .env
# Add your Last.fm API key to .env
npm install
npm startGet a free API key at last.fm/api.
docker compose up --buildChange the port without touching any files:
PORT=8080 docker compose up --build| Variable | Required | Default | Description |
|---|---|---|---|
LASTFM_API_KEY |
Yes | — | Your Last.fm API key |
PORT |
No | 3000 |
Port the server listens on |