# hashicorp/yamux

Golang connection multiplexing library

Repository: https://github.com/hashicorp/yamux
Canonical: https://ross.abutalabs.com/products/yamux
Language: Go
License: MPL-2.0
License Family: copyleft
Last push: 2026-07-27T06:16:54+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 8, longevity 100
- inputs: {"age_days": 4486, "days_push": 37, "days_rel": 708, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2662, forks 261 (observed 2026-08-28T04:07:08.878097+00:00)

## What it is
Yamux is a Go library for stream-oriented connection multiplexing over reliable transports like TCP or Unix domain sockets. It enables thousands of low-overhead bidirectional logical streams with flow control, keep-alives, and server-side push.

## Use cases
- multiplex many logical streams over a single TCP connection
- build RPC or tunneling protocols in Go
- keep persistent connections alive through load balancers
- implement NAT traversal with bidirectional streams
- add back-pressure and flow control to stream handling

## When to choose
- you need efficient stream multiplexing in a Go application
- you want a simple net.Conn-compatible multiplexer with low overhead
- you need server-initiated streams or push over one connection

## When to avoid
- you need interoperability with SPDY or HTTP/2
- you are not using Go
- you need multiplexing over unreliable transports without built-in reliability

## Facets
- artifact type: library
- maturity: stable
- function: networking, concurrency, middleware
- domain: networking, developer-tools, microservices
- platform: go, cross-platform
- tags: multiplexing, stream-multiplexer, tcp, golang, spdy-inspired

## Member repositories
- hashicorp/yamux (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:08.878097+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:18:21.698283+00:00, confidence not recorded.
  - readme: https://github.com/hashicorp/yamux (fetched 2026-08-28T04:07:08.878097+00:00, sha bd30f582c502)
- Data as of 2026-08-30T08:39:29.467469+00:00.
