{"id":20333690,"url":"https://github.com/davidegalilei/nimpresence","last_synced_at":"2025-09-23T02:32:12.151Z","repository":{"id":111470206,"uuid":"428412112","full_name":"DavideGalilei/nimpresence","owner":"DavideGalilei","description":"A simple to use async Nim library which aims to use Discord's rich presence API with ease","archived":false,"fork":false,"pushed_at":"2021-11-16T19:58:10.000Z","size":46,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-14T20:43:10.597Z","etag":null,"topics":["async","discord","library","nim","presence","rich","rich-presence"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/DavideGalilei.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":"2021-11-15T20:28:59.000Z","updated_at":"2024-01-11T01:59:38.000Z","dependencies_parsed_at":"2023-03-13T13:40:06.685Z","dependency_job_id":null,"html_url":"https://github.com/DavideGalilei/nimpresence","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavideGalilei%2Fnimpresence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavideGalilei%2Fnimpresence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavideGalilei%2Fnimpresence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavideGalilei%2Fnimpresence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavideGalilei","download_url":"https://codeload.github.com/DavideGalilei/nimpresence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233916815,"owners_count":18750447,"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":["async","discord","library","nim","presence","rich","rich-presence"],"created_at":"2024-11-14T20:32:53.988Z","updated_at":"2025-09-23T02:32:07.078Z","avatar_url":"https://github.com/DavideGalilei.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/DavideGalilei/nimpresence\"\u003e\n        \u003cimg src=\"/assets/banner.png\" alt=\"nimpresence banner\" /\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003cb\u003eA simple to use async Nim library which aims to use Discord's rich presence API with ease\u003c/b\u003e\n\u003c/p\u003e\n\n# NimPresence\n\n\u003ca href=\"https://img.shields.io/badge/Made%20with-Nim-yellow?style=for-the-badge\u0026logo=Nim\" alt=\"Made with Nim\"\u003e\u003c/a\u003e\n\n## Features\n - It's async\n - Works on both Unix and Windows\n - Has no external dependencies\n - It's easy to use (check [examples](/examples) folder)\n\n## Installation\n```bash\n$ nimble install https://github.com/DavideGalilei/nimpresence\n```\n\n## How to get Client ID?\nGo to https://discord.com/developers/applications, authenticate, create an application, and get its client id. I will leave mine in the examples to make them reproducible.\n\n## Usage\n\n```nim\ndiscard await presence.update(\n    state = some \"Test #1\",\n    details = some r\"`\\(^~^)/`\"\n    `end` = some getTime().toUnix() + 1000,\n    buttons = some @[\n        Button(label: \"aaaaa\", url: \"https://google.com\"),\n        Button(label: \"aaaaa\", url: \"https://google.com\")\n    ]\n)\n```\n\n\u003cimg src=\"/assets/example.jpg\"\u003e\u003c/img\u003e\n\n\u003e ⚠️ **If the library is not working**\n - Mixing parameters such as match/spectate/join with buttons is not permitted, and will not update your presence (try with different options)\n - If you make too much requests in a short while, discord may ratelimit you for some minutes, try again later\n - If it gives compile errors, remember that you need to use the `some` function from `std/options` library, since optional parameters are used in `Presence.update(...)`\n\n## Credits\nSpecial thanks to [pypresence](https://github.com/qwertyquerty/pypresence), which let me understand how Discord's socket works.\n\n## License\nThis project is under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidegalilei%2Fnimpresence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidegalilei%2Fnimpresence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidegalilei%2Fnimpresence/lists"}