Today's Deep-Dive: SAMA
Ep. 360

Today's Deep-Dive: SAMA

Episode description

Modern messaging apps look sleek on the surface—but many still rely on protocols designed decades ago. In this episode, we explore SAMA (Simple But Advanced Messaging Alternative), an open-source chat server project aiming to modernize the foundation of real-time communication.

SAMA is built entirely in JavaScript and powered by the ultra-efficient uWebSockets.js engine, enabling high concurrency with minimal memory usage. The project positions itself as a modern alternative to XMPP, the long-standing open messaging protocol whose XML-based structure can introduce significant overhead, higher latency, and increased battery usage on mobile devices.

Instead of relying on verbose XML and complex extension systems, SAMA focuses on a lean, performance-first protocol designed for modern messaging workloads. Core features - such as push notifications, conversations, and activity tracking - are built directly into dedicated APIs, simplifying development and integration for new messaging applications.

The ecosystem already includes web and Flutter clients, making the platform accessible across mobile and desktop environments, along with a public demo that allows anyone to test the full stack without running their own server. With an open-source GPLv3 license, an active release cycle, and a growing community on GitHub and Discord, the project is positioning itself as a potential next-generation messaging backbone.

If the future of messaging demands faster, lighter, and more efficient protocols, this deep dive into SAMA explores whether a modern alternative can challenge decades-old infrastructure- and what it might take for a new open standard to emerge.

Gain digital sovereignty now and save costs

Let’s have a look at your digital challenges together. What tools are you currently using? Are your processes optimal? How is the state of backups and security updates?

Digital Souvereignty is easily achived with Open Source software (which usually cost way less, too). Our division Safeserver offers hosting, operation and maintenance for countless Free and Open Source tools.

Try it now!

Download transcript (.srt)
0:00

Welcome back to the Deep Dive, where we take complex documentation project notes

0:04

and really

0:06

try to distill them into pure actionable knowledge.

0:09

For the learner.

0:10

Right.

0:11

Exactly.

0:12

And today, we are peering behind the curtain of modern digital communication.

0:16

We're exploring a real challenger to the status quo, a project called SAMA.

0:21

SAMA.

0:22

Yeah.

0:23

It stands for the Simple But Advanced Messaging Alternative Chat Server.

0:26

And if you've been tracking modern tech, you know the messaging backbone.

0:29

We all rely on is, well, it's due for an upgrade.

0:32

It definitely is.

0:33

So our mission today is to give you a fast, thorough, and most importantly, a

0:37

simple explanation

0:38

of what SAMA is, why it exists, and where it aims to fit in.

0:42

We want you to walk away understanding the strategic difference it's trying to make.

0:46

Right.

0:47

But before we jump in, a huge thank you to our supporter, Safe Server.

0:51

Safe Server handles the hosting for exactly this kind of innovative software.

0:55

And they're all about supporting your digital transformation.

0:58

Which is so important for these kinds of projects.

1:01

Absolutely.

1:02

So if you need reliable hosting for your next big idea, you can find more info at

1:06

www.safeserver.de.

1:09

And just to set the stage, our deep dive today, it's all based on the primary

1:13

source material.

1:14

Right.

1:15

We're going straight to the source.

1:16

The project's documentation, its GitHub repository, and the insights from the

1:21

creators themselves,

1:23

SAMA Communications.

1:24

And that context is so crucial.

1:25

I mean, you look at the apps we use every day.

1:27

They're beautiful.

1:28

They're modern.

1:29

But the underlying protocols, they can sometimes be decades behind.

1:33

So when something like SAMA comes along, it really signals this collective feeling

1:38

that

1:38

the old ways are straining under modern demands.

1:40

That's a great way to put it.

1:42

So our goal here is to figure out that contradiction right in the name.

1:44

We need to understand the simple part versus the advanced part.

1:48

Okay.

1:49

Let's unpack this.

1:50

Maybe let's start with the advanced part first.

1:51

What exactly is SAMA at its core, architecturally speaking?

1:55

So SAMA is a full open source chat server system.

1:59

It manages user accounts.

2:01

It handles message delivery, facilitates all the real time connections.

2:04

It's not just a library.

2:05

It's the whole engine.

2:06

The whole engine room.

2:07

Exactly.

