{"library":"tiny-worker","type":"library","category":null,"description":"tiny-worker is a lightweight JavaScript library that provides a Web Worker-like API for Node.js environments, allowing developers to offload CPU-intensive tasks to separate threads, similar to the browser's `Worker` interface. It leverages Node.js's `child_process.fork()` module internally, offering a familiar `onmessage`, `postMessage`, and `terminate` API. The current stable version is 2.3.0, with its release cadence historically driven by feature enhancements and bug resolutions rather than a fixed schedule. A key differentiator is its flexibility in module loading within worker scripts, supporting Node.js `require()` by default and offering an `esm: true` option to enable ES6 `import`/`export` syntax, catering to diverse project setups. It is specifically designed for server-side use cases to improve application responsiveness by preventing the main event loop from being blocked by computationally intensive operations.","language":"javascript","status":"active","version":"2.3.0","tags":["javascript","web","worker","ps","webworker"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tiny-worker","imports":["import { Worker } from 'tiny-worker';","import { Worker } from 'tiny-worker'; Worker.setRange(min, max);","import { someHelper } from './helper.js';"]},{"cmd":"yarn add tiny-worker","imports":[]},{"cmd":"pnpm add tiny-worker","imports":[]}],"homepage":null,"github":"https://github.com/avoidwork/tiny-worker","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tiny-worker","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/tiny-worker/compatibility"}}