pshihn/workly
A really simple way to move a function or class to a web worker. 🏋️♀️→ 😄 observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- 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: n/a
- age_days: 3114
- days_rel: n/a
- days_push: 1506
- n_releases_24m: 0
Adoption not part of the score
1875 stars · 34 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity maintenance
concurrency developer-tools web-development frontend developer-tools browser web-worker proxy async threading tiny-library javascript web-server
2 sources
- readme: https://github.com/pshihn/workly · fetched 2026-08-28 · 7e83da6dce57
- registry_npm: https://registry.npmjs.org/workly · fetched 2026-08-29 · 080da6099521
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pshihn/workly | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem