# js-csp/js-csp

CSP channels for Javascript (like Clojurescript's core.async, or Go)

Repository: https://github.com/js-csp/js-csp
Canonical: https://ross.abutalabs.com/products/js-csp
Language: JavaScript
License Family: other
Last push: 2022-07-20T03:14:27+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": 4599, "days_push": 1505, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2319, forks 119 (observed 2026-08-28T04:06:37.029087+00:00)

## What it is
js-csp is a JavaScript library implementing communicating sequential processes (CSP), providing Go-style channels and goroutines via generators. It is a close port of ClojureScript's core.async, using yield-based processes instead of macros.

## Use cases
- coordinate concurrent tasks with channels in JavaScript
- write Go-style producer/consumer pipelines in Node.js
- replace callback-based async code with CSP channels
- port core.async or Go channel patterns to JavaScript
- synchronize worker-like processes using put/take operations

## When to choose
- you want CSP channels in JavaScript similar to ClojureScript core.async or Go
- you prefer generator-based async coordination over promises or callbacks
- you need buffered/unbuffered channels, timeouts, and process spawning in JS

## When to avoid
- you need a actively maintained library with ongoing support
- you are targeting modern async/await codebases where async iterators or RxJS fit better
- you need multiplexing, pub/sub, or deadlock detection, which are underdeveloped

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency
- domain: developer-tools, programming-languages
- platform: browser
- tags: csp, channels, core-async, generators, go-style-concurrency, nodejs, javascript

## Member repositories
- js-csp/js-csp (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:37.029087+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-30T02:38:51.477060+00:00, confidence not recorded.
  - readme: https://github.com/js-csp/js-csp (fetched 2026-08-28T04:06:37.029087+00:00, sha 81e831da1dc0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
