grpc-mock

JSON →
library 1.0.1 ·javascript
verified Jun 7, 2026

A simple gRPC mock server for Node.js, version 1.0.1. It allows defining rules to match incoming gRPC calls (unary, client-streaming, server-streaming, bidirectional) and return predefined outputs or errors. Built on grpc-kit and @grpc/proto-loader, it requires no actual gRPC service implementation, making it ideal for testing. Compared to alternatives like grpc-mock (original) or protobufjs-based mocks, this package offers a straightforward rule-based API with support for stream types, error responses with metadata, and regex-based input matching. Release cadence is low, with infrequent updates.