A NestJS module for dynamically configuring gRPC clients with injectable service addresses, instead of hardcoding URLs. Version 0.1.8 supports synchronous (register) and asynchronous (registerAsync) configuration, decorators (InjectGrpcClient, InjectGrpcClientService) for injecting ClientGrpcProxy or specific gRPC services. Unlike NestJS built-in @Client() which requires static addresses, this library allows runtime configuration via dependency injection. Heavily reliant on @nestjs/microservices and protobufjs. Limited community adoption and infrequent releases.
npm install nestjs-grpc-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows synchronous registration of a gRPC client module and injection of the client proxy via InjectGrpcClient decorator.
Pin to exact version and test upgrades.
Ensure forClientServices is called in the module that provides the service where InjectGrpcClientService is used.
Consider using @grpc/grpc-js directly or migrating to NestJS 10+ with new gRPC support.
Use absolute paths or dynamic __dirname based resolution.
Run 'npm install nestjs-grpc-client' or check package.json dependencies.
Add the service to forClientServices array and ensure proto defines it correctly.
Cast to any: (this.grpcClient as any).getService('HelloService') or update types.