Web workers
Partytown, Web-worker & Run are useful libraries.
Links
- When should you be using Web Workers? (2019)
- Comlink - Makes WebWorkers enjoyable. Tiny library, that removes the mental barrier of thinking about postMessage and hides the fact that you are working with workers.
- Threading the web with module workers (2019)
- Threads.js - Make web workers & worker threads as simple as a function call. (Web)
- Fully type-safe Web Workers with zero boilerplate
- web-worker - Consistent Web Workers in browser and Node.
- workerize-loader - A webpack loader that moves a module and its dependencies into a Web Worker, automatically reflecting exported functions as asynchronous proxies.
- Catiline.js - JavaScript library to take the pain out of web workers. (Web)
- The State Of Web Workers In 2021
- esbuild-plugin-inline-worker - Esbuild loader for inline Web Workers.
- Partytown - Relocate resource intensive 3rd-party scripts off of the main thread and into a web worker. (Web) (Article) (Lobsters) (Docs) (HN)
- main-thread-scheduling - Consistently responsive apps while staying on the main thread.
- AMP CDN Worker - Source code for the web worker that powers the AMP project's CDN server. This web worker runs on Cloudflare Workers.
- react-hooks-worker - React custom hooks for web workers.
- Web Workers API (HN)
- Full Preact app rendering in a Web Worker
- Workly - Simple way to move a stand-alone function/class to a worker thread.
- How to stop synchronous code in a web worker? (2022)
- Typed-Worker - Type-safe and Promisified API for Web Worker and Iframe.
- Framebuffer Worker - Draw on a Canvas from a Web Worker.
- Run - Run user-provided code in a Web Worker.
- How Web Workers Work in JavaScript – With a Practical JS Example (2022)
- Consider Animating Your Canvas in a Web Worker (2023) (Reddit)
- Via.js - Write JS code that runs in a different context. E.g. use the DOM in a Web Worker.
- Is it Worker? - Allows any developer to test what's available and what's not in Web Workers.
- Is postMessage slow? (2019)
- coincident - Atomics based Proxy to simplify, and synchronize, Worker related tasks.
- Thread - Type safe multi-threading made easier.
- threads-es - Modern, zero-dependency WebWorker abstraction.