ngx-reactive-variable/Open Source
An Angular library implementing the Reactive Variable pattern — one API over Subjects, BehaviorSubjects and Signals.
- Type
- Open source · Library
- Stack
- Angular, TypeScript, RxJS, Signals

Overview
Angular state often mixes RxJS subjects and signals, each with its own API. ngx-reactive-variable gives you one small primitive that reads like a plain variable but stays reactive.
Read the current value with .value, subscribe or bind with .value$, and switch the underlying type — Subject, Behavioral or Signal — without changing the code that uses it.
Highlights
One API
Same read/write surface whichever reactive primitive is underneath.
Signals ready
Built for Angular 17+ with first-class signal support.
Tiny surface
A single ReactiveVariable factory — easy to adopt incrementally.
Documented
Backed by an in-depth article on the Reactive Variable architecture.