gRPC-Web-Rx is a TypeScript library that integrates gRPC-Web with RxJS, providing a convenience `from` operator to wrap gRPC unary and server streaming calls as Observables. It supports automatic retries with exponential backoff and custom retry policies. Current stable version is 0.6.14, released on npm. This library is maintained by Wisetime. Key differentiators: it offers a simple RxJS-based abstraction over gRPC-Web, including a `retry` operator with `beforeRetry` hooks, and requires only `grpc-web` and `rxjs` as peer dependencies.
npm install grpc-web-rxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a gRPC-Web client, using the from operator to make a unary call, and applying a retry policy with exponential delay.
Use only unary or server streaming calls; check gRPC-Web status for updates.
Use `import { retry } from 'grpc-web-rx'` for grpc-web-rx retries, not from 'rxjs/operators'.Review migration guide if upgrading from 0.5.x.
Run `npm install grpc-web-rx`
Use ES module syntax: `import { from } from 'grpc-web-rx'`Ensure you are using a modern browser and the server supports gRPC-Web (e.g., Envoy proxy).