# JakeWharton/RxRelay

RxJava types that are both an Observable and a Consumer.

Repository: https://github.com/JakeWharton/RxRelay
Canonical: https://ross.abutalabs.com/products/rxrelay
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2026-08-25T13:08:48+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 3900, "days_push": 8, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2451, forks 126 (observed 2026-08-28T04:06:52.935759+00:00)

## What it is
RxRelay provides RxJava types that act as both an Observable and a Consumer, essentially Subjects without terminal events (onComplete/onError). This lets developers bridge non-reactive APIs into Rx streams without risking accidental termination of the stream.

## Use cases
- bridge non-Rx APIs into RxJava streams
- replace Subjects to avoid accidental onComplete/onError
- emit events to multiple subscribers without terminal state
- buffer and replay events to late subscribers
- build event buses in Android apps with RxJava

## When to choose
- you use RxJava and need a stateless-safe Subject alternative
- you want to adapt callback-based APIs into reactive streams
- you need Publish/Behavior/Replay semantics without terminal events

## When to avoid
- your project no longer uses RxJava (e.g., migrated to Kotlin coroutines/Flow)
- you need terminal event semantics of Subjects
- you need an AsyncSubject-like behavior, which Relays cannot support

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency, developer-tools
- domain: developer-tools, android-tools
- platform: jvm
- tags: rxjava, reactive-streams, subjects, observables, event-bus, reactive-programming, android

## Member repositories
- JakeWharton/RxRelay (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:52.935759+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:30:11.480251+00:00, confidence not recorded.
  - readme: https://github.com/JakeWharton/RxRelay (fetched 2026-08-28T04:06:52.935759+00:00, sha 3bd692ed0dd1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
