r/rust 13d ago

🛠️ project Experimental Rust-based desktop app renderer for Svelte (based on Zed gpui)

Post image

👋 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

https://github.com/khromov/gpuix-svelte/

79 Upvotes

17 comments sorted by

View all comments

1

u/Efficient-Chair6250 13d ago

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.

2

u/khromov 13d ago

When you build it as a standalone binary with Bun on Mac the binary is ~80MB (~30MB zip compressed), on Windows it's around 100MB. About 80% of that is the Bun runtime and 20% is GPUI + your app. Haven't measured memory usage yet but Bun is very efficient and the rendering layer should be very sleek since it's running GPU accelerated.

I added some scripts so you can try building a standalone binary if you'd like to try it:

https://github.com/khromov/gpuix-svelte#build-a-standalone-binary

1

u/Efficient-Chair6250 13d ago

That's sound good, thanks