Client library for gRPC reflection API that dynamically loads protobuf service definitions from a running gRPC server without requiring local .proto files. Current stable version is 1.4.0. Released as needed. Enables runtime discovery of gRPC services and methods, generating client stubs on the fly. Differentiates from static protobuf compilation by eliminating the need to distribute proto files and allowing interaction with services whose schemas evolve independently. Supports ESM and CJS, ships TypeScript definitions. Requires @grpc/grpc-js as a peer dependency.
npm install grpc-js-reflection-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a gRPC server running on localhost:50051, uses reflection to load the Greeter service, then calls SayHello with name 'world'.
Install @grpc/grpc-js@^1.14.3 alongside this package.
Ensure server implements gRPC reflection (e.g., grpc.reflection.v1alpha.ServerReflection).
Use import syntax in an ESM context.
Always provide fully qualified service name (e.g., 'helloworld.Greeter').
Test streaming RPCs thoroughly; consider using a typed client if issues arise.
Provide full qualified service name, e.g. 'mypackage.MyService'.
Verify service name and that server supports reflection.
Enable reflection on the gRPC server (e.g., use reflection.Register(grpcServer) with @grpc/proto-loader).
Run npm install grpc-js-reflection-client.