{"id":16252097,"url":"https://github.com/samuelmaddock/electron-discord-register","last_synced_at":"2026-04-14T00:03:05.044Z","repository":{"id":57221601,"uuid":"152944828","full_name":"samuelmaddock/electron-discord-register","owner":"samuelmaddock","description":"Register an application protocol to launch your Electron app with Discord—without native modules.","archived":false,"fork":false,"pushed_at":"2018-10-24T05:29:49.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T21:37:53.225Z","etag":null,"topics":["discord","electron"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/samuelmaddock.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":"2018-10-14T06:10:05.000Z","updated_at":"2018-10-24T05:29:51.000Z","dependencies_parsed_at":"2022-08-29T01:50:46.030Z","dependency_job_id":null,"html_url":"https://github.com/samuelmaddock/electron-discord-register","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/samuelmaddock%2Felectron-discord-register","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelmaddock%2Felectron-discord-register/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelmaddock%2Felectron-discord-register/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelmaddock%2Felectron-discord-register/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samuelmaddock","download_url":"https://codeload.github.com/samuelmaddock/electron-discord-register/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247845893,"owners_count":21005922,"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","electron"],"created_at":"2024-10-10T15:12:26.594Z","updated_at":"2026-04-14T00:03:05.018Z","avatar_url":"https://github.com/samuelmaddock.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-discord-register [![npm][npm-image]][npm-url]\n\n[npm-image]: https://img.shields.io/npm/v/electron-discord-register.svg\n[npm-url]: https://npmjs.org/package/electron-discord-register\n\nRegister an application protocol to launch your Electron app with Discord—without native modules.\n\nThis module can be used to add support for Discord's Rich Presence [Ask to Join](https://discordapp.com/developers/docs/rich-presence/how-to#ask-to-join) and [Spectate](https://discordapp.com/developers/docs/rich-presence/how-to#spectating) features.\n\nEquivalent to calling `Discord_Register()` or `Discord_Initialize()` with the `autoRegister` parameter using the [Discord SDK](https://discordapp.com/developers/docs/rich-presence/how-to#initialization).\n\n_Currently only supports **Windows** and **macOS**._\n\n## Install\n```\nnpm install electron-discord-register\n```\n\n## Usage\n```js\n// CommonJS\nconst discordRegister = require('electron-discord-register')\n\n// ES module\nimport discordRegister from 'electron-discord-register'\n\n// Use your Discord application ID\nconst DISCORD_APP_ID = '418562325121990661'\n\n// Call on application startup in main or renderer process\ndiscordRegister(DISCORD_APP_ID)\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmaddock%2Felectron-discord-register","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelmaddock%2Felectron-discord-register","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmaddock%2Felectron-discord-register/lists"}