2:08

And very importantly, it's distributed under the GPL 3.0 license.

2:13

Okay.

2:14

So for our listener, what does GPL 3.0 mean in simple terms?

2:18

It's really the ultimate commitment to openness.

2:20

It means the code base will always be open, transparent, and free for anyone to use

2:25

and

2:26

modify as long as they keep those same freedoms going.

2:28

Which is foundational if you want to become a new standard, right?

2:31

Absolutely.

2:32

Now let's talk about that engine.

2:33

The sources highlight a very specific technology choice that really backs up that

2:39

advanced

2:40

claim.

2:41

The server is powered by uwebsockets.js.

2:46

That's a choice that immediately tells a technical story, doesn't it?

2:48

It really does.

2:49

It's a story about optimization and pure speed.

2:52

Most chat servers built on Node.js, which is where the 100% JavaScript stack comes

2:56

in,

2:57

they'd use something like Express with socket.io.

2:59

Which are fine.

3:00

They're reliable.

3:01

They're reliable, but they carry a lot of memory overhead.

3:04

So why uwebsockets.js instead?

3:07

What's the trade-off?

3:08

It's designed from the ground up for maximum concurrency and a minimal memory

3:11

footprint,

3:12

while Express or socket.io might use hundreds of megs of memory for a few thousand

3:18

connections.

3:19

Uwebsockets.js can handle, say, 10,000 simultaneous connections on just a fraction

3:25

of that memory.

3:26

It's written to be lean and fast right at the operating system level.

3:29

So it's perfect for something like real-time messaging, where speed is everything.

3:32

Just ideal.

3:33

So the advanced part isn't necessarily a super complex feature set.

3:37

It's more of an absolute focus on performance and efficiency from the ground up.

3:42

Precisely.

3:43

They've chosen a lean, purpose-built engine, and the fact that it's 100% JavaScript

3:48

also

3:48

speaks to the simple part.

3:50

Oh, so?

3:51

Well, JavaScript is the language of the web.

3:53

It makes the codebase accessible to this huge global pool of developers.

3:57

It just facilitates easier contributions, easier audits, much broader adoption than

4:02

if it were written in a more niche language.

4:04

That makes sense.

4:05

Yeah.

4:06

Okay.

4:07

Let's look at traction, because a great engine is useless if no one's driving it.

4:10

And the sources give us some concrete numbers.

4:12

Yeah.

4:13

And what's fascinating is that the foundation is sound, and a community is clearly

4:17

forming

4:18

around it.

4:19

It's maintained by SAMA Communications on GitHub, and it already has 141 stars and

4:24

11

4:25

forks.

4:26

Which, for a new protocol alternative, that's not nothing.

4:29

That shows real early engagement.

4:31

It shows commitment.

4:32

This isn't just vaporware.

4:34

And the development schedule seems to back that up.

4:36

The latest release we saw was .35.0 from October 21, 2025.

4:42

That was their 19th total release.

4:44

19 releases.

4:45

In a relatively short time, that shows they are actively iterating.

4:49

They're building stability.

4:51

That continuous release schedule is the proof, right?

4:53

If you want people to migrate to your protocol, you have to show you're serious

4:57

about maintaining

4:57

it.

4:58

You have to.

4:59

And they are.

5:00

OK.

5:01

So they have the engine the community is watching.

5:02

But a fast engine doesn't matter if you're building a car nobody asked for.

5:04

And this is where it gets really interesting for me.

5:07

What pain point is SAMMA trying to solve?

5:10

The source material makes a very direct comparison, almost a challenge, to a

5:13

specific, long-established

5:15

protocol.

5:16

Yes.

5:17

The primary motivation here is to provide an alternative to the XMPP messaging

5:22

protocol.

5:22

XMPP.

5:23

The creators themselves note that XMPP is, and I'm quoting here, the only

5:28

widespread

5:28

standard these days.

5:30

So they're positioning SAMMA as the modern competitor.

5:33

XMPP is huge.

5:34

A lot of our listeners probably know it by its old name, Jabber.

5:38

It's been the backbone for open instant messaging for decades.

5:41

It's open.

5:42

It's flexible.

5:43

But what's the issue with it in 2025?

5:44

If you connect it to the bigger picture, the issue is really its history, its

5:49

