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.
| Component | Yap uses instead | Cost 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 code | Most 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 process | No second runtime |
| A JavaScript engine and the framework that needs it | Rust throughout, with the UI compiled ahead of time | No 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 in | No 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
- Slint with the software renderer. The UI toolkit is built without a GPU backend, so the app draws into a buffer and presents it. That is why it runs on a laptop with no usable graphics driver, and why it never needs to keep a compositor's worth of textures resident.
- One process. The benchmark's process list has a single row for the client. There is no renderer process, no GPU process, no utility process to multiply the memory column by four.
- WebRTC only where voice is used. The peer-connection stack is in the binary because voice and screen share need it, but it is idle until you join a call — which is why the idle and loaded figures are close to each other and a call is not covered by either.
- Crypto that is small on purpose. Ed25519 verification for update manifests, X25519 and ChaCha20 for encrypted spaces, Argon2id for the login key — algorithms, not a framework.
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
- No plugins or extensions. There is no web content in the app, so there is no extension surface, no themes marketplace, no embedded widgets. Bots are the extension mechanism, and they run on the server side.
- No GPU-composited effects. The software renderer draws what it draws. Blur, heavy animation and video-in-UI are not things this client will do well.
- Windows only, for now. The same code targets other platforms through Slint, but only the Windows build exists and is tested. macOS, Linux and iOS are on the roadmap, not in a download.
- Unsigned installer. The installer puts the app in
%LOCALAPPDATA%\Programs\Yapand adds a Start menu shortcut so Windows Search finds it. Windows SmartScreen will warn on first launch until signing lands, and we say so on the downloads page rather than letting you find out. - Voice needs a relay outside a LAN. WebRTC mesh is direct on a local network and needs a TURN server across the internet. That is a property of peer-to-peer voice, not of the client size.
- What you get for it: an app that starts in under a second, idles at about 25 MB, and does not need a browser running in the background to work. The measurements are published with the command that produced them.
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.