{"id":19092975,"url":"https://github.com/foxt/easy-presence","last_synced_at":"2025-04-30T12:43:17.682Z","repository":{"id":57218629,"uuid":"398545350","full_name":"foxt/easy-presence","owner":"foxt","description":"Discord rich presence, batteries included!","archived":false,"fork":false,"pushed_at":"2022-11-15T17:46:08.000Z","size":77,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T01:32:58.846Z","etag":null,"topics":["discord","discord-ipc","discord-rich-presence","discord-rpc-client"],"latest_commit_sha":null,"homepage":"http://npmjs.com/package/easy-presence","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/foxt.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}},"created_at":"2021-08-21T11:54:19.000Z","updated_at":"2023-09-30T20:00:52.000Z","dependencies_parsed_at":"2023-01-23T03:00:13.329Z","dependency_job_id":null,"html_url":"https://github.com/foxt/easy-presence","commit_stats":null,"previous_names":["rblxrp/easy-presence"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Feasy-presence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Feasy-presence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Feasy-presence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Feasy-presence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxt","download_url":"https://codeload.github.com/foxt/easy-presence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251702677,"owners_count":21630071,"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-rich-presence","discord-rpc-client"],"created_at":"2024-11-09T03:22:57.326Z","updated_at":"2025-04-30T12:43:17.658Z","avatar_url":"https://github.com/foxt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EasyPresence\n\nDiscord Rich Presence, made easy!\n\n## Why EasyPresence?\n\n - Reliable\n   - EasyPresence was built with one purpose, rich presence, batteries included. Thanks to this, a lot of code (such as automatic reconnection, ratelimiting) is built directly in.\n - Simple\n   - You only have to add 1 line of code to your project to get working rich presence. It's really that simple.\n - Light\n   - EasyPresence has **0** dependencies, and is only 30kb (less than 40% of `discord-rpc`).\n - Typed\n   - EasyPresence is written in pure TypeScript, and therefore has typings straight out of the box.\n\n## Example\n\n### One-liner\n\n```js\n(new (require(\"easy-presence\").EasyPresence)(\"878603502048411648\")).setActivity({\n        details: \"Using EasyPresence\",\n        state: \"neato!\",\n});\n```\n### Advanced\n```js\nconst client = new (require(\"easy-presence\").EasyPresence)(\"878603502048411648\"); // replace this with your Discord Client ID.\nclient.on(\"connected\", () =\u003e {\n    console.log(\"Hello,\", client.environment.user.username);\n});\n\n// This will be logged when the presence was sucessfully updated on Discord.\nclient.on(\"activityUpdate\", (activity) =\u003e {\n    console.log(\"Now you're playing\", activity ? activity.name : \"nothing!\")\n});\n\nsetInterval(() =\u003e {\n    client.setActivity({\n        details: \"Using EasyPresence\",\n        state: \"neato!\",\n        assets: {\n            large_image: \"rblxrp\",\n            large_text: \"EasyPresence\",\n            small_image: \"octocat\",\n            small_text: \"https://github.com/rblxrp/easypresence\"\n        },\n        buttons: [\n            {\n                label: \"Visit on GitHub\",\n                url: \"https://github.com/rblxrp/easypresence\"\n            }\n        ],\n        party: {\n            id: \"1234567890\",\n            size: [1, 10]\n        },\n        timestamps: { start: new Date() }\n    });\n    \n    // Remove the presence\n    //client.setActivity();\n}, 1000);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxt%2Feasy-presence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxt%2Feasy-presence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxt%2Feasy-presence/lists"}