A NestJS library for gRPC communication between microservices, version 1.0.131. It abstracts .proto file handling and provides ready-to-use modules for Auth, Documentation, Notification, and Storage microservices. Key differentiators: uses Infisical for secrets management, singleton pattern for gRPC clients, and dynamic module registration. Eschews direct .proto compilation in consumer code by providing pre-generated interfaces and services. Recommended for teams using NestJS microservices with gRPC and Infisical secrets.
npm install res-saas-gl-libraryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up a NestJS module with gRPC Auth client and use it in a service.
Check the list of supported services in the documentation; or request a new service from the library maintainers.
Use getInstance(env, projectId, token, url, path) as shown in the example; do not call new InfisicalClientService().
Always import from 'res-saas-gl-library'. Other package names are not published.
Upgrade Node.js to >=20.
Run: pnpm install res-saas-gl-library
Use: GRPCAuthModule.register(domain) in the imports array.
Declare AuthServiceClient in providers of the module and inject via constructor.
Ensure INFISICAL_ENV, INFISICAL_PROJECT_ID, INFISICAL_TOKEN, INFISICAL_URL, and INFISICAL_SECRET_PATH are set correctly.