grpc-promise-client (v3.0.0) wraps @grpc/grpc-js clients to return Promises instead of callbacks, enabling async/await usage in Node.js. Ships TypeScript types. Released under Apache-2.0. Alternatives include grpc-promise and other promisify wrappers; this package focuses on minimal API surface and compatibility with @grpc/grpc-js v1.x. Maintenance is community-driven with infrequent releases.
npm install grpc-promise-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a promised-based gRPC client using the factory and call a unary RPC with async/await.
For streaming calls, handle the stream manually after the promise resolves.
Upgrade @grpc/grpc-js to ^1.14.2.
Use ESM imports (import/export) instead of require().
Ensure the client constructor accepts message classes; use generated *_pb.js files.
import { grpcClientFactory } from 'grpc-promise-client';npm install @grpc/grpc-js@^1.14.2
Verify the RPC method names in your .proto file and regenerated client.