Desktop web wrapper for Zig recommendation

What would anyone suggest for Zig desktop apps (using web stack as frontend) that is not electron or tauri?

I found Photino, but I would prefer a Zig-compatible or even Zig-based option if possible. No problem if it’s still in very early stages.

New into Zig, so I’m still researching what I can potentially use in the future for some projects. While existing options mentioned can be used, most of them are not compatible out of the box and require bridges or adapters to work.

There is:

But it seems to try to force into TypeScript. I rather use pure or raw CSS, HTML, and JS if possible. Frontend with web technologies, backend Zig.

Hi Volk, welcome to Ziggit!

Unfortunatly there aren’t any (that I am aware of). There are a few good libraries that are trying to create desktop apps using Zig:

These don’t use web technologies though.

If you are wanting a web stack frontend, your best bet is to use something like Electron or electrobun. Electron doesn’t proclude you from using Zig on the backend. You can even write node ffi code in Zig.

I don’t think this is accurate. It looks like electrobun is trying to support TypeScript out of the box since that is where most of the web world is going. But nothing is preventing you from setting the entry point as a JS file and runing plain JS.

2 Likes