⚠️ Thream is not maintained anymore, and is no longer accessible on
While the project taught me a lot, it had too much ambitions for new features, with nearly no users, and no contributors.
You can still use the code as you wish and fork it to maintain it yourself, as the code is completely open source on GitHub.
This blog post is still available to explain the project, and how it was implemented.
After months of hard work, Thream v1.0.0 has been released! 🎉
Thream is your open-source platform to stay close with your friends and communities, talk, chat, collaborate, share and have fun.
Thream is a social network to stay close with your friends and communities to talk, chat, collaborate and share.
The project is largely inspired by Discord, a proprietary instant messaging service, but differentiates itself by its non-profit open source philosophy and will integrate special features.
The source code is available on GitHub.
The idea is that a user can create an account to authenticate with an email address, and a password, or directly use an account from another platform (currently supported: Google, GitHub, Discord). Once the user is authenticated, he/she can create and join "guilds", in other words communities, in order to discuss with other people in several channels to group discussions talking about the same subject.
Thream is a website that works on any recent browser.
The idea for the project has existed since May 13, 2020, symbolized by a publication on Twitter by the creator: Théo LUDWIG.
The main goal is to put into practice knowledge in web development and computer science in general on a concrete project that can easily evolve over time where you can add many features.
The development of the project begins under the name of SocialProject, on August 20, 2020.
When I started the project, I had little knowledge of database design, real-time management or the architecture of such a large IT project, so this will be accompanied by many technical problems, to which we will need to find appropriate solutions.
On October 19, 2020, SocialProject becomes Thream, an invented name, not yet used and more original than the previous one, and also changes colors so that the application is accessible in two distinct themes (light and dark).
With the help of Walidoux, a junior developer really good at making beautiful UI with CSS, we were able to collaborate on this side project together.
Since the project is mainly developed during free time (mainly on weekends), the project took longer to be developed than desired, but now we finally released the first version. 🥳
Thream is divided into two distinct projects:
The server part, called backend, which the user does not see, allows actions to be taken to save or recover data in the database, it is the technical and functional aspect of the project. This part uses a style of software architecture defining a set of constraints to be used to create web services that establish interoperability between computers on the Internet, called REST API.
The client part, called frontend, what the user sees on the screen, such as forms, buttons and all the graphic elements with which the user can interact from a browser.
This design allows the separation between the client and the server, as long as they both structure their communication according to the REST architectural guidelines, using the HTTP protocol, they will be able to communicate with each other, which makes it possible to work independently on the backend and on the frontend using different technologies and skills, really useful in teamwork.
To allow the development of this design, it is necessary to think about its architecture in order to solve the following problem: how to store and structure the folders and files of a source code in order to find which file to modify to correct a problem with a particular feature, or to add a feature?
There are two main architectures to solve this problem:
Both architectures track source code file history using version control systems such as git.
Thream, uses the Polyrepo architecture, to make it easier to set up and allows complete independence between client and server code.
Now that we have discussed, on the architecture of the source code, we will discuss the choice of technologies. The chosen technologies must meet the need, and allow the developer to be productive to quickly have a result. Often there are several possible technologies to meet the same need, so it is a question of choosing the technology that you prefer and that you know best.
boolean etc.) to each data/variable in the code, which has the advantage of identifying program errors even before execution and thus greatly improves developer productivity.
TypeScript allows you to code with the same programming language, the client part and the server part, with different needs.
The needs of the graphical interface (the client part):
In order to meet its needs, Thream is a PWA, this consists of making a website appear to the user as a native application, which makes it possible to combine the functionalities of browsers with those of the experience offered by native applications, such as the possibility of installing the application. The main advantage is to be able to code once and to provide the application on several platforms (iOS, Android, Windows, GNU/Linux etc.) without the need to develop specifically according to each platform.
By using the protocol, HTTP, it is the client who sends a request to the server, but to allow the transfer of data in real time, the HTTP protocol is no longer sufficient.
We use WebSockets so that it is the server that send a response to all connected clients without the client requesting to the server to get a response, the server sends responses according to events, for example when creating or deleting a message.
Thanks to Fastify, a fast and low overhead web framework, for Node.js and Socket.io, a bidirectional and low-latency communication for every platform, we can easily make REST API and real time communication.
The main interest of Thream is to be able to put into practice the computer knowledge acquired as an autodidact on a concrete project, in order to learn, and understand the problems and potential solutions to complex computer applications such as social networks.
Now that the first version of Thream has been released, there may not be any major evolution thereafter, the project will continue to be maintained to fix any bugs, and remain accessible, for as long as possible.
The other interest of the project is that it is completely open-source, and allows those who want to contribute to the development, and add new features.
Thream is non-profit and therefore has no financial goal, deadline or specific feature target, which makes the design of the project a hobby and a way to learn new concepts.
Feel free to give feebacks and suggestions to improve the project, and to report any bug you find.