RxJS helps you build asynchronous and event-driven logic by composing Observable streams. It targets browsers and JavaScript runtimes such as Node, Deno, and Bun.
Overview
RxJS is a JavaScript library centered on Observable values for reactive, event-based, and asynchronous programs. Application code chains operators and factories to coordinate callbacks, events, and timed workflows in a composable style.
The in-development next generation aligns with the web platform Observable where available and supplies a conforming fallback when the platform lacks one. Operators are exposed as module-owned Symbols rather than ad hoc string methods on native types, and cancellation ties into AbortSignal and subscriber lifecycle rules.
The published line on npm remains the maintained production track, while newer work ships ESM-only JavaScript with documented environment support across current browsers, Node, Deno, Bun, and bundlers. Companion packages cover optional polyfills, testing marbles, and migration tooling for upgrades.
Documentation and API references accompany the core package. The older major release emphasized a smaller bundle, stricter typings, and more uniform operator APIs compared with earlier designs.
Key features
- Observable streams for async and events
- Composable operators and factories
- Platform Observable with conditional polyfill
- Symbol-based operator contracts
- AbortSignal-oriented cancellation
- ESM-only next-generation builds
- Virtual-time testing utilities package
- Migration tooling for major upgrades
Use cases
- Coordinate UI events and HTTP calls
- Model push-based data pipelines
- Test timed streams with marble diagrams
- Share reactive patterns across JS runtimes