I am getting started with Nim's web aspects. What I gather is that Jester offers the web front-end construction system (chapter in Dominik's Nim in Action book was quite helpful). From the Karax GitHub pages, it looks like Karax focuses on the back-end. So will Jester and Karax live separately or is Karax going to get into the HTML/Javascript front-end aspects. Back-end strength is what draws me to Nim right now, but web will be a significant frontier.
What will be in the road-map? Should I invest time on both for front-end development?
Thanks.
Think of Jester as Sinatra/Flask/Express equivalent.
Karax is equivalent to React.
Karax is equivalent to React. I read the part of Karax maintaining a virtual DOM. Now how do with the "real" DOM with html and the browser.
What I trying to say is, FB's React is clear on its virtual DOM and on both the auto and manual (programmer directives, Redux state controller) for DOM updates for browser rendering. I am looking for documentation on Karax, preferably examples, to develop better grip on coding with Karax. Karax, with Nim's performance and type system, is indeed interesting.
You could take a look at the "web" (Karax/HTML) and "server" (uses Rosencratz) modules in this project to get a sense of how to use Nim for both client + server.
for not highly interactive web apps, I recommend unpoly as front-end framework, has built-in features like routing, animations, lazy loading, etc.
very very pleasant to use. 100% suggested instead of Karax, React, Vue, etc
plus you don't have SEO problems
As a learning experience of jester a project of mine is:
https://github.com/some-avail/json2web?tab=readme-ov-file
But I use the web-interface only to create offline apps; but it can a learning-point.
I also thought Karax could not be scraped or spidered; you dont see much html-code in the page-source. But apparently there is some way because the firefox-translation-function renders a nicely translated page...I dont know how they do it thoe.
But Jester is only one webserver; there are more. Since Jester appears to be no longer maintained I am also looking for alternatives...
@hamidrb80
Never heard of unpoly before (but I don't do much frontend work). It seems similar in goals to htmx. If you do know htmx, can you elaborate how the two compare?