A CLI tool for running a mock gRPC server using proto files and JSON response definitions. It supports autowiring from folder structures or config-based startup, with options for random/ordered responses, input matching, and delays. Version 0.0.18 is the latest; release cadence is low. Key differentiators include auto-wire mode, matching against input, and support for custom loader options. It is primarily a CLI tool with no programmatic API, and requires Node.js and @grpc/grpc-js.
npm install grpc-server-mockNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a minimal gRPC mock server by setting up a proto file and JSON response, then starts the server on port 50051.
Create folders matching the exact service name from proto and JSON files for each RPC method.
Use npx from the directory containing your proto files, or install globally.
Consider alternatives like grpc-mock or falso if compatibility issues arise.
Use flat or simple structures for matching, or use regexMatch option for partial matching.
Ensure you have created the correct folder hierarchy: <service_name>/<rpc_method>.json under the autowire folder.
Create a JSON file with the same name as the RPC method (case-sensitive) in the service folder.
Verify the proto file path relative to the autowire folder and check proto syntax.
No dependency data recorded yet.