{"id":42407551,"url":"https://github.com/octohedron/goddit","last_synced_at":"2026-01-28T01:40:08.450Z","repository":{"id":57608941,"uuid":"90488326","full_name":"octohedron/goddit","owner":"octohedron","description":"🏓 Reddit golang chat","archived":false,"fork":false,"pushed_at":"2020-05-24T03:56:34.000Z","size":286,"stargazers_count":35,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"reddit","last_synced_at":"2024-06-20T15:21:45.756Z","etag":null,"topics":["chat","golang","mgo","mongodb","reddit-api","redigo","redis","websockets"],"latest_commit_sha":null,"homepage":"","language":"Go","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/octohedron.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}},"created_at":"2017-05-06T20:08:20.000Z","updated_at":"2022-09-22T04:40:56.000Z","dependencies_parsed_at":"2022-09-26T20:53:47.294Z","dependency_job_id":null,"html_url":"https://github.com/octohedron/goddit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/octohedron/goddit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octohedron%2Fgoddit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octohedron%2Fgoddit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octohedron%2Fgoddit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octohedron%2Fgoddit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octohedron","download_url":"https://codeload.github.com/octohedron/goddit/tar.gz/refs/heads/reddit","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octohedron%2Fgoddit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28832108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T23:29:49.665Z","status":"ssl_error","status_checked_at":"2026-01-27T23:25:58.379Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["chat","golang","mgo","mongodb","reddit-api","redigo","redis","websockets"],"created_at":"2026-01-28T01:40:07.818Z","updated_at":"2026-01-28T01:40:08.443Z","avatar_url":"https://github.com/octohedron.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Golang chat server 🏓\n\n============================\n\n##### Try it out!\n\n- Install mongodb\n- Clone repo to `$GOPATH/src/github.com/octohedron/goddit`\n- Install dependencies\n\n```bash\n$ go get\n```\n\n- Build the binary\n\n```bash\n$ go build\n```\n\n- Edit the [.env](./.env) file in the root of the repository with your values\n\n```bash\n# from reddit.com/prefs/apps\nAPPID=YOUR_APP_ID\nAPPSECRET=YOUR_APP_SECRET\nGODDITADDR=YOUR_SERVER_ADDR # i.e. http://localhost:9000\nGODDITDOMAIN=YOUR_DOMAIN # i.e. localhost / goddit.pro\nGPORT=9000 # 9000 / 80\nGCOOKIE=YOUR_COOKIE # i.e. goddit\nMONGO_ADDR=YOUR_MONGO_ADDR # i.e. 127.0.0.1, 172.17.0.1 for docker, etc\nMONGO_USER=YOUR_MONGO_USER # i.e. username\nMONGO_PASS=YOUR_MONGO_PASS # i.e. hunter2\n```\n\n- Run it manually\n\n```bash\n$ nohup ./goddit \u0026\n```\n\n- Run it with Docker\n\n```bash\ndocker rm goddit \u0026\u0026 docker build -t goddit . \u0026\u0026 docker run --name goddit -p 9000:9000 -it goddit\n```\n\n## Features\n\n- Crawls popular subreddits (first 25) and adds them as chatrooms in a separate `goroutine` (for faster startup) when you start the program\n- Loads previous chatroom history (up to 150 messages) when switching rooms\n- Authorizes via reddit and pairs a `cookie` with a user in the server for Authorization\n- Only broadcasts messages to those present in the room, not to others in different rooms\n- Different color avatars, autogenerated from [placeskull.com](http://placeskull.com)\n- Enforces a single `WebSocket` for each client, closing the connection when switching rooms\n- Each client reads and writes to a different `goroutine` (2 goroutines/client)\n- Database writes are performed in a separate `goroutine`\n\n##### CONTRIBUTING: Yes\n\nLICENSE: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctohedron%2Fgoddit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctohedron%2Fgoddit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctohedron%2Fgoddit/lists"}