Electrobun is ushering in a new era of TypeScript desktop development

Electrobun allows you to use TypeScript to build fast, lightweight desktop applications for macOS, Windows and Linux platforms.
Template projects can be quickly created using npx electrobun init. With the help of the system’s built-in Webview and Bun runtime, the package volume is only about 12 – 14MB, and minor updates of only 14KB can be pushed through the bsdiff patch. It provides RPC with types for the main process to communicate with Webview, starts at less than 50 milliseconds, and is equipped with complete build, signing and publishing tools. You only need to write code in one go in the familiar TypeScript, avoid the bloatness of Electron or Tauri’s Rust learning costs, and publish high-performance applications in minutes, with easy distribution and extremely small user download volume.

If you have ever had a headache because of Electron’s “family bucket” size, which can often be hundreds of MB, or you were tortured by Rust’s life cycle when trying Tauri, then Electrobun The emergence of “is simply like dropping a deep water bomb in the desktop development field.

For a long time, Web developers have always asked multiple choice questions when building desktop applications: Do they want the “one-stop” development sensation of Electron or pursue the ultimate lightweight quality of Tauri? Electrobun’s core logic is very simple and straightforward-it wants youUsing TypeScript alone, you can create applications with explosive performance and small size

Could change the rules of the game?

The traditional Electron application is heavy because it crams a complete Chromium browser and Node.js runtime into each software. Electrobun has a clever “slimming plan”: it directly calls the Webview that comes with your computer system (such as WebKit on macOS). This directly resulted in the original hundreds of MB installation package being instantly reduced to 12-14MB left and right.

But small size is only the first step, and “fast” is its trump card.

Electrobun’s main process no longer uses Node.js, but chooses the current speed monster in the JS world. Bun。Used in conjunction with the bottom layer Zig Written by the native binding, its application cold start time has been compressed to Within 50 milliseconds。This means that when you double-click the icon, the app pops up almost instantly like lightning, completely saying goodbye to the embarrassment of watching the Loading circle turn.

What developers care about most: Does the code feel good to write?

Many developers are deterred from Tauri because the main process logic must be written in Rust. Electrobun solves this problem perfectly:

  • Full-stack TypeScript: Whether it is the UI interface or the main process that processes system files, you can use the familiar TypeScript to handle it.
  • Type-safe RPCCommunication between the main process and the web page is no longer blindly sending messages. It provides a set of RPC mechanisms with types. You define a function in the main process, and there will be complete autocompletion and type checking when called on the front end. The code feels safe when refactoring.
  • Start with one click: Enter npx electrobun init, it will set up all the scaffolding for you, from development debugging to the final signature release, and the tool chain is too complete to be like an early project.

Even “updates” are elegant

The most amazing thing is its update mechanism. Traditional software updates often mean re-downloading, but Electrobun introduces a software based on bsdiff Differential patch technology. Assuming you change a few lines of logic, the update package you push may only be 14KB。This tiny byte-level update allows users to use your latest version without even realizing it.

summary

Electrobun is not repeating wheels. It is forcing a “third path” between Electron’s ease of use and Tauri’s high performance. It retains the comfort zone of a Web developer while draining the machine’s performance through Bun and the system Webview.

Although it is still in a period of rapid growth, this combination of “native performance + TS experience + extremely small size” really allows us to see what future desktop applications should look like. If you’re starting a new desktop project and don’t want your users to download huge installation packages for a simple feature, Electrobun is definitely the most open source project worthy of your attention this year.

Github:https://github.com/blackboardsh/electrobun
Oil tubing:

Scroll to Top