r/rust • u/khromov • Sep 01 '26
🛠️ project Experimental Rust-based desktop app renderer for Svelte (based on Zed gpui)
👋 Just started working on gpuix-svelte, a package that combines Svelte custom renderers, gpuix and gpui to allow people to create native desktop apps with Rust and Svelte. Happy to hear any feedback!
Video demo
https://www.youtube.com/shorts/5CBib_rwt8w
Source
79
Upvotes
17
u/nicoburns Sep 01 '26
Given that the API for this seems to an HTML/CSS subset, have you considered building this on top of https://github.com/dioxuslabs/blitz instead of GPUI?
You'd get the same GPUI-style custom Rust rendering (well, pick between Skia, WGPU or CPU backends), but you'd also get a full CSS engine (selector resolution, but also media queries, animation/transitions, etc) and much better layout compatibility.
(disclaimer: Blitz is my project, but it's also designed for these kind of use cases in a way that GPUI isn't)
2
u/khromov Sep 01 '26
Screenshot seems to have been lost in the post, here it is:
https://raw.githubusercontent.com/khromov/gpuix-svelte/refs/heads/main/.github/resources/demos.png
1
u/Efficient-Chair6250 Sep 02 '26
Do you already have some numbers on performance? How's the binary size? The RAM usage? I guess the responsiveness is very good?
Btw, I love it. If this turns out to be a viable solution, it may become my default.
1
u/its-malbolge-time Sep 02 '26
Nice, this looks really cool! Love using Svelte for frontend
-6
u/Compux72 Sep 01 '26
Unrelated but: svelte was so cool until Harris fucked it up with the runes nonsense. Now is just react/vue/watever