RxJS

The standard library for composing asynchronous and event-based programs using observable sequences

Library
npm
v7.8.2
31,702 stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
79 /100 Good
Development Activity 68
Maintenance 72
Community 76
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
82 /100 Excellent
Architecture 90
Code Quality 85
Innovation 88
Learning Curve 65

RxJS (Reactive Extensions for JavaScript) is the reference implementation of the ReactiveX pattern for JavaScript and TypeScript. It models any source of asynchronous data — DOM events, HTTP responses, WebSocket messages, timers, or plain arrays — as an Observable, then lets you compose that stream with a large, consistent library of pipeable operators (map, filter, mergeMap, debounceTime, and roughly a hundred more) rather than hand-rolling callback or Promise chains.

It underpins reactive state and async orchestration in Angular (which ships it as a first-class dependency), and is widely adopted standalone in React, Vue, Node.js backends, and any codebase that needs precise control over cancellation, backpressure, timing, and multicasting of async event sequences.

What You Get

  • The Observable/Observer/Subscription primitives plus Subject variants (Subject, BehaviorSubject, ReplaySubject, AsyncSubject) for multicasting values to many consumers
  • Around 100 pipeable operators covering transformation (map, scan, mergeMap), filtering (filter, debounceTime, distinctUntilChanged), combination (combineLatest, forkJoin, merge, zip), and error handling (catchError, retry)
  • A pluggable Scheduler system (asap, async, animationFrame, queue, virtual time) for controlling exactly when and where work executes, including deterministic testing via TestScheduler and marble diagrams
  • Creation functions (of, from, interval, fromEvent, fromFetch, timer) that turn events, promises, iterables, and timers into Observables
  • First-class TypeScript types shipped in the package itself, plus ajax/fetch/testing/webSocket sub-path exports for scoped imports

Common Use Cases

  • Debouncing and cancelling in-flight search-as-you-type or autocomplete HTTP requests
  • Coordinating complex async workflows in Angular apps (HTTP, forms, router events) via the framework’s built-in RxJS integration
  • Multicasting a single WebSocket or SSE connection to multiple UI subscribers without re-opening it per consumer
  • Modeling drag-and-drop, gesture, and other multi-event DOM interactions as composable streams instead of nested event listeners
  • Orchestrating retry/backoff and timeout logic around flaky network calls with built-in operators instead of custom state machines

Under The Hood

