LoopBack connector for gRPC services, enabling LoopBack applications to interact with gRPC APIs. Current version 2.0.0 requires Node >=10.16. This connector loads gRPC specification files (protobuf) and creates dynamic LoopBack models for gRPC service operations. Compared to REST connectors, it leverages gRPC's performance and streaming capabilities. The connector is maintained by the LoopBack team at StrongLoop/IBM. Note: This is a specialized connector for LoopBack 3.x; not intended for standalone use. Release cadence is low; no major updates since 2020.
npm install loopback-connector-grpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a gRPC data source from a .proto file, waits for connection, then invokes a remote procedure call.
Always use ds.once('connected', ...) to create models or call operations.Consider migrating to LoopBack 4 and using @loopback/grpc or a direct gRPC client.
Provide the path to a valid .proto file. For OpenAPI specs, use loopback-connector-rest.
Provide file system paths to the certificate files.
Wrap model creation inside ds.once('connected', function() { ... });Install grpc@1.24.x or use @grpc/proto-loader@0.5.x. Check peer dependencies.
Ensure spec path is relative to process.cwd() or use an absolute path.