Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison with Nitro #97

Open
brillout opened this issue Sep 15, 2023 · 2 comments
Open

Comparison with Nitro #97

brillout opened this issue Sep 15, 2023 · 2 comments

Comments

@brillout
Copy link
Member

Nitro is getting a lot of hype. I'm thinking HatTip could ride on Nitro's wave by telling users how it compares itself with Nitro.

@redbar0n
Copy link
Contributor

redbar0n commented Jan 5, 2024

FWIW

Nitro is the universal backend that powers a lot of the magic in Nuxt. You can think of it as everything except for the rendering layer of your application (everything except for Vue).

h3 is the HTTP framework that powers Nitro. Nitro layers on file-based routing, asset handling, storage abstraction, and many more features to turn it into a very powerful framework.

https://masteringnuxt.com/nuxt3/lessons/5-16-understanding-nitro

So to me it seems like HatTip would compare to H3.

Nitro would compare to Vike, I guess. Although I couldn't figure out if Nitro is based on Vite or not (but Nuxt 3 is, so presumably yes... but there is a vite-plugin-nitro needed...). Furthermore, Nitro is focused on API endpoints, whereas Vike isn't.

@redbar0n
Copy link
Contributor

redbar0n commented Jan 10, 2024

Maybe Nitro is not a substitute for Vike, since here's an example using Nitro with Vike...:

turbo-nitro-vike-example

Though I came across this...:

Servite - "A vite plugin for React SSR / SSG / CSR / Islands. Powered by nitro."

Apparently, Vite plugs into Nitro, which is the web server framework (on top of H3):

"Vite actually fits into one of the routing handlers into Nitro. Nitro owns the server both during development and production, and then Vite kind of plugs in. Like so for example the Static Server doesn't need Vite, but the client servers do." -- according to Nikhil Saraf, author of Vinxi (built on top of Nitro)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants