# wilk/microjob

A tiny wrapper for turning Node.js worker threads into easy-to-use routines for heavy CPU loads.

Repository: https://github.com/wilk/microjob
Canonical: https://ross.abutalabs.com/products/microjob
Homepage: https://wilk.github.io/microjob/
Language: TypeScript
License: MIT
License Family: permissive
Topics: thread, nodejs, threading, multithreading, jobs
Last push: 2023-01-04T13:11:29+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2929, "days_push": 1337, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2005, forks 46 (observed 2026-08-28T04:06:04.700556+00:00)

## What it is
Microjob is a tiny TypeScript library that wraps Node.js worker_threads into a simple promise-based API for running CPU-bound work in background threads. It manages a worker pool with auto self-healing and supports both sync and async anonymous functions as jobs.

## Use cases
- run heavy CPU computations off the Node.js event loop
- execute anonymous functions in worker threads
- parallelize CPU-bound tasks with a worker pool
- avoid blocking the main thread during intensive loops
- offload data crunching in a Node.js backend

## When to choose
- you need simple, promise-based multithreading for CPU-bound work in Node.js
- you want a worker pool without managing worker_threads manually
- your jobs are short-lived anonymous functions

## When to avoid
- your workload is I/O-bound rather than CPU-bound
- you need long-lived threads or shared state between workers
- you need to pass complex runtime context or non-serializable data to jobs
- you need a library with frequent updates or broad Node.js version support beyond 12+

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency, developer-tools
- domain: developer-tools, backend, performance
- platform: -
- tags: worker-threads, multithreading, worker-pool, cpu-bound, typescript, nodejs, javascript

## Member repositories
- wilk/microjob (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:04.700556+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-30T03:01:35.298952+00:00, confidence not recorded.
  - readme: https://github.com/wilk/microjob (fetched 2026-08-28T04:06:04.700556+00:00, sha 338f9d1cd701)
  - homepage: https://wilk.github.io/microjob/ (fetched 2026-08-29T10:41:38.909021+00:00, sha e703f149a3b9)
  - registry_npm: https://registry.npmjs.org/microjob (fetched 2026-08-29T10:41:38.917960+00:00, sha ec41f54c1cfe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
