grpc-web-client is a library for making gRPC-Web requests from browsers and Node.js. Version 0.5.3 is the current stable release. It provides three main request functions: unary, invoke, and client, supporting unary, server-streaming, and client-streaming RPCs. Requires peer dependencies google-protobuf and @types/google-protobuf. Ships TypeScript types. Differentiator: one of the first client libraries for gRPC-Web, enabling browser-based gRPC calls without a proxy in some setups.
npm install grpc-web-client-dm-wsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic unary gRPC-Web call using generated service and message classes.
Install correct peer deps: npm install google-protobuf@^3.2.0 @types/google-protobuf@^3.2.0
Update onEnd to destructure { status, statusMessage, headers, message, trailers } from res.Use import syntax or ensure bundler handles ESM.
Use Envoy or a compatible backend with gRPC-Web support.
Replace const grpc = require('grpc-web-client') with import { grpc } from 'grpc-web-client'npm install google-protobuf @types/google-protobuf
Use import { grpc } from 'grpc-web-client' and then grpc.unary(...)Ensure server uses gRPC-Web middleware or proxy (e.g., Envoy).