Back to projects
ActiveJanuary 2025

Discord Ram Limiter

A terminal-based tool that monitors and limits Discord's memory usage — because nobody asked for a browser in their chat app.

GolangTUI

Overview

Discord has a habit of eating RAM like it's an all-you-can-eat buffet. Discord Ram Limiter is a lightweight terminal UI tool built in Go that keeps Discord's memory consumption in check — without killing the process or losing your place in that 3AM conversation.

Why I Built This

I got tired of Discord quietly consuming 800MB+ in the background while I was trying to run other things. Task managers felt like overkill. I wanted something minimal, fast, and living right in my terminal.

How It Works

The tool hooks into the system's process list, identifies Discord's memory footprint in real-time, and applies configurable soft limits. When Discord crosses the threshold, the tool nudges it back — gracefully, without crashing your session.

  • Real-time memory monitoring via system process API
  • Configurable RAM threshold (default: 300MB)
  • Clean TUI built with Go for a smooth terminal experience
  • Lightweight — the tool itself uses almost no memory (ironic, we know)

Tech Stack

  • Golang — core logic, process management, system calls
  • TUI — terminal interface for real-time monitoring and controls

Usage

# Clone and run
git clone https://github.com/helloirfanaditya/discord-ram-limiter.git
cd discord-ram-limiter

Then run:

DiscordRamLimiter.exe

What I Learned

Building this taught me a lot about how Go interacts with OS-level process management, and how to make a TUI feel responsive without overcomplicating the event loop. Also confirmed that Discord is, in fact, just Chromium in a trench coat.

Back to projects