A TypeScript library providing gRPC client/server abstractions for CDM SaaS microservices. Version 1.0.5 includes auto-generated protobuf types, service stubs, and interceptors for auth, logging, and metrics. It publishes ESM and CJS bundles, ships self-contained .d.ts declarations, and follows semantic versioning. Key differentiators: opinionated conventions for service naming, built-in retry with exponential backoff, and lightweight dependency footprint (only @grpc/grpc-js and protobufjs at runtime).
npm install saas-grpc-libNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a gRPC server and client, making a remote call, and shutting down.
Replace { host: 'localhost', port: 50051 } with { target: 'localhost:50051' }.Use new GrpcServer({...}) instead of createServer({...}).Use path.resolve(__dirname, './my.proto') to ensure absolute paths.
Ensure your tsconfig has "esModuleInterop": true or use dynamic import().
Use await when creating GrpcServer or GrpcClient instances.
Run 'npm install saas-grpc-lib' and ensure the import path is 'saas-grpc-lib' (not '@saas/grpc-lib').
Use named import: import { GrpcClient } from 'saas-grpc-lib'.Add the missing proto files to the 'includeDirs' option or install @grpc/proto-loader.