r/coolgithubprojects • • 1d ago

Strange Quark: run your React app as a native desktop app, no WebView or Chromium

https://github.com/project-strange-quark/strange-quark
36 Upvotes

3 comments sorted by

4

u/Lord_nova69420 1d ago

i think the text i placed on the post was removed for some reason, so here it is for those who want:
Desktop apps built with web tech have always had two options. Bundle Chromium like Electron, and pay for it in memory and size. Or use the system WebView like Tauri and Wails, and get a UI that renders differently on every OS, plus bugs you can't fix (WebKitGTK on Linux, I'm looking at you).

Strange Quark is a third option. You keep the React app you already have, and you get a native desktop app that looks the same on Linux, macOS and Windows, without shipping a browser.

How it works: your app's code and the real, unmodified react-dom run in V8 against a lightweight DOM written for Strange Quark. Instead of handing that DOM to a browser, Strange Quark does the styling, layout and drawing natively in Rust, using Stylo (Firefox's CSS engine), Taffy for layout, Parley for text, and Vello on the GPU through wgpu. No WebView, no Chromium, and the same rendering on every OS.

It already runs real apps: Monaco and xterm.js in the Workbench demo, and shadcn/ui with Tailwind v4 and Radix. Bring a Vite, Rsbuild, webpack or Parcel React SPA, run squark, and get a single binary.

It's early, and there's an honest "not supported" list in the README (Next.js, WebGL, iframes, contenteditable). It's MIT licensed, and I'd love feedback, bug reports and contributors

1

u/vadrer 21h ago

Ok, nice.
There is a comparison table comparing Electron, Tauri, and Electrobun—nice. You also mentioned that Strange Quark is faster and uses less memory, which is great. So, when I want to move the application to run on another PC, what is the distribution like in terms of file size and number of files?

2

u/Lord_nova69420 20h ago

on windows and Linux, it outputs a single binary and on macOS it outputs a .app bundle.
note that version 0.4.0 does not output an installer, and there is no update system currently, although both of those will come in the next version.
bundle size should be around 70-100MB depending on the application
if you encounter any issue or bug, do not hesitate to open an issue on github!