grpc-helper is a gRPC client wrapper for grpc-node that adds promised-based calls, client-side load balancing, service health checking, service discovery (static, DNS SRV, etcd v3), circuit breaking, retry logic, and Prometheus metrics. Version 1.0.x is currently the latest, with moderate release cadence. It improves upon raw grpc-node by providing a higher-level, feature-rich client with TypeScript support and built-in resilience patterns, differentiating itself from alternatives like grpc-ts or custom wrappers by combining discovery, balancing, and observability out of the box.
npm install grpcdesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a GRPCHelper instance with static service discovery, waits for readiness, and makes a unary gRPC call.
Install grpc package (npm install grpc) as peer dependency, or consider migrating to a library that supports @grpc/grpc-js.
npm install grpc-helper
Consider using an alternative library that wraps @grpc/grpc-js, or manually handle the migration.
Ensure Node.js version >=10 (preferably LTS) for best compatibility.
Follow the URI pattern: static://host:port,host:port ; dns://_grpc._tcp.service?intervalMs=N ; etcd3://prefix?cluster
Set resolveFullResponse: true if you need metadata, peer, or status; otherwise the response is just the message.
Ensure you have the old grpc package installed (npm install grpc) and not @grpc/grpc-js.
Run: npm install grpc
Use: import { GRPCHelper } from 'grpc-helper'Provide correct URI like 'static://localhost:50051'.
Check backend status and ensure await helper.waitForReady() before making calls.