Sources
GripMock can load API definitions from different source types.
Supported source types
1) .proto files
Load one or multiple proto files directly:
bash
gripmock service.proto
gripmock api/service1.proto api/service2.proto2) Compiled descriptors (.pb, .protoset)
Load precompiled FileDescriptorSet files:
bash
gripmock service.pb
gripmock api.protosetThis is useful for reproducible CI runs and dependency-free runtime startup.
3) Directory with mixed sources
Load all supported files recursively from a directory:
bash
gripmock ./protoGripMock will process .proto, .pb, and .protoset files found under the directory.
4) Buf Schema Registry (BSR)
Load API definitions directly from a BSR module:
bash
gripmock --stub ./stubs buf.build/connectrpc/elizaFor private/on-prem usage and refs, see BSR.
5) gRPC Reflection (grpc://, grpcs://)
Load API definitions from a live gRPC server via reflection:
bash
gripmock grpc://localhost:50051
gripmock grpcs://api.company.local:443For query parameters and TLS notes, see gRPC Reflection Source.