News for hackers. Stuff that matters.
Re:SvelteKit Is in Public Beta by pier25 on Tuesday March 23, 2021 @02:57PM (#26558839)
It's an application framework for Svelte which replaces Sapper.

It uses Vite[1] for development and has been designed from the start to be able to produce static sites a la Gatsby or Next (Sapper wasn't great at that). Svelte Kit runs SSR on Node JS servers like Sapper did, but also on cloud functions and I think even Cloudflare Workers which do not run Node.

[1] https://vitejs.dev/

Re:SvelteKit Is in Public Beta by skybrian on Tuesday March 23, 2021 @03:33PM (#26559337)
That doesn't help. What is Sapper? This is defining web tech in terms of other web tech.
Re:SvelteKit Is in Public Beta by martpie on Tuesday March 23, 2021 @03:57PM (#26559634)
See Svelte as a JavaScript library like React or Angular, which allows you to develop web applications easily.

Now, SvelteKit is bringing the library to the _framework_ level (big big emphasis on "framework", we all have different definitions for what a framework is), which adds easy routing, server-side rendering, optimized JavaScript bundles per page for the client, etc.

Re:SvelteKit Is in Public Beta by brailsafe on Wednesday March 24, 2021 @03:37AM (#26564488)
Bit of a nitpick, but wouldn't the comparison be SvelteKit as similar to Angular, and Svelte similar to React?
Re:SvelteKit Is in Public Beta by pier25 on Tuesday March 23, 2021 @05:23PM (#26560583)
> It's an application framework for Svelte

Doesn't that ring a bell?

Re:SvelteKit Is in Public Beta by amelius on Tuesday March 23, 2021 @04:20PM (#26559919)
Not another framework please. What's wrong with developing libraries and releasing them separately?
Re:SvelteKit Is in Public Beta by qbasic_forever on Tuesday March 23, 2021 @04:25PM (#26559968)
Because to start a project you have to spend days and even months researching libraries, the current best practices, etc. and then glue them all together with some monster build system (webpack, etc.) and pray that one library doesn't update to be incompatible, or that the library maintainer loses interest and maintenance, etc. And then if you look at another project you have to learn everything again because they took an entirely different approach of glueing together libraries.

These frameworks are an opinionated take on project structure meant to save time and effort. Can they build anything and everything with JS? No, and they don't make such promises. Can they build most apps and things people want to build, and with a much faster and simpler setup? Absolutely, yes.

But honestly this isn't the thread to fight the framework vs. library fight. That ship sailed _years_ ago after create-react-app got popular.

Re:SvelteKit Is in Public Beta by adamdusty on Tuesday March 23, 2021 @05:48PM (#26560792)
Isn't that exactly what's happening? Svelte is a library and SvelteKit is a framework built on top of it? I think.
Re:SvelteKit Is in Public Beta by darkhorse13 on Tuesday March 23, 2021 @08:01PM (#26561913)
That's pretty much it, yeah. But on HN, you will always find framework = bad comments.