After posting my latest weekly AI update, I set out to consolidate the codebases for my vibe-coded Markdown editor, Typecraft.
But as I wrote in that post, I also had this idea in the back of my brain about rebuilding the app in Rust, the memory safe, performance-enhancing, and broadly adopted programming language. And I don't know if this is the ADHD talking or just a growing realization that, increasingly, anything is possible now with AI, but I decided that it wouldn't hurt to at least try and skip right to the ending.
Meaning, I decided to just see whether Antigravity could rebuild the app in Rust. So I asked.
Is it possible to convert the Typecraft app to a native Windows app, preferably using Rust?
Predictably, it said that, yes, this wasn't just feasible, but that Typecraft is an ideal candidate for this kind of conversion. It noted that the app was currently "a compact Electron app with zero runtime npm dependencies" and that the desktop host exposes just 16 simple IPC calls for things like open/save dialogs, recent files, and so on. And because the PC I was doing this on already has Rust and Visual Studio installed, I was good to go.
It had just one question: Did I want to make this version of the app using a hybrid approach with a Rust backend and a Windows WebView2 frontend (the latter via the Tauri 2.0 framework), which it recommended because it could reuse the UI and WYSIWYG editor from the current app, or as a 100 percent native Rust app with a new UI? "If your goal is to keep Typecraft's exact Typora-style WYSIWYG experience while ditching Electron's bloat and moving the desktop core to Rust, Tauri v2 is the sweet spot," it added.
I decided to go with option one--the Rust + Tauri 2.0 version--mostly because I was still approaching this as if it were an experiment. And so Antigravity worked on the conversion for 13 minutes before announcing it was done and had made a standalone native Windows executable. So I asked it to build installers for x64 and Arm. Which it completed in under four minutes.
I installed and ran the Arm version of the app on the RTX Spark computer I had built it on and then I did so too with the x64 version on a different Windows 11 laptop. In both cases, the installer is tiny, the app installs in single-digit seconds, and the app opens in less than one second. It's a much smaller app, too, both on disk and with resource usage when it's running.
That was a fun test, and like most of my AI adventures over the past month, it was incredibly successful. So I decided to overreach. Obviously, it would be ideal for Typecraft to be a single cross-platform project that I could access from anywhere, instead of the current situation where it's a group of projects spread out across different computers (a Windows laptop, a Mac, and a Googlebook). I mean, it doesn't hurt to ask.
Is it possible to make Mac, Linux, and/or iPad versions of this app here or do I need to use a Mac or Linux computer to do...
With technology shaping our everyday lives, how could we not dig deeper?
Thurrott Premium delivers an honest and thorough perspective about the technologies we use and rely on everyday. Discover deeper content as a Premium member.