Which framework is best for a WebRTC screen sharing app: Tauri, Electron, or Swift?

April 29, 2025 5 answers
Asked by CuriousCat94
I'm looking to develop a macOS screen sharing app that utilizes WebRTC. I've narrowed it down to three options: Electron, Tauri, and native Swift. From what I've seen, Electron seems to have the easiest WebRTC integration, but I'm concerned it might be resource-heavy. Tauri appears to offer better performance, although diving into Rust could be time-consuming, and I'm unsure about the overall support and whether the performance gains are substantial. On the other hand, Swift promises native performance, but I'm hesitant to part ways with React since I'm really familiar with that ecosystem. Has anyone built something similar using these frameworks?

Answers

DevGuru77
When deciding on tech, consider that performance might not be your top priority. Developer experience and speed of development can be more crucial unless you're already getting millions of users. So, think about how quickly you want to get your app out there!
Reply to this answer
TechieTraveler
If sticking with React is important to you, Swift might not be the best choice. Electron plus React seems like the way to go for ease of implementation, especially with WebRTC. And honestly, Electron's resource usage isn't as bad as many say; it's just not the tiniest option out there, but it'll still get the job done effectively! If you're considering making a web app first, Tauri is worth looking atโ€”it can give you a broad reach with manageable resource needs.
Reply to this answer
RustyNinja87
I have some experience with Tauri, and I enjoyed it, but it does have a few quirks, especially around API boundaries. If you're not strong with Rust, you might find the learning curve a bit steep. Given what you mentioned, I would lean toward Electron since it would make your integration with WebRTC smoother.
Reply to this answer
PassionProject88
Overall, if you're aiming for a quick market entry, go with Electron. For something you're passionate about that you want to develop and maybe turn into a business, Tauri or Swift would be better choices. If itโ€™s strictly for Mac users, Swift is definitely a strong contender. Good luck with your project!
Reply to this answer
SwiftSage42
Going with Swift is smart if you want native support, especially with accessing things like the Screen Capture Kit API. If React is your preferred UI tool, you might need to explore creating node bindings or look into existing solutions for seamless integration. Just try to get that balance right!
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions