# SAMA

SAMA is a simple but advanced open-source chat server that provides a self-hosted alternative to the Extensible Messaging and Presence Protocol (XMPP).

Canonical page: https://ourlocalhost.com/app/8735/sama

## Description

SAMA is a simple but advanced open-source chat server that provides a self-hosted alternative to the Extensible Messaging and Presence Protocol (XMPP). It offers end-to-end encrypted messaging with clustering out of the box, so developers and self-hosters can run the backend for their own mobile or web chat apps without relying on a proprietary service.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

48/100 (Fair), based on 4 of 5 factors.
- Maintained: 75 (last commit 72 days ago)
- Popular: 44 (161 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 20 (1 serious finding, 12 minor, CI, tests)

## Security check

1 serious finding: Uses fast-xml-parser 4.2.5, which has a known critical vulnerability.
Automated checks on commit 1cb382a, 21 Nov 2026. Not an audit.

## Links

- Official website: https://samacloud.io
- GitHub: https://github.com/SAMA-Communications/sama-server
- Documentation: https://docs.samacloud.io

## Common questions

### What does the SAMA Docker Compose stack run?

The Docker server setup page provides a Compose stack that runs the dependency services together with the three main applications: sama-server, sama-client, and sama-push-daemon.

### Which clients can I use to connect to a SAMA server?

SAMA ships a web frontend (sama-client) and a Flutter app (sama-client-flutter) from the same project, and the server is intended as the backend for your own mobile or web chat apps.

### How are mobile push notifications handled?

Push is handled by a dedicated sama-push-daemon service that runs alongside sama-server and sama-client in the deployment stack.

### What data does each node store in Redis when clustering?

In a cluster, each node records a key in Redis in the form sama-node-data:{node-endpoint}, where the endpoint is that node's websocket URL.

### Can I try SAMA without deploying my own server first?

Yes, the entire SAMA stack can be tested on a public cloud demo hosted by the project, so you can evaluate it before running it yourself.

## Alternatives

- Fluxer: Fluxer is a free and open source instant messaging and voice-over-IP (VoIP) chat application.
- Mattermost: Mattermost is an open-source, self-hosted team messaging and collaboration platform.

---
Source: Our Local Host (https://ourlocalhost.com/app/8735/sama), the self-hosted and open-source app directory.