structure.

5:50

XMPP is fundamentally based on XML.

5:52

Extensible Markup Language.

5:53

Exactly.

5:54

And XML is verbose.

5:55

It uses lots of tags, lots of structure to define data, and all that verbosity just

6:00

translates

6:00

into significant data overhead.

6:02

Okay.

6:03

Data overhead.

6:04

So what does that actually feel like for a user or for a server admin?

6:07

It translates directly to inefficiency.

6:09

I mean, think of it this way.

6:10

XMPP is like sending a formal letter every single time you send a chat message.

6:14

Okay.

6:15

The letter has the address, the header, the body, the signature, even if the body

6:19

is just

6:20

hello.

6:21

So all that extra data requires more bandwidth.

6:23

More bandwidth, higher latency, and most critically for mobile users, it just

6:29

drains battery life

6:29

faster because the device has to constantly process and parse that complex XML.

6:34

That is a fantastic analogy.

6:36

So where XMPP is heavy and verbose, Sama, using modern web sockets, is, well, the

6:42

implication

6:43

is that it's lean, probably using something closer to JSON.

6:46

Exactly, or maybe an even lighter binary format.

6:49

Sama's whole existence is driven by this need for a new protocol that's optimized

6:53

for speed

6:53

and reduced overhead, something modern enough for the millions of rapid lightweight

6:57

messages

6:57

that define chat today.

6:59

So their statement that Sama's protocol is different from others is really a

7:02

declaration

7:03

that they're abandoning XML for something much more efficient.

7:06

It is.

7:07

The motivation is protocol innovation, driven by performance.

7:11

It's not just a new app, it's a whole new foundation designed to make messaging

7:14

lighter

7:15

and faster.

7:16

They're trying to solve the problem of legacy bloat.

7:18

That's the key takeaway.

7:20

XMPP's strength, its flexibility, became its weakness in the mobile first era.

7:25

Sama is engineering a system for that exact environment.

7:29

So we know why they built it, we know the tech stack.

7:31

Now, how can a learner actually explore this?

7:34

If someone wants to see this new protocol in action, what does the Sama ecosystem

7:39

offer

7:39

them?

7:40

Well, this is critical because the developers have built out a whole stack to

7:44

legitimize

7:44

the protocol.

7:45

They haven't just released a server, they've released client applications so you

7:48

can use

7:49

it immediately.

7:50

Tell us about those clients.

7:51

There are two main clients linked in the docs.

7:53

First, a standard front-end web app available on GitHub for your browser.

7:58

And second, and this is a really smart strategic move, they have a Flutter app

8:02

client also

8:03

on GitHub.

8:04

Okay.

8:05

Why is Flutter a smart move here?

8:06

Well, Flutter is Google's UI toolkit, and it lets you build high-quality, natively

8:11

compiled

8:11

apps for mobile, web, and desktop from a single code base.

8:15

Right.

8:16

So you write it once, it runs everywhere.

8:17

Exactly.

8:18

By providing a Flutter client, Sama is immediately usable across Android and iOS.

8:24

It just doubles down on that commitment to modern standards and wide accessibility.

8:29

That dramatically lowers the barrier to entry.

8:31

And you don't even need to set up the server yourself to get started, do you?

8:34

Correct.

8:35

If someone just wants to test the full stack, they offer a public cloud demo.

8:39

You can test the entire Sama environment right now at https.app.samacloud.io.

8:45

So that's the easiest entry point for any beginner.

8:48

By far.

8:49

Now, a new protocol like this lives or dies by its documentation.

8:53

If developers can't easily integrate it, it just won't gain traction no matter how

8:56

fast

8:57

it is.

8:58

How robust is Sama's documentation?

9:00

It appears to be very thorough, which really supports that simple part of their

9:03

mission.

9:04

The main API reference is at https.samacloud.io, but what really stands out to me

9:09

is how they've

9:10

structured the functionality.

9:11

Go a little deeper on that structure.

9:13

Well, when you look at XMPP, key features like push notifications or end-to-end

9:17

encryption,

9:18

they often require these complex add-on specifications.

9:21

They're called XEPs.

9:22

XMPP extension protocols.

9:25

Right?

9:26

And it adds a ton of complexity for developers.

9:28

