# developit/workerize

🏗️ Run a module in a Web Worker.

Repository: https://github.com/developit/workerize
Canonical: https://ross.abutalabs.com/products/workerize
Homepage: https://github.com/developit/workerize-loader
Language: JavaScript
License Family: other
Topics: web-worker, web-workers, threading
Last push: 2021-03-04T23:04:53+00:00

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

## Adoption (not part of the score)
Stars 4378, forks 87 (observed 2026-08-28T04:08:46.929219+00:00)

## What it is
Workerize is a tiny (~800 byte) JavaScript library that moves a module into a Web Worker and exposes its exported functions as asynchronous proxies via a built-in RPC layer. It lets you offload blocking or expensive computations to a background thread while calling them naturally with async/await.

## Use cases
- run expensive computations in a web worker without blocking the ui thread
- call worker functions like normal functions using async/await
- offload cpu-intensive loops or parsing to a background thread
- avoid manually writing worker message-passing boilerplate
- create a worker from a function or string of code at runtime

## When to choose
- you want a minimal, dependency-free way to run a module in a web worker
- you prefer runtime worker creation from code strings over build-time bundling
- you want exported functions automatically proxied as async calls

## When to avoid
- you use webpack and want module bundling with dependencies - use workerize-loader instead
- you need shared memory, transferable objects, or advanced worker features
- you need a library under active development - the project has had no releases since 2021

## Facets
- artifact type: library
- maturity: maintenance
- function: rpc, concurrency, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: web-worker, threading, async-proxy, rpc, tiny-library, javascript, nodejs

## Member repositories
- developit/workerize (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:46.929219+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-29T18:21:18.906151+00:00, confidence not recorded.
  - readme: https://github.com/developit/workerize (fetched 2026-08-28T04:08:46.929219+00:00, sha 9cd83b4c81f6)
  - homepage: https://github.com/developit/workerize-loader (fetched 2026-08-29T09:09:47.430373+00:00, sha fd5cb60df086)
  - registry_npm: https://registry.npmjs.org/workerize (fetched 2026-08-29T09:09:47.439974+00:00, sha e75c87f72723)
- Data as of 2026-08-30T08:39:29.467469+00:00.
