Why hypersig_desktop
hypersig_desktop suits a hypersig application that is also to ship as a desktop application: both share every route, page, and action.
The applications it suits
- A hypersig application served on the web that is also to ship as a desktop application.
examples/counterbuilds both from one package. - A tool that works on the person's own files.
examples/notesopens Markdown files with the system's dialog, edits each in a window of its own, and saves it.
It does not suit an application whose interface is written with a JavaScript framework such as React, since a window shows the pages the router renders. Nor does it suit one that needs the system's own controls, since a window holds only a web view, or one that runs on phones, since the crate builds for macOS, Windows, and Linux.
What it gives an application
- One codebase. The window shows the routes, pages, actions, and streams the application serves on the web, and only
mainchanges. - The same compile-time checks. Signal names, action URLs, and links are produced from Rust types in the window as on the web, so a mistake in one is still a compile error.
- No second list of what a page may call. A page calls only the actions the router declares, and a handler reaches files, the clipboard, and windows through
Os. - Tests without a window. With the
testingfeature,FakeOsstands in for the system, socargo testclicks through the pages and checks what the handlers did. - No browser in the package. The window is the system's web view: WKWebView on macOS, WebView2 on Windows, and WebKitGTK on Linux.
Start-up and size
The same todo list, built three ways: examples/todo with hypersig_desktop, and the list written in plain JavaScript in Tauri 2.12.5 and in Electron 38.2.0. Each build is started 5 times to warm up, since macOS checks a newly built executable on its first starts, then 20 times, and the time runs from spawning the process to the window showing its first page. Size counts the executable, and for Electron the Electron distribution with the application's files. Measured on 2026-11-10 on an Apple M4 Max with macOS 26. The apps and the harness are in bench/desktop.
| hypersig_desktop | Tauri | Electron | |
|---|---|---|---|
| First page shown, median | 482 ms | 455 ms | 489 ms |
| First page shown, p95 | 534 ms | 639 ms | 679 ms |
| Size | 4.7 MiB | 9.8 MiB | 269.9 MiB |
The three show their first page within 35 ms of each other at the median, and Tauri's is the soonest. hypersig_desktop has the lowest p95. Its build is half the size of Tauri's and under a fiftieth of Electron's, whose distribution holds a browser.
Not measured yet:
- Memory. On macOS, the system starts WKWebView's processes rather than the application, so they cannot be counted from its process tree.
- A cold start, after the system's caches are emptied.
- Windows and Linux.
- Tauri with a front end built by a JavaScript framework.
Next, Overview adds the crate to an application and opens its first window.