r/javascript • u/kostakos14 • Jan 07 '26
We chose Tauri over Electron. 18 months later, WebKit is breaking us.
https://gethopp.app/blog/hate-webkitI’ve been working on Hopp (a low-latency screen sharing app) using Tauri, which means relying on WebKit on macOS. While I loved the idea of a lighter binary compared to Electron, the journey has been full of headaches.
From SVG shadow bugs and weird audio glitching to WebKitGTK lacking WebRTC support on Linux, I wrote up a retrospective on the specific technical hurdles we faced. We are now looking at moving our heavy-duty windows to a native Rust implementation to bypass browser limitations entirely.
Curious if others have hit these same walls with WebKit/Safari recently?
45
u/genericallyloud Jan 07 '26
Sorry if this is a deep cut from reading the post, but your point about AV1 seems to be missing an important point. Why on earth would you want to use AV1 on older devices that don't have hardware acceleration? Those devices certainly would have hardware acceleration for other codecs like H.264 and that's what would actually be best for THE END USER. Why would you want it to fall back to software support unless you absolutely had to?
34
u/WideWorry Jan 07 '26
It was oblivious always, that Tauri is just a "webview". Electron is heavy, but it does the job.
150
u/PatchesMaps Jan 07 '26 edited Jan 07 '26
Safari being the new internet explorer is almost a meme at this point. I absolutely dread Safari/webkit only bugs.
Edit: Based on the replies to this comment, some very vocal people seem to think I'm somehow advocating for a chrome monopoly. I'm not. In fact, I think the biggest problem with IE originated with it having a monopoly. The biggest issue I have with WebKit is that while it doesn't have a total monopoly, it has a pseudo-monopoly when it comes to Apple devices which means users don't have a choice and developers are forced to jump through stupid hoops to make sure their web apps work with WebKit. In addition, Apple's development priorities heavily indicate that they don't like web apps and would rather force users to install native apps that apple can profit off of which would push this from negligent to malicious. I would rather the web remain a competitive place but Apple is actively hindering that with (probably) malicious incompetence.
28
u/yojimbo_beta Mostly backend Jan 07 '26
Personally I would only do the Tauri / Wails approach for relatively simple UIs. WebKit is a swamp of bugs and undocumented corner cases, so when you stretch beyond simply using HTML/CSS as your UI layer, you end up battling weird platform bugs
11
u/needefsfolder Jan 07 '26
Funny thing that in Tauri, Windows has a massive advantage because... They happened to have a Chromium-based native WebView (Edge) thus behaving more like Electron lmao.
Makes me wonder, should Tauri just ship a "Tauri runtime" of some sort in Mac/Linux platform? Install once, and all tauri apps will share the WebView runtime.
10
u/raitucarp Jan 07 '26
I think the problem with electron is they included dev tools. I want them implement nwjs approach by removing devtools and keep binary size small.
3
u/Everlier Jan 07 '26
This was one of the worst parts about Tauri. In addition to the issues, it's also very slow and stuttery on Linux targets, so even simple UIs lose FPS.
3
u/SirLagsABot Jan 12 '26
Dang, I just came across your original article of choosing Tauri. I made a digital signage app w/ Electron starting 3 years ago that is still running today, and sometimes I wonder if I should go with Tauri in the future, but the webview thing has always made me kind of uneasy. I don't do any crazy rendering or insane UI stuff imo, but the threat of nasty webview stuff has always felt iffy to me. That and I don't currently know Rust.
Electron is pretty great from my 3 years of experience with it, but one thing I don't like as much is needing to rely on Electron Builder for distribution. It's more robust for distribution, but that's something that should be baked into native Electron better. Seems like maybe Tauri has Electron beat on that front.
7
u/Pavlo100 Jan 07 '26
Google tries to move fast and add as many features as possible. Firefox tries to stop and think for a moment, and Safari just gave up.
2
u/-goldenboi69- Jan 07 '26
Don't get me started on WebAudio.
2
u/tomByrer Jan 31 '26
If I needed to do anything but a simple CRUD app, I would not have looked at anything but Electron... unless I was paid by the hour or my boss did not care about the pace of adding new features.
1
u/alootechie Jan 08 '26
Turi is great for hobby projects, but not for complex commercial requirements. It will eventually become a nightmare. I decided to go with Qt for native apps, so much happy with the decision.
1
u/MarzipanMiserable817 Jan 08 '26 edited Jan 08 '26
This seems like exactly the right use case for Qt Framework and QML.
1
u/tanepiper Jan 08 '26
Yep, and if you've ever tried to use it with WebGL - Safari is noticeably slower in performance, and especially on iOS - even though my iPad is newer than my Pixel (M2 vs Pixel 8) it can barely get above 30fps at times, while hit 120fps on my Pixel (you can try it too at https://teskooano.space/)
1
u/Zettinator Jan 08 '26
I mean... there is no free lunch. Tauri apps may have a small distribution size as they use an OS provided browser engine, but you pay for that in the inconsistency this results in. And this is not secret.
In most cases, you don't really need the space savings for a desktop app, so I'd argue Tauri's design is the incorrect one. If you didn't do you research before, that's your fault.
1
u/Spatul8r Jan 19 '26
What are you thinking for the front end? qt? Apparently they keep polishing it. They support animations now.
1
u/Foraridi Jun 30 '26
У меня в основном проблемы с Webview2 на Windows, а webkitgtk работает хорошо, если правильно настроить конфигурацию и соблюдать ограничения залоденные движком, типо не использовать openSSL, а в место него использовать mkcert, ну или явно указывать системе что ключам можно доверять, иначе не будет работать, но основная проблема была с интеграцией better-auth, по этому пришлось использовать классический jwt
0
u/BankApprehensive7612 Jan 08 '26
I think for app's like your with heavy computations and a lot of GPU usage migration to native UI is still a solution. But I believe it's the future of the nearest years to have HTML UI for many apps. Maybe you need to hire or consult with more experienced developers who would help you to solve this issues. I think it would help in the light of the SVG issue, which became such a huge problem. You could solve this by exporting in PNG and probably (need to be checked) APNG or WebM, if it has animations
0
u/jaredcheeda Jan 08 '26
OBLIGATORY LINK
https://XPDA.net
Lists all the cross-platform desktop app (XPDA) tools and their TLDR pros/cons.
0
u/HistoricalKiwi6139 Jan 10 '26
went through something similar picking rust over node for a microservice. chased performance nobody asked for and spent 4 days fighting docker instead of shipping. webkit bugs sound even worse tho at least my thing eventually worked
0
u/[deleted] Jan 07 '26
[deleted] — view deleted comment
4
u/[deleted] Jan 07 '26
[removed] — view removed comment
0
u/[deleted] Jan 08 '26
[deleted] — view deleted comment