# pshihn/workly

A really simple way to move a function or class to a web worker. 🏋️‍♀️→ 😄

Repository: https://github.com/pshihn/workly
Canonical: https://ross.abutalabs.com/products/workly
Language: JavaScript
License: MIT
License Family: permissive
Topics: webworker, javascript, developer-tools, thread, web-worker, web-workers
Last push: 2022-07-20T02:30:10+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3114, "days_push": 1506, "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 1875, forks 34 (observed 2026-08-28T04:05:47.685209+00:00)

## What it is
Workly is a tiny (~1kB) JavaScript library that lets you move a stand-alone function or class to a web worker with a single proxy call, or expose objects in a worker to the main thread. All calls become asynchronous and work naturally with async/await.

## Use cases
- run a CPU-heavy function in a web worker so the UI doesn't block
- offload busy computation from the main thread with minimal code
- proxy a class so its instances live in a worker thread
- expose a function in a custom worker file to the main thread
- make worker calls feel like normal async function calls

## When to choose
- you want the simplest possible way to offload a function or class to a web worker
- you need a tiny dependency (~1kB gzipped) for browser threading
- your functions are self-contained and don't rely on closure scope or the DOM

## When to avoid
- your functions depend on containing scope, DOM, or shared mutable objects
- you need fine-grained worker pool management or transferable/SharedArrayBuffer performance
- you're targeting non-browser environments without web worker support

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

## Member repositories
- pshihn/workly (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:47.685209+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:14:46.718837+00:00, confidence not recorded.
  - readme: https://github.com/pshihn/workly (fetched 2026-08-28T04:05:47.685209+00:00, sha 7e83da6dce57)
  - registry_npm: https://registry.npmjs.org/workly (fetched 2026-08-29T10:53:46.736051+00:00, sha 080da6099521)
- Data as of 2026-08-30T08:39:29.467469+00:00.
