The project is in a healthy, maintained state
Implements the gRPC Server Reflection Protocol, enabling tools like grpcurl and Postman to introspect gRPC services.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.0
~> 13.0
~> 3.0

Runtime

 Project Readme

grpc-server-reflection

Ruby gem implementing the gRPC Server Reflection Protocol. Enables tools like grpcurl, grpcui, and Postman to introspect your gRPC services without .proto files.

Installation

Add to your Gemfile:

gem 'grpc-server-reflection'

Usage

require 'grpc_server_reflection'

server = GRPC::RpcServer.new
server.add_http2_port('0.0.0.0:50051', :this_port_is_insecure)
server.handle(MyApp::GreeterService)
server.handle(GrpcServerReflection::Service)  # Add reflection
server.handle(GrpcServerReflection::V1AlphaService)  # Add v1alpha reflection
server.run

Then use grpcurl to test:

grpcurl -plaintext localhost:50051 list

Requirements

  • Ruby >= 2.7
  • grpc gem (~> 1.0)
  • google-protobuf gem (~> 3.0)

License

MIT