Mixin for Moleculer API Gateway that adds gRPC server support. Current stable version: 1.2.5. Release cadence: irregular, based on community contributions. Differentiators: seamless integration with Moleculer microservice framework, allows gRPC clients to call Moleculer actions via alias mappings, supports authentication via Moleculer actions, and automatically loads .proto files from a directory. Has limited documentation and no official TypeScript types.
npm install moleculer-grpc-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Moleculer broker with a greeter action and an API gateway mixin that sets up a gRPC server mapping the Greeter service's sayHello RPC to the greeter.sayHello action.
Use path.resolve(__dirname, 'protos') or __dirname + '/protos' to ensure absolute path.
Double-check proto file package and service names. They are case-sensitive.
Consider switching to an alternative library that supports '@grpc/grpc-js' or fork the package.
Ensure the authentication action handles missing headers gracefully or set 'authentication' to undefined if not needed.
Update code to call GrpcService({...}) instead of new GrpcService(...).Change to GrpcService({...}) without 'new'.Use an absolute path: path.resolve(__dirname, 'protos').
Run 'npm install grpc' or switch to '@grpc/grpc-js' and update the package.
Verify proto service and package names exactly match 'aliases' key (case-sensitive).