Show off your recently played tracks!
https://web.liminal.cafe/~sakura/
- Edit the props in the App.svelte file
// hard-limit is 50 tracks
<RecentTracks user="YOUR_USERNAME" limit={20} />- Make a .env file and add the following variables:
VITE_LF_KEY=YOUR_API_KEY
VITE_B_URL=https://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=
// install deps
bun install
// try it out
bun run dev
// use as standalone
bun run buildYou can easily drop this in an existing svelte project by importing the RecentTracks.svelte file, or even an SSG like Astro, which can hydrate it as an island.