# tylertreat/chan

Pure C implementation of Go channels.

Repository: https://github.com/tylertreat/chan
Canonical: https://ross.abutalabs.com/products/chan
Language: Shell
License: Apache-2.0
License Family: permissive
Topics: synchronization, channels, golang, c, csp
Last push: 2020-05-07T15:20:12+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4399, "days_push": 2309, "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 1427, forks 118 (observed 2026-08-28T04:04:41.790200+00:00)

## What it is
A pure C library that implements Go-style channels (buffered and unbuffered) on top of pthreads, providing CSP-style communication and synchronization primitives. It supports sending, receiving, closing channels, and select-like operations.

## Use cases
- implement go-style channels in c
- synchronize pthreads with message passing
- build producer-consumer pipelines in c
- csp-style concurrency in c programs
- pass messages between threads without manual locks

## When to choose
- you want Go channel semantics in a C codebase
- you need simple thread-safe message passing without hand-rolling mutexes and condition variables
- you prefer a small, dependency-free C library

## When to avoid
- you need async runtimes or goroutine scheduling, not just channels
- your project is C++ and you'd rather use standard primitives or a C++ library
- you need actively maintained software with recent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency
- domain: developer-tools, programming-languages
- platform: c, cross-platform
- tags: go-channels, csp, synchronization, pthreads, linux, macos

## Member repositories
- tylertreat/chan (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:41.790200+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-30T04:37:24.112805+00:00, confidence not recorded.
  - readme: https://github.com/tylertreat/chan (fetched 2026-08-28T04:04:41.790200+00:00, sha b8910ba99066)
- Data as of 2026-08-30T08:39:29.467469+00:00.
