Inside the client

Why it's this small

The desktop app is one executable of 24.0 MiB in a 10.7 MB zip, and it sits at about 25 MB of memory with a channel open. That is not a trick with compression: it is what happens when the client is a native program instead of a browser engine with a chat app inside it. Here is what is in the binary, and what is deliberately not.

Executable
24.0 MiB
Direct dependencies
28
JavaScript runtimes
none
Processes while running
one

01 · Not in the box

Four things that are not in there

Each of these is a real component that a chat client usually ships, and each of them is tens to hundreds of megabytes before your code runs.

Components a desktop chat client usually bundles, and what Yap uses instead
ComponentYap uses insteadCost avoided
A browser engine
Chromium, as Electron and most chat apps ship it
Slint, compiled into the binary: the interface is markup that becomes native drawing codeMost of the download
A webview
WebView2 on Windows
Nothing — there is no web control in the app at all. A link you click opens your own browser, outside the processNo second runtime
A JavaScript engine
and the framework that needs it
Rust throughout, with the UI compiled ahead of timeNo parser, no JIT
An asset pack
icon fonts, PNG sprite sheets, a bundled CSS framework
Individual SVG icons referenced from the Slint sources and compiled inNo unused glyphs

What is left is the chat client: networking, SQLite, protobuf, Opus, WebRTC and the drawing code. That is where the 24 MB goes.

02 · In the box

What the 24 MB is spent on

03 · The dependency budget

Twenty-eight direct dependencies

The desktop crate lists 28 direct dependencies in its manifest, plus one build dependency (the Slint compiler) and one Windows-only dependency for the window and registry calls. Every one of those shows up in the memory benchmark, so adding one is a decision rather than a convenience.

The workspace lockfile pins 837 crates, and that number deserves a caveat: the lockfile covers the whole workspace — the server, the protocol crate, the client and the benchmarking probe — and the server's HTTP and TLS stack is the largest part of it. There is no client-only lockfile, so this page will not pretend to publish a client-only count it does not have.

04 · The build

The release profile is set for size

The workspace release profile is the reason the executable is 24 MB rather than twice that. It is four lines in the root manifest:

opt-level = "s"    # optimise for size, not for the last few percent of speed
lto = true         # link-time optimisation across crates, which also drops dead code
panic = "abort"    # no unwinding tables
strip = true       # symbol names removed from the shipped binary
codegen-units = 1  # one unit, so the optimiser can see the whole program

These are trade-offs, not free wins: a size-optimised build gives up some throughput, and stripping symbols means a crash report from a user is harder to read. For a chat client that must stay open all day, that is the right end of the trade.

05 · What it costs you

The other side of small

06 · This page

What this page costs to load

This page is 14.5 KB of HTML, the stylesheet is 22.0 KB and the font is 48.3 KB: 84.8 KB uncompressed on a first visit, then the HTML alone, because the other two are cached and versioned in the URL. Those are file sizes, not estimates, and there is no JavaScript here at all.