{"id":15723340,"url":"https://github.com/sakkke/oauth2-discord-proxy","last_synced_at":"2026-02-14T15:01:56.115Z","repository":{"id":226557181,"uuid":"769021621","full_name":"sakkke/oauth2-discord-proxy","owner":"sakkke","description":"A proxy service that uses Discord OAuth 2.0 authentication powered by Hono","archived":false,"fork":false,"pushed_at":"2024-04-13T07:01:19.000Z","size":77,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T17:49:53.751Z","etag":null,"topics":["authentication","discord","hono","honojs","oauth2","proxy","proxy-server","proxy-service"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/sakkke.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-03-08T07:18:45.000Z","updated_at":"2024-04-08T06:54:08.000Z","dependencies_parsed_at":"2024-04-01T05:24:03.034Z","dependency_job_id":"6c9468df-c38c-482b-8787-c82188167eae","html_url":"https://github.com/sakkke/oauth2-discord-proxy","commit_stats":null,"previous_names":["sakkke/oauth2-discord-proxy"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/sakkke/oauth2-discord-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakkke%2Foauth2-discord-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakkke%2Foauth2-discord-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakkke%2Foauth2-discord-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakkke%2Foauth2-discord-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sakkke","download_url":"https://codeload.github.com/sakkke/oauth2-discord-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakkke%2Foauth2-discord-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29447768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T14:10:32.461Z","status":"ssl_error","status_checked_at":"2026-02-14T14:09:49.945Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["authentication","discord","hono","honojs","oauth2","proxy","proxy-server","proxy-service"],"created_at":"2024-10-03T22:11:16.255Z","updated_at":"2026-02-14T15:01:56.067Z","avatar_url":"https://github.com/sakkke.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oauth2-discord-proxy\n\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/sakkke/oauth2-discord-proxy/bun.yml)\n\n## Description\n\n`oauth2-discord-proxy` is a proxy service that uses Discord OAuth 2.0 authentication powered by [honojs/hono](https://github.com/honojs/hono).\nThe motivation for this project is adding Discord authentication to services that do not have authentication functionality.\n\n## Installation\n\n### bun\n\n```\nbun install oauth2-discord-proxy\n```\n\n### npm\n\n```\nnpm install oauth2-discord-proxy\n```\n\n## Usage\n\nFirst, create a new `Hono` instance and add a route with `createProxy()`.\n\n```js\nimport { Hono } from 'hono'\nimport { createBot, createProxy } from 'oauth2-discord-proxy'\nimport { client_id, client_secret, discord_guild_id, discord_token, oauth2_callback, oauth2_endpoint } from './config.json'\n\nconst app = new Hono()\n\napp.route('/', createProxy({\n  bot: createBot(discord_token),\n  client_id,\n  client_secret,\n  discord_guild_id,\n  oauth2_callback,\n  oauth2_endpoint,\n}))\n\napp.get('/', c =\u003e c.text('ok'))\n```\n\nFinally, serve a application.\n\n```js\nimport { serve } from 'bun'\nimport { port } from './config.json'\n\nserve({\n  fetch: app.fetch,\n  port,\n})\n\nconsole.log(`listening at http://0.0.0.0:${port}`)\nconsole.log(`login: http://0.0.0.0:${port}/login`)\n```\n\nAlso, example code is [here](./src/server.js).\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakkke%2Foauth2-discord-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsakkke%2Foauth2-discord-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakkke%2Foauth2-discord-proxy/lists"}