{"id":21321692,"url":"https://github.com/nsimonfr/deezer-playing-notifications","last_synced_at":"2025-07-12T04:33:50.382Z","repository":{"id":44824641,"uuid":"259676934","full_name":"nSimonFR/deezer-playing-notifications","owner":"nSimonFR","description":"🎵 Reverse engineering of deezer real-time websocket messaging api to get played tracks.","archived":false,"fork":false,"pushed_at":"2023-11-10T08:14:10.000Z","size":37,"stargazers_count":4,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T01:44:53.618Z","etag":null,"topics":["deezer","nowplaying","reverse-engineering","websocket","xmpp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nSimonFR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-04-28T15:28:57.000Z","updated_at":"2023-01-27T00:16:02.000Z","dependencies_parsed_at":"2024-12-01T04:37:47.102Z","dependency_job_id":"ff3e4d2b-5644-4f5d-b87f-bef24f5f8820","html_url":"https://github.com/nSimonFR/deezer-playing-notifications","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"bf9c482567fb2b8feef78c84fe808857d9a952bb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nSimonFR/deezer-playing-notifications","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nSimonFR%2Fdeezer-playing-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nSimonFR%2Fdeezer-playing-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nSimonFR%2Fdeezer-playing-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nSimonFR%2Fdeezer-playing-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nSimonFR","download_url":"https://codeload.github.com/nSimonFR/deezer-playing-notifications/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nSimonFR%2Fdeezer-playing-notifications/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264939608,"owners_count":23686208,"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":["deezer","nowplaying","reverse-engineering","websocket","xmpp"],"created_at":"2024-11-21T20:08:37.299Z","updated_at":"2025-07-12T04:33:50.092Z","avatar_url":"https://github.com/nSimonFR.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://nodei.co/npm/deezer-playing-notifications.png)](https://www.npmjs.com/package/deezer-playing-notifications)\n\n# deezer-playing-notifications\n\nReverse engineering of deezer real-time websocket messaging api to get played tracks.\n\nThis allows to make a small [lastfm](https://last.fm/)-like self-hosted service.\n\n## Usage:\n\nYou will need a USERID _(Deezer userId)_ and TOKEN _(From [deezer api](https://developers.deezer.com) or from your browser cache)_:\n\n```js\nconst Deezer = require(\"deezer-playing-notifications\");\n\nconst xmpp = new Deezer(USERID, TOKEN).initializeXMPP();\nxmpp.on(\"track\", (trackId) =\u003e console.log(\"Track ID:\", trackId));\nxmpp.start();\n```\n\n## API\n\n`new Deezer()` requires a valid userId and token to connect.\n\n`initializeXMPP` method returns an [xmpp client](https://www.npmjs.com/package/@xmpp/client), you may listen to any events as you normally would.\n\nIt also introduces a new event: `\"track\"` which sends the `songId` on track change.\n\nDeezer also exposes the following static method:\n\n- `getSong` (async) which takes a songId and returns a deezer [track](https://developers.deezer.com/api/track)\n\n## Examples\n\nAvailable [here](https://github.com/nSimonFR/deezer-playing-notifications/tree/master/examples):\n\n- [logToConsole](https://github.com/nSimonFR/deezer-playing-notifications/tree/master/examples/logToConsole.js): simply logs tracks to console\n- [updateStatus](https://github.com/nSimonFR/deezer-playing-notifications/tree/master/examples/updateStatus.js): updates discord status on track change\n\n## Contributing \u0026 LTS\n\nContributions are welcomed, just consider this more as a POC rather than a real library, compatibility may break at any moment and I cannot garantee support.\n\nIdeas of what could be added / updated:\n\n- Basic configuration (eslint/prettier etc)\n- Tests to ensure compatibility (jest preffered)\n- Rewrite in typescript\n- Support for other types of messages.\n\nMIT @ nSimonFR\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsimonfr%2Fdeezer-playing-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsimonfr%2Fdeezer-playing-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsimonfr%2Fdeezer-playing-notifications/lists"}