
OpenIM Server
Developer-oriented instant messaging backend server
OpenIM Server is the backend for embedding chat, groups, and messaging in your apps—not a standalone consumer chat client.
Go WebSocket IM server with horizontal scaling
GoWebSocket is a distributed instant-messaging backend using WebSockets, HTTP APIs, gRPC, Redis, and nginx load balancing.
GoWebSocket is a real-time chat system built around long-lived WebSocket connections. It is designed for high connection counts on a single machine and for spreading load across multiple instances behind nginx.
Clients connect over WebSocket while the server tracks rooms, online users, heartbeats, and message routing. HTTP endpoints support listing users in a room, checking whether someone is online, and sending messages to one user or everyone. Internal nodes communicate with gRPC, and Redis helps instances discover each other for distributed deployment.
The bundled demo places users into a shared chat room with group messaging, random usernames, and a simple web UI. Message types include text and media flows where files are uploaded elsewhere and URLs are relayed through the socket layer. Operations such as login and heartbeat use a JSON command format suited to web and mobile clients.
Documentation covers nginx stream forwarding for WebSocket paths, kernel tuning for very large numbers of concurrent sockets, and a v2 layout that separates IM HTTP traffic from the accelerator WebSocket service while still allowing cross-node delivery.

Developer-oriented instant messaging backend server
OpenIM Server is the backend for embedding chat, groups, and messaging in your apps—not a standalone consumer chat client.

Federated instant messaging server with multi-platform clients
Tinode is a Go instant messaging stack with Android, iOS, and web clients plus broad gRPC language bindings. It supports chats, channels, calls, and federation-oriented design rather than XMPP.
Discord
Cross-platform library for building Telegram clients
TDLib (Telegram Database Library) is a cross-platform client library for Telegram. It handles networking, encryption, and local storage so custom apps can be built from many programming languages.

Matrix homeserver for secure real-time messaging
Synapse implements a Matrix homeserver for federated chat and VoIP. Element maintains it as part of the Matrix stack, with standalone install documentation.

Open-source instant messaging framework for Android
Chat SDK is a featured instant messaging framework for Android that integrates with Firebase or XMPP backends. It supports public rooms, several login styles, and push notifications.

Self-hosted private chat with voice and screen sharing
Haven is a Discord-like chat server you run on your own hardware. Friends join through a browser or apps for text, voice, screen sharing, and encrypted direct messages without a commercial host.
Discord