logoalt Hacker News

yoav11/21/20244 repliesview on HN

Hey hn! Author here:

Thanks to whoever submitted.

Electrobun is in the very early stages. The roadmap is a bit out of date. Here are some highlights:

- it’s like Tauri in that it uses the system webview and does not bundle chromium

- it’s like Electron in that it bundles Bun instead of Node for the main process so you just write typescript for both the main and browser contexts

- native bindings written in c/objc with a zig wrapper that the bun process runs

- it will be cross platform, but working on stability first

- the cli handles updates code signing and everything else you need and outputs build artifacts that you just need to upload to S3 or any static file host.

- it has a custom optimized bsdiff implementation in zig that autogenerates updates for your app as small as 4KB

- it has a custom zig self extracting mechanism that uses zstd so your initial download is also as small as can be.

- it has a custom encrypted easy to use RPC mechanism between bun and browser processes where you just write method signatures and handlers.

- it has a custom OOPIF implementation so you can embed isolated browser contexts with your html <electrobun-webview> element that are performant and easy to use so you could build a multi tab web browser with it if you wanted.


Replies

chalst11/23/2024

> Thanks to whoever submitted.

That would be https://news.ycombinator.com/user?id=CharlesW aka Charles Wiltgen.

show 1 reply
pmuk11/21/2024

Do you have any examples apps built on electrobun?

show 1 reply
jacobgorm11/21/2024

Tauri also uses the system webview and does not bundle Chromium, right?

show 1 reply
bsimpson11/21/2024

[flagged]

show 1 reply