grpc-mock

JSON →
library 0.7.0 ·javascript
verified Jun 7, 2026

grpc-mock is a simple mock gRPC server for Node.js, providing a declarative API for defining request-response rules and streaming behaviors. It supports unary, client-streaming, server-streaming, and bidirectional streaming RPCs, as well as error simulation. Version 0.7.0 is the latest release; the package is stable but not frequently updated. It relies on grpc-kit and @grpc/proto-loader for loading .proto files and creating servers. Key differentiators: lightweight, rule-based matching with regex support, and simple stream chunk configuration.