Sama, on the other hand, includes these modern necessities as built-in dedicated

9:33

APIs.

9:34

So you see APIs for things like users, conversations, messages, activities.

9:39

And critically, a robust push notifications API and an address book API.

9:44

So the simple part of the name, it's about the developer experience.

9:47

They're taking these core, complex functions and providing clean, modern endpoints

9:52

for

9:52

them instead of making devs cobble together older extensions.

9:56

That's it, exactly.

9:57

They're streamlining the implementation of features that are absolutely essential

10:00

for

10:01

any modern messaging app.

10:03

And beyond the API docs, they have articles on Medium, like Introducing Sama, that

10:07

give

10:08

you the whole philosophy behind it.

10:10

We always emphasize that knowledge is best when contributed and open source

10:13

projects

10:14

rely on that community input to evolve.

10:17

How accessible are the creators for feedback?

10:20

They're very explicit about it.

10:21

They welcome any thoughts, feedback, and they ask users to create a GitHub issue

10:26

for technical

10:26

support or just general ideas.

10:29

That's standard, good open source practice.

10:31

But sometimes you need a less formal channel, right, to just ask a quick question?

10:35

They have that too.

10:36

For general discussion and immediate help, they have their medium presence for the

10:40

big

10:40

ideas and, most importantly, a dedicated Discord server.

10:44

You can spot it by the little chat bubble emoji.

10:46

So they have the formal and the informal channels covered.

10:49

A mix, yeah.

10:51

Separate GitHub issues for the server, the web client, and the Flutter client, and

10:55

then

10:56

the Discord for community building.

10:58

It's a great setup to attract both core contributors and curious beginners.

11:02

This does bring us to a point of friction, though.

11:05

Why should a developer invest time in a project with 141 stars when XMPP has

11:10

decades of proven

11:11

infrastructure?

11:13

And that's the challenge for every disrupter, isn't it?

11:15

The answer has to be in the technical promise.

11:18

Legacy infrastructure requires constant effort to maintain, precisely because of

11:22

that XML

11:22

overhead and XEP complexity.

11:24

It's a bet on the future.

11:25

It is.

11:26

And while Sama is young, its use of uwebsockets.js and a modern protocol offers a

11:31

clear path

11:32

toward greater efficiency and lower operating costs in the long run.

11:36

It's a bet on future performance outweighing legacy familiarity.

11:39

The classic startup dilemma, trade established reliability for bleeding edge

11:44

efficiency.

11:45

And I think the commitment they're showing with 19 releases and all this

11:49

documentation,

11:50

it suggests they're building Sama to have a viable long-term protocol, not just a

11:54

quick

11:54

proof of concept.

11:55

Okay.

11:56

Let's bring it all together.

11:57

Let's do it.

11:58

So to synthesize this for you, Sama is the simple but advanced messaging

12:02

alternative.

12:02

It's a modern, high-performance, open-source chat server.

12:06

Built entirely in JavaScript.

12:07

Entirely in JavaScript, using that rapid, low-memory uWebSockets.js engine.

12:12

Its primary goal is to provide a streamlined, efficient alternative to the verbose

12:17

XML-based

12:18

XMPP protocol.

12:20

And they've lowered the barrier to entry with a working public demo, clients for

12:23

Web and

12:24

Flutter and detailed APIs that simplify things like push notifications.

12:28

That's the whole picture.

12:29

It's a perfect encapsulation.

12:31

And here is a final provocative thought for you, the listener, to mull over.

12:37

XMPP succeeded because it was open and extensible, but in an era where every

12:41

millisecond and

12:42

every byte of data matters, can an open standard truly thrive today if it doesn't

12:48

prioritize

12:48

maximum efficiency first?

12:51

Or is the complexity of legacy systems just too ingrained to displace?

12:55

That is the question.

12:56

Check out the demo at app.samacloud.io and maybe you'll find the answer for

13:01

yourself.

13:02

Thank you so much for joining us for this deep dive into Sama.

13:04

We want to reiterate our appreciation for SafeServer's support in digital

13:08

transformation and for

13:09

hosting this type of cutting edge software.

13:11

You can learn more about their services at www.safeserver.de.

13:15

Until next time, keep learning and keep digging deeper.

13:15

Until next time, keep learning and keep digging deeper.