Open Source / Archived
Guildra
Unreleased Open Source Discord Alternative
Mar 2025 — Feb 2026
Overview
Guildra was an ambitious attempt to build a modern alternative to Discord, with a real-time backend written in Elixir and Phoenix and a cross-platform desktop application built using Tauri and React.
Unlike most of my projects, Guildra was never really about finding a gap in the market or creating something commercially competitive. Realistically, competing with a platform the size of Discord as a solo developer was never going to happen.
Instead, I treated it as a technical challenge.
I wanted to understand what goes into building a modern instant messaging platform: real-time communication, persistent connections, presence, channels, permissions, message delivery, desktop clients, notifications, and the infrastructure required to make all of those systems work together.
The initial goal was simply to build something my friends and I could potentially use. It quickly became something much larger.
Guildra ultimately never reached a releasable state, but it became one of the most valuable projects I have worked on. It introduced me to Elixir and the Phoenix ecosystem, pushed me into distributed system design, and - perhaps most importantly - taught me how critical scope and prioritisation are when building software.
The problem
At first glance, an instant messaging application seems relatively straightforward.
A user sends a message, the server receives it, and everyone else connected to the channel receives the message.
The reality is considerably more complicated.
Even a relatively basic Discord-style application quickly introduces users, authentication, servers, channels, roles, permissions, friendships, direct messages, presence, typing indicators, message history, notifications, file uploads, moderation, search, reactions, voice communication, desktop integration, and dozens of other interconnected features.
Each feature also creates another collection of edge cases.
What happens when a user disconnects halfway through an operation? How should messages be distributed between thousands of active connections? How is presence synchronised? How should permissions be evaluated efficiently? What happens when multiple backend nodes are responsible for different connected users?
The project gradually transformed from an instant messaging application into a distributed systems problem.
There was also a second problem: scope.
I produced Figma prototypes, feature specifications, Kanban boards, GitHub issues, and increasingly detailed plans covering almost everything I wanted Guildra to become.
Planning gave the project structure, but it also made it extremely easy to keep expanding the definition of "finished".
As a solo developer working on Guildra alongside numerous other projects, the backlog eventually became larger than the amount of time I could realistically dedicate to it.
Guildra taught me that good engineering is not simply about whether something can be built. It is also about deciding what actually needs to be built.
The solution
Guildra was approached as a real-time system from the beginning rather than a conventional request-response web application.
I chose Elixir and the Phoenix Framework for the backend after researching how large-scale messaging systems handle enormous numbers of concurrent connections.
The Erlang VM's concurrency model made Elixir particularly interesting for this problem. Lightweight processes, message passing, fault isolation, and supervision trees align naturally with applications where thousands of users may maintain persistent connections and generate events independently.
Phoenix added the application layer around that model, particularly through its real-time capabilities and WebSocket-oriented architecture.
The desktop client was built separately using React and Tauri.
React provided the component architecture required for a UI consisting of servers, channel lists, conversations, user lists, settings, and other interactive elements, while Tauri provided a lightweight native desktop shell without requiring the application to ship an entire browser runtime alongside it.
This separation created a clear boundary between Guildra's real-time backend and its desktop experience.
Alongside development, I treated the project much more like a product than a prototype. Interfaces were designed in Figma, features were broken into tickets, work was organised through Kanban, and development progress was connected back to GitHub.
Ultimately, however, the most important solution was knowing when to stop.
The project had expanded far beyond its original goal. Rather than continuing indefinitely toward an increasingly distant definition of "complete", I archived Guildra and carried what I had learned into future projects.
Architecture & technical approach
Guildra was designed around a client-server architecture optimised for persistent, real-time communication.
The backend was built with Elixir and Phoenix, using the concurrency model provided by the BEAM virtual machine as the foundation for handling large numbers of independent connections and events.
Rather than modelling the application entirely around traditional HTTP requests, persistent client connections could be used to distribute events such as new messages, presence updates, typing indicators, and changes to channels or users.
Phoenix's real-time tooling provided the communication layer, while Elixir's lightweight processes made it possible to think about connected users and concurrent operations independently rather than relying heavily on shared state.
The React frontend was responsible for presenting and managing the client-side application state. Views such as server navigation, channels, messages, member lists, and application settings could be composed from reusable UI components while responding immediately to events received from the backend.
The React application was packaged using Tauri, providing a native desktop application while keeping the desktop layer significantly lighter than a traditional Chromium-based application shell.
The architecture therefore consisted of several distinct responsibilities:
Elixir / Phoenix handling real-time communication and backend application logic
Phoenix Channels / WebSockets providing persistent communication between clients and servers
React managing the interactive desktop interface and client state
Tauri providing the native desktop application shell
Persistent storage supporting users, guilds, channels, messages, permissions, and other application state
Designing this architecture also required thinking beyond a single running server.
Researching Guildra led me into topics including distributed message delivery, horizontal scaling, connection management, event propagation, fault tolerance, and the techniques used by platforms such as Discord to support enormous numbers of simultaneously connected users.
Guildra never reached the scale where those problems needed to be solved in production, but understanding why those architectural decisions become necessary was one of the project's most valuable outcomes.
Key features
- Real-time instant messaging architecture
- Discord-inspired guild and channel model
- Persistent client-server communication
- Desktop application built with Tauri
- React-based interactive user interface
- User and authentication system design
- Channel-based conversations
- Message history and persistence
- Presence and real-time user state concepts
- Role and permission system planning
- Real-time application events
- Component-driven desktop UI
- Cross-platform desktop application approach
Technical highlights
- Elixir used for concurrent backend application development
- Phoenix Framework used as the foundation of the messaging backend
- BEAM VM concurrency model explored for high-volume real-time systems
- Lightweight processes and message passing for concurrent workloads
- Supervision and fault-tolerant application design concepts
- Phoenix Channels / WebSockets for persistent real-time communication
- React for component-driven client development
- Tauri for a lightweight native desktop application
- Clear separation between backend communication and desktop presentation layers
- Exploration of distributed messaging architecture
- Research into horizontal scaling and multi-node real-time systems
- Designing around potentially large numbers of simultaneous connections
- Event-driven communication rather than relying entirely on request-response APIs
- System design influenced by research into large-scale platforms such as Discord
- First substantial experience building with Elixir and the Phoenix ecosystem
- Valuable experience identifying and managing project scope
- Demonstrated that successful engineering sometimes means recognising when further development no longer justifies the required investment