Our whole desktop interface is 242 KB of JavaScript, four fifths of it React, and one page of our marketing site ships 3.7 times more
Notifio ships two user interfaces out of one repository. One is the desktop app, an Electron window that watches rental listing sites for you. The other is the website that sells it, 38 pages of mostly prose.
I have compared those two surfaces twice before, by vocabulary (485 words against 35,841) and by palette (58 colours, 15 shared). This time by bytes, which turned out to be the comparison with the sharpest edge on it.
The app's whole UI
The renderer is 19 TypeScript and TSX files, 3,107 lines. Vite builds them into exactly three files:
| File | Bytes |
|---|---|
index-BVnJWuyv.js | 242,426 |
index-BusBxegY.css | 18,988 |
index.html | 675 |
262,089 bytes, and that is the entire interface: the activation screen, the list of searches you monitor, the setup flow for each site, the login modal, the monitor cards, the activity log, the recent finds panel and the auto-reply panel.
Its dependency list is two entries long. Grepping every import in the renderer for a bare module specifier returns react fifteen times and react-dom/client once. Nothing else. No router, no state library, no animation library, no error reporter, no date library, no component kit.
How much of that is React
The honest way to answer this is to build React on its own with the same tool and compare. Vite minifies with esbuild, so:
$ printf "import React from 'react';\nimport { createRoot } from 'react-dom/client';\n createRoot(document.getElementById('x')).render(React.createElement('div',null,'hi'));\n" \ > entry.jsx $ esbuild entry.jsx --bundle --minify --format=esm \ --define:process.env.NODE_ENV='"production"' 193340 bytes 193,340 bytes of the 242,426 are React and the DOM renderer, 79.8 per cent. The app's own 3,107 lines are the remaining 49,086, call it 49 KB. Treat that as approximate, because Vite's tree shaking and helpers are not byte-identical to a bare esbuild bundle, but it is the right order: four fifths framework, one fifth product.
That 49 KB is the whole product UI. Every screen in the app, as JavaScript, is smaller than the stylesheet of most marketing pages.
What the website hands over for a page of prose
I measured this last week with V8 coverage: every page of the site loads seven chunks totalling 895,384 characters of JavaScript, 276,713 bytes of it after brotli, and 34 of the 38 pages ship exactly those seven and nothing of their own. A third of it executes.
So:
| JavaScript | CSS | |
|---|---|---|
| Whole desktop UI | 242,426 | 18,988 |
| One page of the website | 895,384 | 39,976 |
| Ratio | 3.69x | 2.11x |
One page of a brochure site carries 3.7 times the JavaScript of a complete desktop application's interface, and the site's single largest chunk, at 451,248 characters, is on its own 1.86 times the size of the app's entire bundle.
The difference is not product complexity, because the app is the complicated one. It is the framework and what comes with it. The site's biggest chunk holds React, the App Router and the Sentry browser SDK; a second holds an animation library that exists for the four mockups on the homepage. The app needed none of those, so it does not have them, and the thing it gave up to manage that is a router, which it replaces with switching on a state value.
Where the bytes land
Both numbers are small against what they sit inside, but in opposite directions.
The app's UI is served over loopback by its own Express process, express.static with no compression middleware, so those 242,426 bytes move raw across the machine. That is fine, and it is fine because of a decision I wrote about separately: the window reloads itself every time you open it, so that bundle is re-fetched and re-parsed every single time, from localhost, at no network cost at all.
And the installer it lives in is 278 MB, because it carries its own copy of Chromium. The UI is 0.09 per cent of the download. You could multiply the interface by a thousand and the installer would not notice.
On the website it is the other way round. 276,713 compressed bytes of JavaScript is most of what a visitor downloads to read a page, it arrives over somebody else's connection, and two thirds of it never runs. The same is true of the CSS: 39,976 bytes against the app's 18,988, and 39 of its 551 rules match nothing on any page.
The thing I actually changed my mind about
I had the two halves of this repository filed in my head as "the real app" and "the marketing site", with the first one being where engineering happens. The bytes say the site is the harder engineering problem and the app is the one with the easy constraints. The app can afford anything, because it already made its one enormous payment at install time and it runs on a browser it brought with it. The site cannot afford anything, because it pays again for every visitor, and it is the half where I keep finding framework code shipped for no reason.
The practical consequence is where attention goes next. There is no case for trimming 49 KB of app UI. There is a case for the error reporter on 38 pages of static text, and that one is nine lines of config.
Both are live if you want to weigh them yourself: the site is notifio.app and its heaviest page is the homepage, and the app with the 49 KB interface is on notifio.app/download.