{"id":20804499,"url":"https://github.com/enjikaka/listen-in","last_synced_at":"2026-05-19T03:18:21.091Z","repository":{"id":147132639,"uuid":"461606732","full_name":"enjikaka/listen-in","owner":"enjikaka","description":"Get your LastFM scrobbles live over Server-Sent Events.","archived":false,"fork":false,"pushed_at":"2024-09-05T07:58:32.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-12T03:31:56.316Z","etag":null,"topics":["deno","lastfm","server-sent-events"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enjikaka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-20T20:22:28.000Z","updated_at":"2025-01-13T11:53:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e1be643-70d2-4209-b9ef-e3befd6eb494","html_url":"https://github.com/enjikaka/listen-in","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/enjikaka/listen-in","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enjikaka%2Flisten-in","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enjikaka%2Flisten-in/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enjikaka%2Flisten-in/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enjikaka%2Flisten-in/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enjikaka","download_url":"https://codeload.github.com/enjikaka/listen-in/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enjikaka%2Flisten-in/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265240319,"owners_count":23732994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","lastfm","server-sent-events"],"created_at":"2024-11-17T19:09:41.720Z","updated_at":"2026-05-19T03:18:21.062Z","avatar_url":"https://github.com/enjikaka.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LastFM Scrobbles over Server-Sent Events\n\nSmall Deno service, deployed on Deno Deploy, for getting scrobbles live over SSE.\n\nDeployed on: `https://listen-in.deno.dev/:username` (check mine: [https://listen-in.deno.dev/enjikaka](https://listen-in.deno.dev/enjikaka))\n\nThis is what powers the \"now playing\"-bubble that exists on the top right of [my website](https://jeremy.se/) when I listen to music.\n\n## Events\n\n### user-info\n\nOn first connection you get the [user information](https://github.com/enjikaka/listen-in/blob/ea221947bb8c0f97b7d86757980b9ca1507b371b/lastfm.ts#L6) as an event\n\n```ts\ninterface UserInfo {\n playlists: string,\n playcount: number,\n gender: string,\n name: string,\n subscriber: string,\n url: string,\n country: string,\n image: UserImage[],\n registered: { unixtime: number },\n type: string,\n age: string,\n bootstrap: string,\n realname: string\n}\n```\n\nwith data from [https://www.last.fm/api/show/user.getInfo](https://www.last.fm/api/show/user.getInfo)\n\nExample:\n```\nevent: user-info\ndata: {\"name\":\"enjikaka\",\"age\":\"0\",\"subscriber\":\"0\",\"realname\":\"Jeremy Karlsson\",\"bootstrap\":\"0\",\"playcount\":\"62161\",\"artist_count\":\"8592\",\"playlists\":\"0\",\"track_count\":\"18317\",\"album_count\":\"13875\",\"image\":[{\"url\":\"https://lastfm.freetls.fastly.net/i/u/34s/6c7b1d3e6e4c1f13282d2aff44d83334.png\",\"size\":34},{\"url\":\"https://lastfm.freetls.fastly.net/i/u/64s/6c7b1d3e6e4c1f13282d2aff44d83334.png\",\"size\":64},{\"url\":\"https://lastfm.freetls.fastly.net/i/u/174s/6c7b1d3e6e4c1f13282d2aff44d83334.png\",\"size\":174},{\"url\":\"https://lastfm.freetls.fastly.net/i/u/300x300/6c7b1d3e6e4c1f13282d2aff44d83334.png\",\"size\":300}],\"registered\":{\"unixtime\":\"1341093986\",\"#text\":1341093986},\"country\":\"Sweden\",\"gender\":\"n\",\"url\":\"https://www.last.fm/user/enjikaka\",\"type\":\"user\"}\n```\n\n### scrobble\n\nWhen tracks begin scrobbling, you'll get a scrobble event\n\n```ts\ninterface Scrobble {\n   url: string,\n   title: string,\n   artist: string,\n   image: Array\u003c{ url: string, size: number }\u003e,\n   checksum: string,\n   tidal: number,\n}\n```\n\nExample:\n```\nid: 4a2d9c44104963e3caf8c9cef5e01620b79f3b35\nevent: scrobble\ndata: {\"url\":\"https://www.last.fm/music/Pegboard+Nerds,+EMEL,+Rayhem/_/With+You\",\"title\":\"With You\",\"artist\":\"Pegboard Nerds, EMEL, Rayhem\",\"image\":[{\"url\":\"https://lastfm.freetls.fastly.net/i/u/34s/2a96cbd8b46e442fc41c2b86b821562f.png\",\"size\":34},{\"url\":\"https://lastfm.freetls.fastly.net/i/u/64s/2a96cbd8b46e442fc41c2b86b821562f.png\",\"size\":64},{\"url\":\"https://lastfm.freetls.fastly.net/i/u/174s/2a96cbd8b46e442fc41c2b86b821562f.png\",\"size\":174},{\"url\":\"https://lastfm.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png\",\"size\":300}],\"tidal\":380270409,\"checksum\":\"4a2d9c44104963e3caf8c9cef5e01620b79f3b35\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenjikaka%2Flisten-in","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenjikaka%2Flisten-in","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenjikaka%2Flisten-in/lists"}