Reverse-engineering Discord's core experience with AI
Reverse-engineering Discord's core experience with AI. A local-first, full-stack application featuring servers, channels, real-time messaging, permissions, and SQLite.
Discord is far more than a messaging interface. Behind its familiar layout is an interconnected system of servers, channels, user permissions, real-time communication, and persistent data.
We wanted to explore how much of that experience could be reconstructed using AI.
We began by investigating Discord's browser experience with REA (Reverse Engineer Anything), an open-source reverse-engineering toolkit that allows AI coding agents to inspect applications, examine JavaScript, and analyze observable browser behavior without access to the original source code.
Using those observations as a reference, we challenged AI to build an independent, working implementation rather than simply reproduce Discord's appearance.
What we built
Open Lite Discord is a local-first, full-stack application featuring:
- Servers and channels: Create and manage workspaces, organize conversations, and control channel access.
- Real-time messaging: Exchange messages between separate user accounts with Socket.IO.
- Authentication and permissions: Local user accounts, sessions, roles, invitations, and access restrictions.
- Persistent conversations: Store messages and application data locally using SQLite.
- Additional functionality: Message editing, attachments, search, typing indicators, and online presence.
- Responsive interface: An original React-based interface designed for desktop and smaller screens.
The application uses React, TypeScript, Fastify, Socket.IO, and SQLite. It operates on local infrastructure without requiring hosted databases, external AI APIs, or cloud authentication services at runtime.
The experiment
The central challenge wasn't generating a familiar-looking interface. It was rebuilding the underlying functionality and seeing whether two independent accounts could use the application together.
The repository includes the implementation, local setup instructions, architecture, and automated verification tests so developers can inspect the engineering decisions and reproduce the experiment themselves.
This is an independent experimental implementation, not Discord's original source code or a complete replacement for Discord.
Open-source repositories
Our implementation: Open Lite Discord https://github.com/THE-SHRIKS/Open-Lite-Discord
Reverse-engineering toolkit: REA https://github.com/morluto/rea
REA is developed independently by its respective maintainers. We used it as a research tool; the application itself is our separate open-source engineering experiment.