{"id":17721148,"url":"https://github.com/xhayper/discord-rpc","last_synced_at":"2025-04-05T14:03:10.309Z","repository":{"id":50305827,"uuid":"518729008","full_name":"xhayper/discord-rpc","owner":"xhayper","description":"a fork of discordjs/RPC","archived":false,"fork":false,"pushed_at":"2025-03-19T00:52:35.000Z","size":2267,"stargazers_count":55,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T21:02:48.508Z","etag":null,"topics":["discord","discord-ipc","discord-rpc","ipc","rich-presence","rpc","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xhayper.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},"funding":{"github":"xhayper","patreon":"hayper","ko_fi":"xhayper"}},"created_at":"2022-07-28T06:33:23.000Z","updated_at":"2025-03-28T17:32:31.000Z","dependencies_parsed_at":"2023-11-14T05:23:41.196Z","dependency_job_id":"e8c52e00-2f70-4e65-8953-78a3713ee899","html_url":"https://github.com/xhayper/discord-rpc","commit_stats":{"total_commits":298,"total_committers":6,"mean_commits":"49.666666666666664","dds":0.06040268456375841,"last_synced_commit":"eeb6084bda6ceb7a01c19427c84a15e62a8a3305"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhayper%2Fdiscord-rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhayper%2Fdiscord-rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhayper%2Fdiscord-rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhayper%2Fdiscord-rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xhayper","download_url":"https://codeload.github.com/xhayper/discord-rpc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345849,"owners_count":20924102,"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":["discord","discord-ipc","discord-rpc","ipc","rich-presence","rpc","typescript"],"created_at":"2024-10-25T15:31:29.825Z","updated_at":"2025-04-05T14:03:10.290Z","avatar_url":"https://github.com/xhayper.png","language":"TypeScript","funding_links":["https://github.com/sponsors/xhayper","https://patreon.com/hayper","https://ko-fi.com/xhayper"],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable --\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003cbr /\u003e\n    \u003ch3\u003e@xhayper/discord-rpc\u003c/h3\u003e\n    \u003cbr /\u003e\n    \u003cp\u003e\n        \u003ca href=\"https://www.npmjs.com/package/@xhayper/discord-rpc\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@xhayper/discord-rpc.svg\" alt=\"npm version\"/\u003e\u003c/a\u003e\n        \u003ca href=\"https://discord.com/invite/xTAR8nUs2g\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/discord/965168309731487805.svg\" alt=\"discord\"/\u003e\u003c/a\u003e\n        \u003ca href=\"https://github.com/xhayper/discord-rpc/blob/main/LICENSE\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/github/license/xhayper/discord-rpc.svg\" alt=\"license\"/\u003e\u003c/a\u003e\n    \u003c/p\u003e\n\u003c/div\u003e\n\u003c!-- markdownlint-enable --\u003e\n\n## About\n\n`@xhayper/discord-rpc` is a fork of [discordjs/RPC](https://github.com/discordjs/RPC) with type safety and some additional features.\n\n## Example\n\n```ts\nimport { Client } from \"@xhayper/discord-rpc\";\n\nconst client = new Client({\n    clientId: \"123456789012345678\"\n});\n\nclient.on(\"ready\", () =\u003e {\n    client.user?.setActivity({\n        state: \"Hello, world!\"\n    });\n});\n\nclient.login();\n```\n\n## Compatibility\n\n| OS      | Normal | snap | flatpak |\n| ------- | ------ | ---- | ------- |\n| Windows | Y      | -    | -       |\n| macOS   | Y      | -    | -       |\n| Linux   | Y      | Y    | Y       |\n\n- Linux is tested on Kubuntu 22.04\n\n## Credits\n\n- [discordjs](https://github.com/discordjs): Making [discordjs/RPC](https://github.com/discordjs/RPC)\n- [JakeMakesStuff](https://github.com/JakeMakesStuff): [snap support](https://github.com/discordjs/RPC/pull/152)\n- [Snazzah](https://github.com/Snazzah): [snap + flatpak support](https://github.com/Snazzah/SublimeDiscordRP/blob/c13e60cdbc5de8147881bb232f2339722c2b46b4/discord_ipc/__init__.py#L208)\n- [leonardssh](https://github.com/leonardssh): Making [coc-discord-rpc](https://github.com/leonardssh/coc-discord-rpc) which inspried me to make this package due to how old [discordjs/RPC](https://github.com/discordjs/RPC) is\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxhayper%2Fdiscord-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxhayper%2Fdiscord-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxhayper%2Fdiscord-rpc/lists"}