/svu
/svu
is a collection of Svelte(Kit) utillities that make developing webapps even more easy and fun.
Read the docs at http://svu.vercel.app
Why
Svelte and SvelteKit make web development easy and fun. No wonder itβs the most loved web framework in the world. Although Svelte, especially in conjunction with SvelteKit is fairly batteries-included, there are a bunch of small things they rightfully leave up to the developer.
This package aims to be a collection of all of those small things that bring a little spark of joy to your next Svelte(Kit) app.
Features
Check out the various parts of the docs:
-
/action
: A huge collection of svelte:actions. -
/app
: App related utilities. -
/client
: Client related stores and utils. -
/components
: Useful components. -
/store
: Custom stores. -
/transition
: Custom transition functions.
Principles
Some design principles:
-
π₯ One dependency
The utilities by themselves are too small to warrant their own package. In the past, I have manually copied them from project to project for exactly that reason.
-
π Batteries Included
svu comes with a actions, stores, utility-functions and more. The real value is in the fact that everything you need is at your fingertips.
-
πͺΆ Small sizes please
The library is fully tree shakeable so it's safe too include even if you need just one utillity. It won't harm your bundle size.
-
β€οΈ Pareto Principle
These utilities are designed to solve 80% of usecases with 20% of the code. It might well be that your specific use-case outgrows the capabilities of a specific svu. No hard feelings! The docs will tell you were to find more elaborate packages, if applicable.
Status
svu started out as a collection of Svelte stuff I often use. svu is currently in alpha, while the API settles.
Feel free to take it for a test drive! Be aware that some svus are not fully production ready, and the API may change in the near future.
If you run into any issues, or have any questions or suggestions, feel free to open an issue on GitHub.