- Notifications
You must be signed in to change notification settings - Fork0
snuffyDev/svelte-worker-store
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
⚡ Turbocharge your app with multithreaded Svelte Stores.
Demo/Documentation Site:https://svelte-worker-store.vercel.app/
What is this?
svelte-worker-store is a small set of Svelte stores that enable you to use Web Workers to process things off the main thread.
Based on another library of mine (nanothreads),svelte-worker-store is a tiny wrapper around an already tiny library.
- Simple and easy to use 💯
- Handle resource-heavy workloads without blocking your app! 😎
- Tiny bundle size

derived,pooledandchannelstores
npm install svelte-worker-store pnpm install svelte-worker-store
<script>// TODO: more examples// Creates a store with a single worker// and limits concurrent calls to 2.conststore=channel(add,2);consthandleClick= ()=>store.send(1,3);</script><p>Output: {$store}</p><buttonon:click={handleClick}>Add numbers</button>
About
⚡ Turbocharge your apps with multithreaded Svelte stores.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.