Porting my Electron app to Rust: 675 MB to 91 MB
Web page · https://sayjot.xyz/blog/rust-port
First seen by Oriel on .
AI summary
Jot 2.0 replaces Electron with Rust and Rune, shrinking the universal app from 675 MB to 91 MB while adding Windows and Linux support.
- The download fell from a 302 MB dmg to 44 MB, while preserving the vault, settings, Keychain items, license, and bundle id for in-place updates.
- A single-process architecture combines state and view, moves blocking work to threads, and returns results through AppHandle::update without blocking the UI.
- Shared crates centralize note and vault logic in jot-core and platform-specific operations in jot-os, supporting the app, CLI, MCP server, and three operating systems.
- Compatibility preserves unknown YAML front-matter keys, allowing old and new Jot versions to share vaults without deleting fields they do not recognize.
- The port grew slightly from 73,000 TypeScript lines to 76,000 Rust lines; Shift Shift remains unavailable on Wayland because global key events are inaccessible.
#rust #electron #rune #cross-platform apps
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 37, latest observation ; +33 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 4, latest observation ; +4 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50460887 | https://sayjot.xyz/blog/rust-port Read discussion |