RxJS
Reactive programming library for composing async events and data streams in JavaScript.
2. Maintained
github.com/reactivex/rxjs3. Used by agents' projects
Dependency in 134 public GitHub projects set up for AI coding agents that we scanned (2.1%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What RxJS does
The RxJS repository now holds a rewrite for RxJS 9 that runs on the browser's native <code>Observable</code> and exposes operators as Symbols, while the package you get from npm today is still the RxJS 7 line.
RxJS popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How RxJS is used
- RxJS is a dependency in 134 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.8% of the 4,867 JavaScript/TypeScript ones), #3 of 53 in state and data fetching.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 272; those are left out of every share on this page.
- Projects that use it most often also use Angular (67.9%), Prettier (69.4%), jsdom (50.0%).
By coding agent
Often used with
RxJS in practice
Strengths
The README says RxJS 9 uses the web platform's own <code>Observable</code> when the runtime has one. It installs a conforming fallback only when needed, and that fallback ships as a separate <code>@rxjs/observable-polyfill</code> package.
In RxJS 9, operators are module-owned Symbols. You call them as <code>observable[map](fn)</code>, so the platform's own <code>observable.map</code> stays a separate contract.
The README says every supported environment gets the same ESM files. Chrome, Firefox, Safari, Deno, Bun and Webpack 5 are listed as blocking test targets.
Projects on the current npm release are not left behind. The README says RxJS 7 remains the production line and continues to receive maintenance while RxJS 9 is in development.
Watch out for
The planned <code>9.0.0-beta.0</code> has not been published. The npm <code>next</code> tag still points to an older RxJS 8 prerelease, so the README warns against using it to get RxJS 9.
RxJS 9 ships no CommonJS build. CommonJS consumers depend on current Node bridging <code>require()</code> to the ESM files.
The planned beta supports Node 22.13+ and Node 24 as blocking lanes. Node 26 is in an advisory lane. No older Node versions are listed.
Preview of the planned RxJS 9 API (not yet on npm)
import { ColdObservable } from 'rxjs';
import { map } from 'rxjs/map';
const source = new ColdObservable<number>((subscriber) => {
subscriber.next(1);
subscriber.next(2);
subscriber.complete();
});
source[map]((value) => value * 2).subscribe(console.log);More about RxJS
Packages around it
- @angular: Angular framework
- prettier: Code formatter
- jsdom: DOM emulation for tests
- typescript: Typed JavaScript compiler
- angular-eslint: ESLint rules for Angular
- vitest: Test runner
More in State and data fetching
Alternatives
RxJS This page
Get started
Install it.
npm install rxjsRules for your agent
## RxJS
- The npm `latest` line is RxJS 7. Do not apply the RxJS 9 API to a project unless it actually has RxJS 9 installed.
- Do not install RxJS 9 through npm's `next` tag. It still points to the earlier RxJS 8 prerelease, and `9.0.0-beta.0` is not published yet.
- In RxJS 9, import each operator Symbol from its own module, for example `import { map } from 'rxjs/map'`, and call it with bracket syntax: `source[map](fn)`.
- In RxJS 9, do not confuse `observable.map(project)` (the platform contract) with `observable[map](project)` (the RxJS contract).
- In RxJS 9, use `ColdObservable` when each direct subscription must create its own producer.
- RxJS 9 publishes ESM only and cancellation is built on `AbortSignal`. Do not look for a CommonJS build.
- When moving from RxJS 7, follow the RxJS 7 migration guide and the `@rxjs/migrate` package. Do not assume behavior is identical.