SAMA
A simple yet advanced open source chat server with end-to-end encryption, clustering, and multi-device support. Ideal for developers building secure communication apps.
SAMA is an open-source alternative to:

SAMA is a next-generation open source chat server designed for mobile and web applications. It provides a secure, scalable, and easy-to-use messaging solution with built-in end-to-end encryption and clustering capabilities.
Key Features
- Messaging: Rich media messages, status indicators, private/group chats, file attachments, and message history API
- User Management: Authorization, profile editing, user search, and block list functionality
- Multi-Device Support: Seamless connectivity across multiple devices with online/offline message delivery
- Last Activity Tracking: Server-side tracking of online/offline status with subscription API
- Push Notifications: APNS, FCM, and web push notifications for offline message delivery
- Clustering: Built-in support for large-scale deployments and high user loads
Tech / Self-Hosting
SAMA is open source and can be self-hosted. The server is built with modern technologies and supports clustering out of the box. Documentation and API references are available for developers looking to integrate or customize the solution. The project provides both backend (sama-server) and frontend (sama-client) components.