developit/web-worker
Consistent Web Workers in browser and Node. observed · 2026-08-28
Health v2 · maintenance only
36/100
- Activity 4
- Release rhythm 40
- 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: 0.0
- age_days: 2446
- days_rel: 579
- days_push: 579
- n_releases_24m: 3
Adoption not part of the score
1175 stars · 57 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small npm library that provides a consistent Web Worker API across browsers and Node.js, implementing browser-style Workers on top of Node's worker_threads. In the browser it simply aliases the native Worker, so the same worker code runs in both environments.
Use cases
- run web workers in node
- write worker code that works in browser and node
- use module workers in node
- share worker code between frontend and backend
- offload cpu-heavy work to a background thread in node
- test browser worker code in node
When to choose
- you need the same Worker-based code to run in both Node.js and browsers
- you want DOM-style events and onmessage handlers in Node workers
- you need Module Workers ({type:'module'}) support in Node
- you're building an isomorphic npm module that spawns workers
When to avoid
- you only target browsers and can use the native Worker directly
- you need deep control over Node worker_threads features like SharedArrayBuffer transfers or resource limits
- your build tooling or test framework can't resolve worker URLs relative to modules
Facets
library · maturity stable
concurrency developer-tools developer-tools cross-platform web-development backend browser web-workers worker-threads isomorphic multithreading module-workers nodejs javascript
2 sources
- readme: https://github.com/developit/web-worker · fetched 2026-08-28 · 3648f3b8b9c3
- registry_npm: https://registry.npmjs.org/web-worker · fetched 2026-08-29 · 5dafce2374ab
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| developit/web-worker | main | 36 |
For agents
markdown · JSON · MCP: product_card(name="developit/web-worker")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem