{"id":16984628,"url":"https://github.com/not-nik/radiance","last_synced_at":"2026-05-19T07:04:30.096Z","repository":{"id":218582447,"uuid":"746828556","full_name":"Not-Nik/radiance","owner":"Not-Nik","description":"Custom Discord server implementation","archived":false,"fork":false,"pushed_at":"2024-02-24T18:32:58.000Z","size":85,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T05:08:57.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Not-Nik.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":"2024-01-22T18:52:17.000Z","updated_at":"2024-01-24T07:33:14.000Z","dependencies_parsed_at":"2024-11-28T09:40:08.318Z","dependency_job_id":null,"html_url":"https://github.com/Not-Nik/radiance","commit_stats":null,"previous_names":["not-nik/radiance"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Not-Nik%2Fradiance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Not-Nik%2Fradiance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Not-Nik%2Fradiance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Not-Nik%2Fradiance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Not-Nik","download_url":"https://codeload.github.com/Not-Nik/radiance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890089,"owners_count":20527031,"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":[],"created_at":"2024-10-14T02:32:56.457Z","updated_at":"2025-10-20T07:39:06.162Z","avatar_url":"https://github.com/Not-Nik.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# radiance\n\nCustom discord server implementation\n\n## Read about it\n\n- [Part 1](https://notnik.cc/posts/discord-part1/)\n- [Part 2](https://notnik.cc/posts/discord-part2/)\n\n## Setup\n\n### Local testing\n\nAdd the following to `/etc/hosts`:\n\n```\n127.0.0.1 discord.com\n127.0.0.1 gateway.discord.gg\n```\n\nFlush your DNS cache, if applicable. Generate the needed certificates in `certs` with these commands:\n\n```shell\nopenssl req -x509 -newkey rsa:4096 -sha256 -days 3650 \\\n        -nodes -keyout key.rest.pem -out cert.rest.pem -subj \"/CN=discord.com\" \\\n        -addext \"subjectAltName=DNS:discord.com,DNS:*.discord.com,IP:127.0.0.1\"\nopenssl req -x509 -newkey rsa:4096 -sha256 -days 3650 \\\n        -nodes -keyout key.gateway.pem -out cert.gateway.pem -subj \"/CN=gateway.discord.gg\" \\\n        -addext \"subjectAltName=DNS:gateway.discord.gg,DNS:*.gateway.discord.gg,IP:127.0.0.1\"\n```\n\nAdd the certificate to your trusted certificates:\n\n- MacOS:\n\n```\nsudo security add-trusted-cert -d -p ssl -p basic -k /Library/Keychains/System.keychain cert.rest.pem\nsudo security add-trusted-cert -d -p ssl -p basic -k /Library/Keychains/System.keychain cert.gateway.pem\n```\n\nRun Caddy with `caddy run` and start both the rest and gateway servers.\n\n## Copyright notices\n\nPart of this project use code from the [twilight](https://crates.io/crates/twilight) crate, which is licensed under\nthe ISC license:\n\n```\nISC License (ISC)\n\nCopyright (c) 2019 (c) The Twilight Contributors\n\nPermission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby\ngranted, provided that the above copyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN\nAN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnot-nik%2Fradiance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnot-nik%2Fradiance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnot-nik%2Fradiance/lists"}