# josdejong/workerpool

Offload tasks to a pool of workers on node.js and in the browser

Repository: https://github.com/josdejong/workerpool
Canonical: https://ross.abutalabs.com/products/workerpool
Language: JavaScript
License: Apache-2.0
License Family: permissive
Last push: 2026-08-10T23:12:20+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 4506, "days_push": 23, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2308, forks 164 (observed 2026-08-28T04:06:35.859126+00:00)

## What it is
workerpool is a small JavaScript library that implements the thread pool pattern, letting you offload CPU-heavy tasks to a pool of workers on Node.js and in the browser. It provides a promise-based proxy API with task queuing, cancellation, timeouts, and crashed-worker handling.

## Use cases
- offload cpu-intensive computations to web workers
- run heavy tasks without blocking the node.js event loop
- manage a pool of worker_threads or child processes
- cancel or timeout long-running background tasks
- parallelize data processing in the browser without freezing the ui

## When to choose
- you need CPU-bound work offloaded from the main thread in Node.js or the browser
- you want one isomorphic API covering web workers, worker_threads, and child processes
- you need task queuing, cancellation, timeouts, and crash recovery in a tiny (~9 kB) dependency

## When to avoid
- your workload is I/O-bound rather than CPU-bound
- you need GPU or native multithreading with shared memory
- you need a general-purpose job scheduler across machines rather than in-process workers

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, developer-tools
- domain: developer-tools, web-development, cross-platform
- platform: browser
- tags: worker-pool, web-workers, worker-threads, thread-pool, promise-based, isomorphic, task-queue, nodejs, javascript

## Member repositories
- josdejong/workerpool (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.859126+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:39:37.459445+00:00, confidence not recorded.
  - readme: https://github.com/josdejong/workerpool (fetched 2026-08-28T04:06:35.859126+00:00, sha 9b2510360fcc)
  - registry_npm: https://registry.npmjs.org/workerpool (fetched 2026-08-29T10:20:08.773556+00:00, sha 9e140ddedd57)
- Data as of 2026-08-30T08:39:29.467469+00:00.
