SvelteKit, NextJS, or Pure Vite for My Community Platform?
Asked by
far-flung
I'm building a community platform that needs discussions, a post feed, comments, webinars (using WebRTC), and notifications. Since I can't use something like Discourse due to customization issues (I need Stripe, Supabase, and my existing Fastify backend), I'm considering my tech stack options. I have experience with both Svelte and React, particularly with their respective meta-frameworks, but I'm not familiar with NextJS yet. My main concern is whether to go server-side rendering (SSR) or single-page application (SPA). On one hand, since I'm mainly dealing with a CRUD app where the complexity comes from WebRTC on the client side, I don't see the need for SSR. On the other hand, I worry that SvelteKit discourages SPA approaches, which might complicate things for me. Should I go with React and NextJS instead? Or perhaps just pure Vite with a router? I'm looking for advice to help me decide how to move forward!
Answers
Iโd recommend SvelteKit if you're building something straightforward. Trying to customize Vite to mimic NextJS or SvelteKit can become overly complex. For most applications, SvelteKit feels like the way to go, but that's just my opinion.
Reply to this answer
If you're open to Svelte, I think going with SvelteKit and opting for SSR could offer a good blend of performance and developer experience. However, if you find React to be more mainstream, NextJS might be a better option for leveraging full framework capabilities.
Reply to this answer
Honestly, just go with Vite and pick the framework you like best. React, Svelte, Vue, and others all work well for SPAs, and people have been doing it successfully for years. So, it really comes down to which one you are most comfortable with.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions