Wrapper around the official grpc npm package that simplifies handling multiple proto files for various gRPC clients communicating with a single server. Version 3.0.0 supports Node 8.0+ and provides a ServiceMap class to bind service implementations and a GRPC class to start the server on a given address. It differentiates from raw gRPC by offering a declarative configuration for multiple services and proto files. Release cadence is not specified; the package appears to be in early development with upcoming features like authentication.
npm install multi-proto-grpc-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a gRPC server with a single proto service using ServiceMap and GRPC classes.
Migrate to '@grpc/grpc-js' and use its server implementation directly, or ensure that the 'grpc' module works in your environment.
Use path.resolve(__dirname, './notification.proto') to ensure correct path resolution.
Verify the 'package' line in the proto file and use the exact same string.
Always use ServiceMap instance's map property (e.g., serviceMap: myServiceMap.map).
Ensure all .proto files start with 'syntax = "proto3";'.
Run 'npm install grpc' in your project.
Use: const { ServiceMap } = require('multi-proto-grpc-server');Use path.resolve(__dirname, './notification.proto') to provide an absolute path.
Use: const server = new GRPC(configs); server.run(address);