
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.
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.
TDLib is the Telegram Database Library, a cross-platform library intended for third-party developers who want custom applications on the Telegram platform. It presents a fully functional Telegram client as a library rather than a standalone end-user app.
The library abstracts network details, encryption, and on-device data storage. It is fully asynchronous, with ordered delivery of updates, stability on unreliable connections, and local data encrypted using a user-supplied key. Interfaces include C++, JSON, Java through JNI, and .NET through C++/CLI or C++/CX, with JSON recommended for languages that can call C functions.
Developers integrate TDLib into CMake, Java, .NET, or other stacks via static or JSON bindings. API methods and classes are documented through a machine-readable scheme and generated HTML documentation. JSON interface versions with the same major number are binary compatible across minor releases.
TDLib is the foundation for custom mobile, desktop, and embedded Telegram clients, leaving UI and product logic to the application that embeds the library.

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
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.
Go WebSocket IM server with horizontal scaling
GoWebSocket is a distributed instant-messaging backend using WebSockets, HTTP APIs, gRPC, Redis, and nginx load balancing.

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