Architecture — RxJS layers on top of a small core (Observable, Subscriber, Subscription) that governs subscription lifecycle and teardown; Subject and its variants (BehaviorSubject, ReplaySubject, AsyncSubject) extend Observable to add multicasting, and roughly 100 pipeable operators (src/internal/operators/*.ts) are built as pure higher-order functions composed via .pipe() rather than instance methods, keeping the core surface small and tree-shakeable. A dedicated Scheduler abstraction (Scheduler.ts, scheduler/AsyncScheduler.ts, QueueScheduler.ts, AnimationFrameScheduler.ts, VirtualTimeScheduler.ts) decouples what runs from when it runs, which is also what enables deterministic marble-diagram testing via TestScheduler.

Tech Stack — The codebase is ~91% TypeScript, built through tsc project references into separate CJS, ESM, and .d.ts type outputs (compiled by tsconfig.cjs.json/tsconfig.esm.json/tsconfig.types.json), managed as an Nx-orchestrated Yarn workspace monorepo (packages/rxjs, packages/observable, apps/rxjs.dev docs site). Dependency-cruiser enforces the internal module boundaries (no accidental circular imports between operators and core), and the package ships dual CJS/ESM exports plus sub-path exports for /ajax, /fetch, /operators, /testing, and /webSocket.

Code Quality — The test suite is extensive: 163 spec files under spec/, including one spec per operator (98 operator specs alone) using Mocha, Chai, and Sinon, plus a separate spec-dtslint suite that type-checks the public API surface at the type level. ESLint is configured project-wide, and every operator source file follows the same shape — typed signature, exhaustive JSDoc with a runnable example, then a small operate-based implementation — which keeps the ~100-operator surface consistent despite its size.

API Design — The pipeable-operator model (source$.pipe(map(...), filter(...), catchError(...))) is RxJS’s signature ergonomic choice: operators are plain functions, so consumers only import the ones they use and tree-shaking removes the rest, and since v7.2 all operators are importable directly from the rxjs root instead of a separate rxjs/operators path. Every operator’s JSDoc includes a runnable usage example and links to related operators, and the marble-diagram testing utilities (TestScheduler, cold()/hot() helpers) give consumers the same tooling the library’s own test suite uses, which is unusually generous for a library of this scope.

Used by 53 apps in this directory

Go
71%
Other

Convoy

Developer Tools · Devops

2,883

Convoy is an open-source, cloud-native webhooks gateway that ingests events over HTTP or straight from Kafka, SQS, Google Pub/Sub, and RabbitMQ, then reliably delivers them to subscriber endpoints with signed payloads, automatic retries, circuit breaking, and JavaScript-based transformations.

View details
88
Repo Health
81
Technical
66
Dependency
Built with
Go 71%
TypeScript 15%
HTML 12%
Updated 1 weeks ago
Rust
67%
Other

DefGuard

Authentication · Networking · Security

2,882

Self-hosted secure remote access that unifies WireGuard VPN, identity management, and connection-level MFA in one open-source platform.

View details
86
Repo Health
82
Technical
71
Dependency
Built with
Rust 67%
TypeScript 30%
Updated 6 days ago
TypeScript
95%
AGPL 3.0

Docmost

CMS · Collaboration · Note Taking

22,079

Self-hosted collaborative wiki and knowledge base with real-time editing, diagrams, AI assistance, and enterprise access controls — a modern alternative to Confluence and Notion.

View details
89
Repo Health
70
Technical
66
Dependency
Built with
TypeScript 95%
Updated 5 days ago
C#
42%
MIT

FeatBit

Developer Tools · Devops

1,946

Self-hosted, enterprise-grade feature flag platform for safe, targeted, and data-driven feature releases.

View details
90
Repo Health
78
Technical
69
Dependency
Built with
C# 42%
TypeScript 41%
Updated 5 days ago
TypeScript
54%
MIT

FormBee

Forms Surveys

769

A self-hostable form backend that accepts HTML form submissions and routes them to email, Telegram, Discord, webhooks, and automation platforms — without writing any server-side code.

View details
41
Repo Health
48
Technical
70
Dependency
Built with
TypeScript 54%
SCSS 25%
HTML 19%
Updated 1 months ago
TypeScript
79%
AGPL 3.0

Ghostfolio

Invoicing Finance

9,565

Track your stocks, ETFs, and crypto with a privacy-first, self-hostable wealth management platform built for data-driven investors.

View details
93
Repo Health
79
Technical
67
Dependency
Built with
TypeScript 79%
HTML 19%
Updated 6 days ago
Rust
68%
Other

GitButler

AI Development · Developer Tools · Devops

21,841

Git, but better — a modern version control client with stacked branches, parallel workflows, unlimited undo, and first-class support for AI-powered development.

View details
89
Repo Health
84
Technical
66
Dependency
Built with
Rust 68%
TypeScript 20%
Updated 5 days ago
TypeScript
47%
AGPL 3.0

Grafana

Analytics · Monitoring

77,469

The open-source observability platform that unifies metrics, logs, and traces from any data source into dynamic, queryable dashboards.

View details
95
Repo Health
91
Technical
63
Dependency
Built with
TypeScript 47%
Go 47%
Updated 5 days ago
Go
69%
Other

Hanko

Authentication · Security

9,045

Open source, self-hostable authentication platform with passkeys, SAML SSO, and OAuth — the privacy-first alternative to Auth0 and Clerk.

View details
90
Repo Health
81
Technical
66
Dependency
Built with
Go 69%
TypeScript 27%
Updated 6 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers