Quick gRPC server bootstrapping and mocking library for Node.js. Version 0.3.1 (stable, low release cadence). Allows starting a gRPC server directly from protobuf file definitions without needing to compile stubs. Supports service method handlers and mocking with GRPCError for error responses. Key differentiator: no code generation step, designed for rapid prototyping and mocking of gRPC services.
npm install easy-grpc-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a gRPC server from a protobuf file, adds a handler for 'myMethod', and starts server on port 50051.
Use a reverse proxy (e.g., nginx) for TLS termination.
Ensure protoPaths are relative to one of the includeDirs.
Always pass a GRPCError instance to the callback for errors.
Add handlers for all methods you intend to support.
Verify paths are correct and absolute or relative to CWD.
Add the root directory of imported protos to includeDirs.
Ensure handler is a function accepting (call, callback).