..or: why is my chat app 1.3 GB
I want to take a break from the regularly scheduled konami stuff for a couple of reasons. First and foremost, i remembered about this blog after almost a month of not posting on it, which made me feel really guilty, and second, to talk about something that pisses me off beyond any level of comprehension. I’m talking about, as you can see from the title, the fact that for some gods unknown reason, everything had to become an electron app, or a webapp, or a thing that requires me to have 180 chrome instances on my pc, and a list of things that i’m doing to “counter” this ever-growing slopfest. Apologies in advance for this article, it might be shorter than usual, and it might contain some more colorful language.
The argument for (and against) electron apps
I hate to have to joke about this, but most programs on my pc right now exist simply to maximize shareholder value. And, part of that involves making something that can be thrown around different OS’s and scenarios and look “good enough” on all of them. The obvious choice here is a website, it can be rendered on anything from a smart fridge to a datacenter, and it’ll look pretty much the same on all of these scenarios.
I’m not going to pretend the business case is stupid, because it isn’t. You hire one team that knows typescript and react, and you ship to windows, macos, linux, and with a bit of extra duct tape, android and ios too. You get hot reload, you get devtools, you get an npm package for every problem you could possibly have and six hundred for the ones you don’t. Your designer hands you a figma file and it just becomes the app, pixel for pixel, on every platform. Hiring is easy because every bootcamp on earth produces web developers. Shipping an update is easy because it’s just a bundle. If i were a manager with a deadline and a budget, i would pick electron too, and i’d sleep fine.
The problem is what gets paid for that convenience, and who pays it. It’s me. It’s you. It’s everyone’s RAM, in this fucking economy. Every one of these apps drags along its own entire copy of chromium, because god forbid two programs on the same machine agree to share a browser. So right now, as i write this, i have discord sitting at 1.32 GB across nine processes, and vscode at 2.62 GB across fifteen. That’s almost 4 GB and twenty-four processes, for a chat app and a text editor. The vscode install on disk is a full gigabyte. A gigabyte. For a text editor. I have 32 GB of RAM in this machine, which is a normal amount for a gaming machine in 2026, and i still notice how sluggish these apps feel, which should tell you something about how much of it is being set on fire. And the thing is, i’m getting off easy. Every one of those numbers is the same on the laptop with 8 GB, except there it isn’t an annoyance, it’s the whole machine.
Then there’s everything downstream of that. The 200ms between pressing a key and seeing the character show up, because your input has to go through a javascript event loop before it reaches a compositor. The battery that dies in three hours because something is repainting a div sixty times a second to animate a typing indicator. Scrolling that stutters. In a list of text. None of these are individually unbearable, which is exactly why they all shipped. Each one is just under the threshold where someone would file a bug, and together they’re the reason using a computer in 2026 feels worse than it did in 2012 on hardware that was thirty times slower.
And the part that actually gets to me isn’t even the performance. It’s that the web stack is a delivery mechanism for everything else in the enshittification starter pack. When your UI is a webview, the ad is just a div. The tracking is a script tag. And the A/B test that moves your buttons around between calls or between songs is a config flag on their server, not a build you chose to install. The “we’ve updated our UI” that nobody asked for ships to you overnight because the app isn’t really on your computer, it’s a bookmark with extra steps. A native app can do all of this too, nothing stops it, but it has to try. With electron it’s the path of least resistance, so again, as a manager i’d still pick this browser with extra steps
The many arguments for (and against) native apps
Native apps are, by nature, more complex, more time-consuming for developers, harder to optimize.
You have to care about platform differences that electron papers over for you. You need to know what a compositor is, why your font rendering looks wrong on one distro, what a Secret Service is (no, it’s not a 3-letter agency) and why your login isn’t persisting without one. You get to find out that vulkan drivers are not a solved problem. You write your own markdown renderer, your own image decoder path, your own scrollback logic, and every one of those is a week that the react developer spent installing a package. You will also, inevitably, discover that you have to write the whole thing again for arm64 macos, where most things are different enough that “it compiles” and “it somewhat works” are two very distinct milestones, and there’s about 2 weeks of crying and begging cargo to work between them.
That being said, they also have some really good positives. On typical x86 windows/linux, the payoff is simply that the computer behaves like a computer: a single process, memory that scales with what you’re actually doing instead of with how many webviews are open, startup that’s instant because there’s no runtime to boot and no JIT to warm up, and a binary you can keep, archive, and run offline in five years without a vendor’s servers agreeing. On arm64 macos it goes further, because the hardware is genuinely good and native code is the only way you ever see it: real GPU acceleration instead of a browser’s best guess at it, and battery life that stops being a punchline the moment you aren’t running a browser to display a text field.
For example, i’ve been working on rustcord and tinyspot. they’re both fully native, 100% made in rust, and 150% violating spotify’s and discord’s terms of service. but i’d rather be at risk of losing my account than keep paying ransom on my own hardware to a company that doesn’t notice i exist, except for the data it harvests from me.
The numbers, since i was throwing discord’s around earlier: rustcord is open right now at 254 MB, in one process, next to discord’s 1.32 GB across nine. Spotify is the same story: tinyspot sits around 219 MB against the real client’s ~2 GB, and that 219 MB includes actually decoding and playing the audio itself through librespot, which the spotify client was also doing, with substantially more help and roughly ten times the memory. The binaries are 37 MB and 40 MB respectively, statically linked, no runtime, no node_modules, nothing to install but the file.
I wish it was really all unicorns and rainbows, but there is a touch of overselling here. Rustcord is taking such a tiny amount of ram simply because i’m not in a voice channel, since the voice stack that i scrapped together with hopes and dreams hasn’t been optimized yet. It’s getting there, i’ve gotten it down to 10-15% cpu and around 600mb in a call, which is still less than what discord wants just to sit there and do nothing, but it’s a far cry from the 254 MB i was bragging about two paragraphs ago. That, alongside all the many other issues i’ll eventually have to fix: all your server channels show up whether you can actually read them or not, read status doesn’t sync, and notifications are missing their audio, not to mention that voice calls and screen sharing are just a figment of my imagination.
Despite all this, i genuinely couldn’t care less. I would rather run two half-finished native apps instead of renting my own hardware out to yet another browser. Every one of those bugs is mine: it’s in my repo, it’s my fault, and it’s a weekend away from not being a bug anymore. The 6 GB that discord, vscode and spotify are sitting on right now, with all three open, isn’t a bug, and nobody’s gonna care enough about the product to fix it proper, because fixing it really would take too many engineers and too much money out of the shareholders, and gods forbid we do that
A final word
I’d like to, as always, thank you all for reading this far. This whole argument against electron has been something that’s been simmering in the back of my mind for a while, and i felt the need to ramble a bit about it.
I hope that, if for whatever reason a discord or spotify developer comes across this, my account won’t get deleted. And to any web devs reading: this isn’t a criticism against you, it’s a criticism against the need to use these tools. Nobody picks electron because they woke up wanting to ship a browser with a chat app inside it, they pick it because it’s the only option that gets four platforms out of one team and one deadline. That’s not a 100% skill issue, it’s a crappy decision made by people that have very little in terms of technical knowledge, leaving most of us stuck in this situation