Best Web Framework Features?
Could you please discuss your favorite web frameworks and the features they provide? If you don't have a particular favorite, could you share the features that you'd like to see in web frameworks? 🎈
Best Web Framework Features?
How? 👀
Best Web Framework Features?
> You should check out @pwernersbach's excellent MicroAsyncHttpServer library. > It's slightly faster than httpx when multithreading, and it's nearly 100% > API-compatible with stdlib's AsyncHttpServer. The difference is that it > doesn't load bodies entirely into memory, and instead lets you stream them. I > worked with @pwernersbach a month or two ago to clean up the library a bit > and make it more usable so I could use it in a web framework I was writing. @termer, HappyX uses asynchttpserver, httpx and microasynchttpserver 🙂 > When it comes to a fullstack framework in Nim, I simply am not comfortable > shipping the massive bundle sizes that Nim JS produces. It sounds fine until > you realize that, as of the time of posting, forum.js is 793.69KiB > uncompressed, and 114.94KiB gzipped, partially due to bizarre codegen like > this: HappyX have CLI that can build your JS file from 600+ Kb to 50-60 Kb ✌ > I agree almost 100% with what @Isofruit brought up. I would like to be > specific and say that I'd like .NET-style validation, with controller methods > mapping to routes, their arguments being used to generate JSON validators > automatically, and the ability to use annotations to customize it further. HappyX have powerful routing/mounting system and it support request models (at moment only JSON body)
Best Web Framework Features?
I can't say about ORC, but libraries `httpx` and `microasynchttpserver` support multithreading btw in HappyX you can use it via `-d:httpx` and `-d:micro` 🙂
Open file at compile-time [JS backend]
Thanks!
Open file at compile-time [JS backend]
I'm trying open file in macro, but I got exception: template/generic instantiation of `some` from here Error: cannot 'importc' variable at compile time; fopen Run My Nim code: import macros macro some(): untyped = var f = open("some.txt") echo f.readAll() f.close() some() Run
HappyX web framework got a new sponsor
The following paragraph serves as an introduction to HappyX. You can skip it if you are already familiar with HappyX. As you know, HappyX is a full-featured web framework written in Nim. It supports the development of single-page applications, server-side applications (e.g., RestAPI), and server-side rendering applications. A few weeks ago, a Russian company (Popso AI) noticed HappyX. Now, HappyX is being used by this company as the main tool for developing a browser extension.
HappyX web framework got a new sponsor
@matkuki, HappyX is stable for creating full-stack applications. In examples folder you can see happyx website (that made with happyx). Also happyx website has playground, that also uses happyx for backend part 👀
What Araq thinks about HappyX?
I would like to know what the creator of Nim thinks about [HappyX](https://github.com/HapticX/happyx)
What Araq thinks about HappyX?
sounds really good!
HappyX for X programmers
Hi guys, I have been interested in the concept of "Nim for X programmers" for a long time. And I would like to do the same for HappyX. I am currently working on [HappyX for Karax programmers](https://hapticx.github.io/happyx/#/guide/hpx_for_karax). I would like to hear from you guys the pros and cons of these two web frameworks. And, if it doesn't bother you, tell me about the pros and cons of HappyX in comparison with other web frameworks (for example, FastAPI, Django, Vue, React, and so on).