Svelte and SvelteKit Resources
November 24, 2021 by Steven Ng
Near the end of 2019, I was looking to wean myself off AngularJS (=v1), and I was looking at Angular (>= v2), React and Vue. I was leaning heavily toward Vue until I stumbled on Rich Harris' Rethinking Reactivity video.
Watching that video was an eye-opener. Svelte was organized in a way that matched how I think. Svelte also produced compact assets and had good performance. It had my attention.
Fast forward a couple of years, and I've built a bunch of stuff in Svelte, and now SvelteKit, which is basically Svelte on steroids.
For me, SvelteKit took Svelte to the next level. I had moved from Ruby on Rails to Express, and it was a bit of a chore managing front end and back end code. SvelteKit gives you a front end and a back end. The file based routing on the front end and back end transformed my developer experience. Any time I need to do a proof of concept for an API, my go-to is SvelteKit, since I can produce results very quickly.
As of the end of 2021, Svelte is still one of the smaller web frameworks out there, so finding resources can be a little harder. So this is why I wrote this article, which will be updated regularly.
Note that this is a curated list of stuff that I know to be at least decent. It is not meant to be an exhaustive list.
Official Sites
- Svelte
- Svelte REPL - a great way to try coding for Svelte without setting up a development environment
- SvelteKit
Resources for Newbies
- Reddit - /r/sveltejs
- Made with Svelte
- Svelte Society
- Real World Example App
Routing for Svelte
If you're not using SvelteKit and need routing for Svelte, these ones are good:
Interesting Components
These are some interesting components, but I have not necessarily used any of them. Your mileage will vary.
svelte-gantt
- Gantt chartsspaper
- PaperCSS components for Svelte - makes your site/app look like XKCDsvelte-infinitegrid
- An infinite grid for Svelte
Development Resources
svelte-preprocess
- This is essential if you want to use Coffeescript, SASS, SCSS, etc.mdsvex
- Lets you use Markdown with Svelte- Svelte Society Cheatsheet
- Vite documentation - comes in handy for SvelteKit users when encountering build issues
My Saved REPLs
Some sample code I've done in the Svelte REPL.
- Vditor example - An example of using Vditor (a wysiwyg Markdown editor with a UI similar to Typora) with Svelte
My Svelte Components
I have a number of NPMs published, but they're not all SvelteKit ready, and I'm in the process of consolidating them into a single SvelteKit package. Since that's being done when I have spare time, it will happen when it happens. Hopefully sooner than later, though.