Showing 1-20 of 199,364 packages
main-thread apis
main-thread apis
TypeScript definitions for @surma/rollup-plugin-off-main-thread
main-thread apis
Relocate resource intensive third-party scripts off of the main thread and into a web worker.
Stream variables beetween 2 JavaScript threads (client/server, ipc, worker/main thread).
Run long effects without blocking the main thread
Defer non-critical tasks to run when the main thread is idle
Generic kysely dialect for SQLite, support run in main thread or worker
Use Rollup with workers and ES6 modules today.
load web-worker if in main thread
Lynx main thread demo
Fast and consistently responsive apps using a single function call
Allows RPC from the main thread to a background worker thread (Of any kind), using ES6 classes.
Block the main thread for a given amount of time
A utility function to yield to the main thread in JavaScript
A main-thread-friendly, no-dependency SQLite library for Node.js using worker threads.
Pass objects with async methods between WebWorkers and the main thread easily
Improve [INP (Interaction to Next Paint)](https://web.dev/articles/inp) by allowing the browser to paint before blocking the main thread. You can test how it works in the [live demo](https://await-interaction-response.vercel.app/).
This module allows to allocate and deallocate ArrayBuffers without blocking the main thread.