- Looks very promising, will be building my next project with it. Full TS stack is where I'm most productive. I'm glad we now have a more performant and lean alternative to Electron while not needing to deal with Rust and long compilation steps.
- I see a lot of game devs in discord experimenting with Electrobun to release desktop games.
I think it's going to eat a piece of the Electron pie for Steam indie games.
Most stay with bun after seeing how fast and seamless it is to run typescript games with instant auto reload:
bun --watch game.ts
- One of the main problems I see with tauri is that system web views just aren’t a great solution for a ui framework. Partly because Linux doesn’t have an official webview implementation, partly because the web views across OS versions have differences (eg. Tauri on Linux had a benchmark saying the boot time was 20+ seconds because of the webview, and win 7 and I think even early versions of win 10 do not use the edge webview).
This is a lot of tradeoffs for saving 100 megs.
I understand that we should be good stewards of our customers’ hardware and not waste things unnecessarily, but also have to balance that with shipping something and not worrying about all the edge cases. Most people in developed countries have Internet connections of 100+ mbps, which means the app will still download in <10 seconds.
Does electrobun support using an embedded chromium for the renderer? I went to the project readme and it was really unclear if that’s a currently-supported option and if so, how to use it.
- Title should maybe specify that this is a blogpost from the author reflecting over the project. There’s better link to showcase the actual project
https://blackboard.sh/electrobun/docs
- Neat! Here's the project main page for those interested in more than the release announcement:
https://blackboard.sh/electrobun/docs/
It certainly looks clean enough, and I'm more familiar with zig than rust, so I might give it a shot.
- The article mentioned notarizing and stapling as problems with prior frameworks. What's the story here? If you don't use xcode as your ide (and I don't see that this project management is happening inside xcode), Apple makes that stuff really hard. And windows is easier but still hard to automate in CI. If this framework offers better solutions I'm all ears.
by rubymamis
1 subcomments
- I guess since Electron apps are 500MB+, 14MB is considered "tiny".
- /* Looked at the product for which Electrobun was built, co(lab). «Focus on building instead of managing tools. Keep your code, browser, terminal, notes, and git workflow in one unified interface.» Well, a great idea! This is what Emacs mostly gives me. */
by sumolessons
0 subcomment
- This looks promising. And it's exciting to think it could also target mobile [1].
[1]: https://github.com/oven-sh/bun/issues/21237
by InfiniteLoopGuy
1 subcomments
- Can modern LLMs effectively be used on Electrobun codebases?
by codethief
1 subcomments
- @OP I know it's "just" a webview at the end of the day but I still think the Electrobun website could use a screenshot or two. (Or maybe e.g. a short video of an app comparing the startup times of Electrobun, Tauri, Electron etc.)
by chrisco255
2 subcomments
- How big does a hello world binary compile to with this?
by hwisnu_bearblog
0 subcomment
- impressive work! this might nudge me into building desktop applications.
by synergy20
1 subcomments
- size? performance? bun last time I checked alone is 130MB
- I'm wondering about security for this sort of thing. I guess it's like node.js in the sense that while you could load JavaScript code downloaded from the Internet at runtime, you probably shouldn't? Any additional gotchas due to the web view?
- Hey HN, Electrobun creator here. Thanks for posting this.
We just hit v1 - stable which means I've locked down the architecture. If you run into any bugs or need specific apis that you miss from Electron or Tauri please open Github issues and I'll prioritize them. I shipped 50,000 lines of code changes stabilizing and polishing electrobun for v1 over the last month.
Here's a video demo of Colab (also open source) (a hybrid web browser + code editor + PTY terminal) that is built with Electrobun https://www.youtube.com/watch?v=WWTCqGmE86w
Electrobun uses the system webview by default, but a lot of the hello worlds feature the bundleCEF option. Because Electrobun is architected to be webview agnostic when servo and ladybird are ready they should be drop-in alternatives.
Electrobun apps also auto generate a zstd self-extraction wrapper and patch files with every release, so your initial download will be much smaller than if you'd used zip and your updates will be as small as 14KB so you can ship as often as you like without you or your users paying the bandwidth tax.
- was looking for something just like this.
Really helpful
- can you build a single .exe standalone app or standalone installer ? i only see folders or .exes relying on buind in the same folder is the archive
by queenkjuul
0 subcomment
- I'm going to production with a new Electron app at my job this week, i wish this had existed a year ago lol. Electron Builder does a pretty good job making the updates and signatures not TOO painful but it hasn't been painless by any stretch.
Looks cool, I'll try this for my next personal desktop project and see how it goes
by phplovesong
1 subcomments
- Are there any numbers on comparison to electron?
by Imustaskforhelp
1 subcomments
- If someone from Electrobun is reading this. Can Electrobun compile to android as well. I want to create a simple application which can take some index.html and pass an adblocker and create an app out of it since I think this idea is pretty cool.
I ended up having to use Ionic to create a html <-> Android app thing within github actions but Ionic doesn't support ad blocking abilities.
by KingOfCoders
0 subcomment
- Moved from the molasses of VSCode to Rust-based Zed, no comparison. The second is snappy, responsive, uses much less memory (I can have 5 Zed open at the same time, no problems), not looking back.