Future prospects of Web Development with Zig?

Can’t resist my 2 cents as I’ve been thinking of Web Development with Zig for a while and put some time trying to do so. And I highly think of Zig being an option at least for web development for not many but some important cases.

Backend

The ecosystem for the backend is evolving already, there are many web frameworks out there, and some of them are really fast. And I have a benchmark of those here.

And I feel like in some cases where the requirement is to build very fast, low memory usage, and reliable backend service Zig may make sense.

Frontend

Frontend powered by Web Assembly is something I would highly think of seeing web evolve with applications like Figma coming to mainstream. More people would want to build similar applications in the future seeing the possibility. I even started a project to have JSX/React like way of building frontend using Zig. Currently it has SSR and it’s pretty promising, at least to me haha.

I’ve a prototype of the project above I mentioned here. Original discussion here. And a short video showcasing it here. (Apology for too many links out :smiley:)
Here is how it looks like, still need more feedback and usage to finalize all the features and syntax but it works as of now for most common things.

Conclusion

While if I think in numbers most people won’t want to build web applications using Zig because most people want faster development speed rather than runtime speed. But in a few cases for mission-critical applications people may want to choose Zig. And it depends on how the Zig community cares about seeing Zig in the web and keeps pushing out production-grade lib/frameworks for the web.

3 Likes