PROJECT SHOWCASE
Tetra started as a simple Discord bot called 7TVDiscord in September 2022, designed to import emotes from the 7TV platform. After making it public, it quickly gained popularity, reaching over 150 servers in just the first week.
Discord's emote system has serious limitations, especially with file limits and inefficient GIF formats. Tetra simplifies this by automating the entire process - from downloading and optimizing to uploading emotes to servers. Users simply provide a link or emote name, and Tetra handles the rest.
Example of the bot in action
To address Discord's interface limitations, I developed a web application that greatly improved Tetra's capabilities. The web app introduced features like bulk uploads, manual adjustments and better integration with platforms like 7TV, BTTV, and FFZ.
All emote modifications happen client-side using WASM (WebAssembly) with the gifsicle binary. I created a wrapper library for this purpose: xGify
After Tetra reached over 2,500 servers, Discord's handling of bots at this scale required major changes to the core logic. Given the need for these adaptations, I decided to completely rebuild the project. This rewrite will not only address the scaling challenges but also introduce a modernized web interface and improved optimization algorithms.
Preview of the new web panel
Tetra has grown beyond my initial expectations, processing over 100,000 emotes and being actively used across Discord communities. I'm grateful for all the positive feedback received from users, and seeing the bot help so many servers brings me joy. This motivates me to keep improving and expanding its features further.
Tetra is a distributed system composed of several connected services, each serving a specific purpose:
Tetra Core - Discord Application Bot and API built with Discord.JS, Express.js, PostgreSQL, Bun, TypeScript, Drizzle, gifsicle, FFmpeg, OAuth2.
Tetra Panel & Website - Web interface using React, Next.js, TailwindCSS, WASM, gifsicle, Bun.
Tetra Cobalt - Cobalt instance for downloading multimedia content from social media platforms