tj/co
The ultimate generator based flow-control goodness for nodejs (supports thunks, promises, etc) observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4836
- days_rel: n/a
- days_push: 2087
- n_releases_24m: 0
Adoption not part of the score
11841 stars · 778 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
co is a JavaScript library for Node.js and the browser that provides generator-based async control flow, letting you write non-blocking code using yield with promises, thunks, arrays, objects, and generators. It was a precursor to async/await and returns promises from co() calls.
Use cases
- write async nodejs code with generators instead of callbacks
- run multiple promises in parallel with yield on arrays or objects
- wrap generator functions into promise-returning functions
- handle async errors with try/catch in generator code
- support thunks and promises in a unified async flow
When to choose
- maintaining legacy Node.js codebases that predate async/await
- running on very old Node versions or browsers without async/await support
- you prefer generator-based coroutine style over promise chains
When to avoid
- writing new code on modern Node.js or browsers with native async/await
- you need actively developed async tooling
- your environment lacks generator support and you don't want transpilation
Facets
library · maturity maintenance
concurrency developer-tools developer-tools backend browser async-control-flow generators coroutines promises thunks legacy-async algorithms nodejs javascript
2 sources
- readme: https://github.com/tj/co · fetched 2026-08-28 · 9f2a46cce77c
- registry_npm: https://registry.npmjs.org/co · fetched 2026-08-29 · 10379d7fd784
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tj/co | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem