#zig web frontend

1 messages · Page 1 of 1 (latest)

vestal creek
#

hello, I am looking to make a web app with a zig backend (jetzig, zap, ...) and have a zig frontend aswell, but since there is no SPA framework like it exists in other languages I am trying to find options here are some I found:

  • using templating language and serve directly from backend the full html page
  • TUI https://github.com/rockorager/libvaxis (i would have to use the std.http client)
  • GUI Library https://github.com/capy-ui/capy (std.http client as well)
  • Simply a CLI (std.http client)
  • Or I thought about using WebAssembly, I know people made interfacesin C ... with WebAssembly but I have no idea how they did it and if it possible to do it in Zig, any idea ?

Obviously, I could do a simple html+js app or use react or whatever but I want it to be as much Zig as possible.
Note: I want my backend to serve HTTP

GitHub

a modern tui library written in zig. Contribute to rockorager/libvaxis development by creating an account on GitHub.

GitHub

💻Build one codebase and get native UI on Windows, Linux and Web - capy-ui/capy

naive stump
#

there's this

#

haven't tried it

#

just heard of it

vestal creek
#

well I just realized I mentioned it ahahaha, it could work but with a templating language

naive stump
#

well I'm working on a framework like Blazor but for Zig

#

like writing full stack zig web applications

#

when I say "working on", I mean I'm tryna figure out how it would work currently

vestal creek
#

you would have to work with webassembly right ?

#

im pretty sure blazor uses webassembly

#

same for rust frameworks like yew, leptos, ...

#

I thought about doing something like this aswell, but it seems like a veryyy complicated task (I asked chatgpt what had to be done and it seemed like a lot of work)

#

but your project seem very interesting, have you started something ?

naive stump
#

yeah

naive stump
#

nothing that i've pushed

vestal creek
#

if you happend to push it tell me im very intersted to contribute aswell if i have the capacites 🙂

naive stump
#

but there's nothing important there right now

vestal creek
#

ty going to take a look

naive stump
#

but I wouldn't rely on that if you want to make a website, I'd just use something like jetzig or whatever it was