A JavaScript library for querying gRPC server reflection protocol, allowing dynamic discovery of gRPC services and protobuf definitions at runtime. Version 0.3.0 is the latest stable release, with moderate release cadence. It simplifies interaction with gRPC servers that implement the reflection protocol by providing methods to list services, retrieve file descriptors by symbol or filename. Unlike alternatives like protobuf.js, it focuses solely on reflection, using the @grpc/grpc-js package for gRPC communication. The library ships TypeScript types for enhanced developer experience.
npm install grpc-reflection-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a reflection client and list all gRPC services exposed by the server.
npm install @grpc/grpc-js@^1.0.0
Use async/await or .then() instead of callbacks.
Verify server supports reflection by checking its gRPC reflection service.
npm install @grpc/grpc-js
Import from '@grpc/grpc-js' and use appropriate credential methods
Ensure the server implements grpc.reflection.v1alpha.ServerReflection service