3 ms·
I spent part of last Saturday going through the Svelte tutorial, and I really liked the framework. I then was looking at recommendations for building fully fun
by Panther34543 5y ago
I spent part of last Saturday going through the Svelte tutorial, and I really liked the framework.
I then was looking at recommendations for building fully functional web apps, and the official recommendation was to use "Svelte Kit". I began the tutorial for that, and was surprised at how the philosophy of that framework seemed to completely contradict the core Svelte framework. It was extremely odd and unappealing, and killed my newly gained enthusiasm for Svelte.
Has anyone built full web apps without Svelte Kit (previously Sapper)?
- arxpoetica 5y agoYou absolutely 100% do not have to use Svelte Kit. Svelte Kit is just the equivalent of (an opinionated) Next.js, Gatsyby, or Nuxt.js framework. Those frameworks are also incredibly opinionated on purpose.
- Panther34543 5y agoOne of the things I came to enjoy regarding React was that the router was separate and kept the core React API small. I had hoped that something similar was the norm for Svelte, but it was quite clear that the official recommendation was to use SvelteKit. Have you built production apps with just Svelte? Is the tooling and feature set good enough to use Svelte alone in an actual app?
- davidwparker 5y agoI built https://www.listenaddict.com/ https://www.listenaddict.com/ with Sapper. It was a good experience. That said, all of my other apps are using Kit, and I'm finding that experience even nicer. What did you find unappealing about Kit?
- Panther34543 5y agoThis post [0] sums up my general feeling toward SvelteKit. It seemed very opinionated and very restrictive, two qualities which seemed opposite the philosophy of core Svelte. [0]: https://www.reddit.com/r/sveltejs/comments/ni9g5d/svelte_vs_sveltekit/ https://www.reddit.com/r/sveltejs/comments/ni9g5d/svelte_vs_... Do you have concerns with using SvelteKit in production? It's still in Beta last I checked.
- davidwparker 5y agoYes, it's very much in beta! And if that's a concern for you, then I'd stick with Sapper or Elder.js or another. That said, I think the replies covered the concern pretty well. For me, I don't really have any concerns with it. I don't find it very opinionated nor restrictive, but I come from a Rails background where I'm used to convention over configuration, so maybe I'm biased towards reasonable defaults.
- kevinak 5y agoWe've been building Budibase without SK and it's great: https://github.com/Budibase/budibase https://github.com/Budibase/budibase
- Panther34543 5y agoVery cool, thanks for the link.
- panta 5y agoI agree. SvelteKit should not be advertised as the standard way to use svelte imho. Fortunately it’s not necessary to use svelte. I’ve some quite complex apps built using svelte, all without SvelteKit/sapper (I am of the “explicit is better than implicit” school of thought).
- Panther34543 5y agoSo, what do you use for something like a router?
- panta 5y agoI’ve used page.js and some other generic ones. It’s up to you, svelte is not bound to anything in particular.