# LockGit/gochat

goim server write by golang !🚀

Repository: https://github.com/LockGit/gochat
Canonical: https://ross.abutalabs.com/products/gochat
Homepage: http://45.77.108.245:8080
Language: Go
License: MIT
License Family: permissive
Topics: im, goim, gochat, chat
Last push: 2026-08-02T05:53:55+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 35, longevity 100
- inputs: {"age_days": 2498, "days_push": 31, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2929, forks 475 (observed 2026-08-28T04:07:30.558979+00:00)

## What it is
gochat is a lightweight instant messaging (IM) server written in pure Go, supporting private messages and room broadcast messages with WebSocket and TCP client connections that can interoperate. It uses a layered architecture (api, logic, task, connect) communicating via RPC, with etcd-based service discovery and Redis for message storage and delivery, enabling horizontal scaling.

## Use cases
- build a self-hosted chat server
- implement instant messaging with room broadcast
- run an IM system supporting websocket and tcp clients
- learn how a layered go im architecture works
- deploy a scalable chat backend with docker
- send private messages between users in a chat app
- interoperate websocket and tcp connections in one chat room

## When to choose
- you want a lightweight, pure-Go IM server you can self-host and scale horizontally
- you need both websocket (web) and tcp (mobile) clients in the same chat rooms
- you want a clear, readable codebase to study IM system design in Go
- you prefer docker-based quick deployment of all dependencies

## When to avoid
- you need a production-grade IM platform with rich features like push notifications, media, or end-to-end encryption out of the box
- you want a managed chat service rather than running your own infrastructure
- you cannot operate etcd and redis dependencies
- you need a polished, production-ready frontend UI as part of the server project

## Facets
- artifact type: application
- maturity: active
- function: websocket, rpc, message-queue, http-server, chat-interface, service-discovery, caching
- domain: messaging-platforms, web-development, backend, developer-tools
- platform: go, windows, self-hosted
- tags: im, instant-messaging, chat-server, tcp, websocket, etcd, redis, golang, room-broadcast, horizontal-scaling, real-time, docker, linux, macos, web-server

## Member repositories
- LockGit/gochat (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:30.558979+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:33:27.156250+00:00, confidence not recorded.
  - readme: https://github.com/LockGit/gochat (fetched 2026-08-28T04:07:30.558979+00:00, sha e64be68e5dec)
  - homepage: http://45.77.108.245:8080 (fetched 2026-08-29T09:48:39.583257+00:00, sha f2c39114aac2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
