mozilla/task.js
Beautiful concurrency for JavaScript observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
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: 5804
- days_rel: n/a
- days_push: 2715
- n_releases_24m: 0
Adoption not part of the score
1628 stars · 73 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
task.js is a JavaScript library built on ES6 generators that provides a cooperative task scheduler and synchronizable events, enabling non-blocking I/O written in a synchronous style without callbacks. It was an early Mozilla experiment in making asynchronous JavaScript code look and read like sequential code.
Use cases
- write async I/O without callbacks using generators
- run multiple I/O operations concurrently and join their results
- add timeouts to async operations with try/catch error handling
- avoid callback pyramids in pre-async/await JavaScript engines
- coordinate tasks with first-class synchronizable events
When to choose
- you are stuck maintaining legacy JavaScript that must run on engines without async/await
- you want a minimal, educational example of generator-based cooperative scheduling
When to avoid
- you are starting a new project - use native async/await and Promises instead
- you need a maintained library with active support or security updates
- your runtime already supports modern async syntax, which makes task.js redundant
Facets
library · maturity abandoned
concurrency http-client developer-tools developer-tools web-development programming-languages browser cross-platform generators async-io task-scheduler cooperative-concurrency es6 callbacks nodejs javascript
3 sources
- readme: https://github.com/mozilla/task.js · fetched 2026-08-28 · 2a4ef282f092
- homepage: http://taskjs.org · fetched 2026-08-29 · 9ee39d3caf96
- site_page: https://taskjs.org/a-propos · fetched 2026-08-29 · 1f30b041f839
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mozilla/task.js | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem