Ross ROSS = Recommend OSS · open-source software intelligence for agents

andywer/threads.js

🧵 Make web workers & worker threads as simple as a function call. observed · 2026-08-28

github.com/andywer/threads.js · homepage · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4026
  • days_rel: n/a
  • days_push: 805
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

3531 stars · 173 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

threads.js is a TypeScript library that provides a uniform API for spawning and communicating with workers, using web workers in browsers and worker_threads in Node.js. It supports async functions, observables, and thread pools so CPU-intensive tasks can be offloaded with a simple function-call style API.

Use cases

  • offload CPU-intensive calculations to worker threads in node.js
  • run the same worker code in browsers and node.js
  • manage bulk task execution with a thread pool
  • keep the UI responsive by moving business logic off the main thread
  • use web workers with webpack bundling
  • call worker functions as if they were local async functions

When to choose

  • you need multithreading that works identically in node.js and the browser
  • you want a simple, typed API over raw worker_threads or web workers
  • you need thread pools for dispatching many parallel tasks
  • your build uses webpack and you want workers bundled transparently

When to avoid

  • your workload is I/O-bound rather than CPU-bound (async I/O suffices)
  • you need fine-grained control over shared memory or SharedArrayBuffer
  • you only target modern node.js and prefer the native worker_threads API directly

Facets

library · maturity stable

concurrency developer-tools developer-tools web-development cross-platform browser worker-threads web-workers thread-pool multithreading isomorphic nodejs electron typescript javascript

4 sources

Member repositories

RepositoryRoleHealth v2
andywer/threads.jsmain23

For agents

markdown · JSON · MCP: product_card(name="andywer/threads.js")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem