Skip navigation
I¹ ported my Mini web browser to Rust & Swift.
0:00 / 1:01

I¹ ported my Mini web browser to Rust & Swift.

Guillermo Rauch

@rauchg924K followers

Visit on X
1,512 likesDownloadOriginal post

111,686 views

I¹ ported my Mini web browser to Rust & Swift. It's faster, more secure, and shockingly, nicer to iterate on than Electron + Bun. I always wanted Safari-like UX but… Chrome 😁. Thanks to the 𝚌𝚎𝚏 crate, I can bundle up-to-date Chromium. 𝚏𝚡 𝚊𝚌𝚙 lets me embed an agent without bloating the app. It talks to my local fx CLI over ACP. fx can then manage the browser via an MCP server². By ditching Electron, I was able to get Liquid Glass, faster boots, and a more Mac-native feeling. Little things like fine-grained focus and input control, which are nightmare fuel in JS, just work®. Native is the future, both on the desktop and in the cloud. I suspect the entire software world will "nativify" faster than people realize, as DHH hinted at Rails World. Excited that Vercel's bet on Fluid will help support this, whether you choose to go Rust, Go, Zig, scriptc… ¹ Built on with Opus 5.5 and Sol 6 ² In the process I learned about which I'm now really excited about. This will allow a more secure and direct way to expose MCP tools

30 Comments

Comments from the original post on X (Twitter)

  • Ryan's profile picture

    @ryanndngg

    building a tiny browser and still having to bundle all of chromium is the most browser-development sentence possible

    2 likes

  • IP's profile picture

    @ipfizz

    you should give a try

    2 likes

  • Leo Qosimov's profile picture

    @leoqosimov

    Electron just got served divorce papers by Rust and Swift and somehow still has to pay child support in RAM

    1 like

  • Gregor's profile picture

    @bygregorr

    the 'nicer to iterate' claim is doing a lot of work there. electron hot-reload wins the raw inner loop what rust buys you is fewer step-12 surprises. those feel like the same thing when you're deep in a bug but they really aren't.

    1 like

  • VisiveAI's profile picture

    @VisiveAI

    Mini browser in Rust/Swift now embeds an agent via fx acp — interesting if the shell becomes the product. Short stack → #Agents #DX

    1 like

  • Alex Shaw's profile picture

    @alexgshaw

    cool

    1 like

  • Mathias Heinke's profile picture

    @ares_mheinke

    The useful boundary is per-operation context: MCP-over-ACP is still a draft and targets MCP 2026-07-28 only. That is where I would enforce tool scope, instead of trusting one long-lived side channel.

  • 033.eth's profile picture

    @enspiration_eth

    we will all have our own personalized software

  • George Hanu | Coding with AI's profile picture

    @georgehanu

    “Native is nicer to iterate on” might be the most interesting line here 😄 We spent years assuming native meant more work. AI coding may be reversing that tradeoff.

  • Jiachi's profile picture

    @huozhi

    Using cef is such a brilliant move!

  • Nirmal Khedkar's profile picture

    @nirmalhk7

    You know I tried this way actually @rauchg. Check if you're able to do Google sign ins. From what I read, unless you're baking Chromium in, you're using embedded Chromium, and for safety reasons Google will block sign in attempts through embedded browsers.

  • 0xmusashi's profile picture

    @zeroXmusashi

    open source?

  • Misha's profile picture

    @mishanaer

    want to join beta, how?

  • Sael's profile picture

    @0xsael

    nativify is the move. nothing beats that native focus control, definitely feels like the shift here

  • ShadowAguy's profile picture

    @shadowaguy

    I’m more curious about the embedded agent than the Electron exorcism. What does it actually own in the browser?

  • Jatin Garg's profile picture

    @jatingargiitk

    what did the Swift/Rust split look like? UI in Swift, engine in Rust, or something else?

  • Wijdan's profile picture

    @wijdanri

    It seems like it’s been quite a while since I’ve heard people mention CEF

  • Aapakari's profile picture

    @aapakari

    Fine-grained focus control is the underrated win here, not the boot times

  • Kelvin's profile picture

    @Kelvin_json

    rust and swift over electron is the kind of decision that only looks obvious after you already ate the rewrite pain

  • RPA | tool製作's profile picture

    @rpa_dake

    cef crateで同梱したChromiumの更新は、どう扱っていますか?配布するツールを作る側として、そこが地味に知りたいです。