A CLI tool for dynamically creating gRPC clients and servers in Node.js using proto files. Current version 1.1.1. It allows rapid prototyping without code generation: point it at .proto files and JavaScript handler implementations, and it handles server startup or client calls. Supports SSL/TLS, custom include paths, and listing RPC methods. Differentiates from full gRPC frameworks by focusing on quick, dynamic usage.
npm install grpcnodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Starts a gRPC server using a proto file and a JavaScript handler implementation. The handler file exports functions matching RPC methods.
Use -I with the single root directory; avoid complex import structures.
Verify proto compatibility; consider using protobufjs for full feature support.
Use environment variables or config files instead of inline certs.
Always validate JSON with JSON.parse before passing to -c flag.
Ensure your Node.js version supports @grpc/grpc-js (Node >= 8).
List each proto file explicitly instead of using wildcards.
Use absolute paths for --ca, --key, --cert flags.
Provide absolute path or properly relative path to the JavaScript handler.
Verify -I include path and full service/method name in -c flag.
Ensure proto uses proto3 syntax and avoids features not supported by protobufjs (e.g., maps, oneof).