{"id":31618038,"url":"https://github.com/harshshah6/go-websocket","last_synced_at":"2026-05-04T11:36:09.229Z","repository":{"id":317704996,"uuid":"1068475311","full_name":"Harshshah6/go-websocket","owner":"Harshshah6","description":"A simple websocket server written in go for blazing fast communication in the connected channels.","archived":false,"fork":false,"pushed_at":"2025-10-02T13:43:51.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-02T15:27:17.194Z","etag":null,"topics":["chat-application","docker","docker-compose","dockerfile","go","go-websocket","go-websocket-client","go-websocket-server","golang","websocket","websocket-client","websocket-server"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Harshshah6.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-02T12:49:07.000Z","updated_at":"2025-10-02T13:50:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"69b49537-5b4a-4f02-badc-35aeb5d37156","html_url":"https://github.com/Harshshah6/go-websocket","commit_stats":null,"previous_names":["harshshah6/go-websocket"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Harshshah6/go-websocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harshshah6%2Fgo-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harshshah6%2Fgo-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harshshah6%2Fgo-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harshshah6%2Fgo-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Harshshah6","download_url":"https://codeload.github.com/Harshshah6/go-websocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harshshah6%2Fgo-websocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278621844,"owners_count":26017253,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-application","docker","docker-compose","dockerfile","go","go-websocket","go-websocket-client","go-websocket-server","golang","websocket","websocket-client","websocket-server"],"created_at":"2025-10-06T13:45:08.451Z","updated_at":"2025-10-06T13:45:10.645Z","avatar_url":"https://github.com/Harshshah6.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Chat (Structured Go Project)\n\nA real-time **chat application** built with **Go** and [Gorilla WebSocket](https://github.com/gorilla/websocket).\nThis version is structured for **scalability** and **maintainability** using a layered architecture.\n\n---\n\n## Features\n\n* Real-time chat with WebSockets\n* User join/leave notifications\n* Markdown support (`**bold**`, `*italic*`, `` `code` ``)\n* Multiline messages (Shift+Enter for new line)\n* Clean project structure (`internal/`, `pkg/`, `cmd/`)\n* Custom logger\n\n---\n\n## Project Structure\n\n```\ngo-chat/\n├── cmd/\n│   └── server/\n│       └── main.go       # Entry point\n│\n├── internal/\n│   ├── app/\n│   │   └── app.go        # Wire dependencies + run server\n│   ├── config/           # (future) env/config loader\n│   ├── handlers/\n│   │   └── chat.go       # WebSocket handler\n│   ├── models/\n│   │   └── message.go    # Data models\n│   ├── services/\n│   │   └── chat_service.go\n│   └── store/\n│       └── memory_store.go\n│\n├── pkg/\n│   └── logger/\n│       └── logger.go     # Custom logger wrapper\n│\n├── static/\n│   └── index.html        # Frontend chat UI\n│\n├── Dockerfile\n├── docker-compose.yml\n├── go.mod\n└── README.md\n```\n\n---\n\n## Requirements\n\n* Go 1.18+\n* Gorilla WebSocket package\n\nInstall dependencies:\n\n```bash\ngo mod tidy\n```\n\n---\n\n## Running Locally\n\nStart the app:\n\n```bash\ngo run ./cmd/server\n```\n\nVisit in your browser:\n\n```\nhttp://localhost:8080\n```\n\n---\n\n## Running with Docker\n\n1. Build the image:\n\n```bash\ndocker build -t go-chat .\n```\n\n2. Run the container:\n\n```bash\ndocker run -p 8080:8080 go-chat\n```\n\nOpen in browser:\n\n```\nhttp://localhost:8080\n```\n\n---\n\n## Running with Docker Compose\n\n```bash\ndocker compose up --build\n```\n\nTo scale:\n\n```bash\ndocker compose up --scale go-chat=3\n```\n\n*(requires sticky sessions for WebSockets when load balancing)*\n\n---\n\n## License\n\nMIT License.\nFree to use, modify, and distribute.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshshah6%2Fgo-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshshah6%2Fgo-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshshah6%2Fgo-websocket/lists"}