@dandre3000/is-main-thread

Check if javascript code is running in the main thread or in a worker thread. This module is compatible with web browsers, bun, deno and node.js.

@cheprasov/worker-thread

The WorkerThread wraps a Web Worker with a Promise, also the class creates a worker script on the fly (without having to create separate worker files). You can 'inline' your worker function in the same js file as main logic.

observable-webworker

Simple API for using [web workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) with [RxJS](https://rxjs-dev.firebaseapp.com/guide/overview) observables