WildYorkies

WildYorkies

I remember seeing on the Elixir subreddit a long time ago that a user was building a Discord alternative (Probably because Discord mines all data for profit and is closed source).

I doubt that project kept going (it’s quite ambitious after all).

But I wanted to open this thread to discuss ideas about how such a thing could be built.

Building a group chat application in Elixir should be fairly straightforward. However, the biggest hurdle would likely be the group audio.

I know Discord uses WebRTC (with their own enhancements), but I’ve also seen someone suggest using Mumble as the audio backend.

Thoughts?

Showing Posts 1 to 10

WildYorkies

WildYorkies OP

I know there is an Elixir GUI system in the works, but for now, the obvious choice would put Elixir only as the backend and something like React Native / Proton Native as the frontend.

brightball

brightball

Plus, there’s already Mongoose from Erlang Solutions. Would be interesting to just build on top of what’s already there.

idi527

idi527

I’d use janus for webrtc.

WildYorkies

WildYorkies OP

That’s a great find!

Mongoose for the chat. And something like Jitsi for the voice. That would be a much quicker bootstrap.

For the voice channels, you could instantiate an always-on jitsi room that people could join and leave as they wish.

WildYorkies

WildYorkies OP

Looks even more lightweight than something like Jitsi. Thanks!

Audio room example is what it would need https://janus.conf.meetecho.com/audiobridgetest.html

idi527

idi527

Here’s an example of how to interact with janus from elixir via unix sockets. The SDP packets were sent to the elixir server via websockets, which were then relayed to janus. Making basic chats is actually already easy in erlang/elixir, I’d probably wouldn’t use mongoose …

WildYorkies

WildYorkies OP

Looks like Evasyst uses Janus for their backend and is trying to be a discord alternative.

jchrist

jchrist

I think the best bet would be implementing a Matrix server. It’s not necessarily the smallest project (see the spec) but in terms of functionality I think it’s great.

axelson

axelson

Scenic Core Team

You might want to look into the Elixir Membrane Framework if you need to do any server-side audio processing: https://www.membraneframework.org/

WildYorkies

WildYorkies OP

Chat rooms are relatively simple (and yet matrix seems to make this extremely complex).

I think the biggest hurdle is rooms that are multi-media.

In practice, most discord “servers” have text and voice channels with the same name. So when you’re in this voice channel, you type in the text channel with the same name.

I think there’s room for improvement by simply making generic multi-media rooms that are persistent only in text.

So for example, it would be like having a Jitsi meeting that is always running and users can jump in and out of seamlessly.

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 92995 915
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
GES233
I’m posting this in response to Jose’s recent tweet (Cr. link) : People are sleeping on Elixir for a coding harness: Hot-code swappi...
New
_mfierro
Hello, I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
marciol
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New
durvia
Anyone running long-lived stateful processes on BEAM? We’re building an AI agent runtime and would love to compare notes. We’re a small ...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews