# RxJS — card for AI agents

Reactive programming library for composing async events and data streams in JavaScript.

Category: State and data fetching · npm package `rxjs` · latest version 7.8.2 (checked 2026-11-01)
Install: `npm install rxjs`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## 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.

## What it is
- RxJS is a reactive programming library for JavaScript. The README describes it as "a library for composing asynchronous and event-based programs with Observable values." The GitHub repository was created on 2015-03-15 and is Apache-2.0 licensed.
- There are two versions to keep apart. RxJS 7 is the production `latest` line on npm and is still maintained. The repository's main branch holds RxJS 9, which is prerelease and not yet published. RxJS 9 uses the platform `Observable` where one exists. Its operators are imported as Symbols and called with bracket syntax. Cancellation is built on `AbortSignal`.
- It suits developers who model async work and shared state as streams. A Toptal author used it as a framework-agnostic state layer across React and other front ends. Teams planning ahead for RxJS 9 should know it ships ESM only and comes with separate packages for polyfills, marble testing and migration.

## Caveats
- RxJS 9 is not installable yet: The planned `9.0.0-beta.0` has not been published. The npm `next` tag still points to an older RxJS 8 prerelease, so the README warns against using it to get RxJS 9.
- ESM-only from version 9: RxJS 9 ships no CommonJS build. CommonJS consumers depend on current Node bridging `require()` to the ESM files.
- Node 22.13+ for the planned beta: 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.
- Version 9 knowingly diverges from 7: The maintainers keep the RxJS 7 test corpus as migration evidence, not as a compatibility gate. Lifecycle and compatibility differences are intentional, and a separate `@rxjs/migrate` package exists for the move.
- Verbose, with a lot to learn: Even an advocate flags this. The Toptal author says RxJS can be verbose and wrote helper functions to shorten it. He also says newcomers can be bewildered by subjects, schedulers and multicast observables.

## Numbers (AgentGid data)
- Gid Score: 79.1 (#116 of all tools, 3 of 53 in its category)
- Used in 134 public projects set up for AI coding agents (2.1%)
- Downloads last week: 148,175,398 (as of 2026-11-24), +39.6% over 4 weeks
- GitHub stars: 31,720 (as of 2026-11-24)
- Last push: 2026-11-19

## Often used with
Angular 67.9%, Prettier 69.4%, jsdom 50.0%, TypeScript 99.3%, angular-eslint 41.0%, Vitest 58.2%

## Links
- AgentGid page: https://agentgid.com/tools/rxjs/
- Homepage: https://rxjs.dev
- Repository: https://github.com/reactivex/rxjs
- Source: https://github.com/reactivex/rxjs#readme
- Source: https://github.com/reactivex/rxjs
- Source: https://www.npmjs.com/package/rxjs

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
