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

alewin/useWorker

⚛️ useWorker() - A React Hook for Blocking-Free Background Tasks observed · 2026-08-28

github.com/alewin/useWorker · homepage · JavaScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

68/100

  • Activity 86
  • Release rhythm 28
  • 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: 65.5
  • age_days: 2419
  • days_rel: 542
  • days_push: 88
  • n_releases_24m: 3

Full methodology

Adoption not part of the score

3113 stars · 106 forks observed · 2026-08-28

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

useWorker() is a small React hook library that lets you run expensive JavaScript functions in Web Workers without blocking the UI, using a Promise-based API instead of raw worker message events. It supports TypeScript, timeouts, remote dependencies, transferable objects, and automatic worker cleanup.

Use cases

  • sort large arrays without freezing the UI
  • parse or generate CSV files in the background
  • run CPU-intensive calculations off the main thread
  • use web workers with a simple React hook syntax
  • offload expensive functions from React components
  • run external scripts inside a web worker

When to choose

  • you use React and need non-blocking background tasks
  • you want a Promise-based alternative to raw Web Worker messaging
  • you need a tiny (<3KB) worker abstraction with TypeScript support
  • you want automatic worker lifecycle management with timeouts

When to avoid

  • your project does not use React
  • your worker function needs DOM or window access
  • you need to run the same worker concurrently while it is busy
  • your function returns non-serializable values like functions

Facets

library · maturity maintenance

concurrency developer-tools web-development frontend developer-tools browser react-hook web-workers non-blocking-ui typescript promises javascript react

7 sources

Member repositories

RepositoryRoleHealth v2
alewin/useWorkermain68

For agents

markdown · JSON · MCP: product_card(name="alewin/useWorker")

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