Centralizes infrastructure clients to provide single ownership and clean dependency injection for feature modules.
// Source: https://github.com/ComPDFKit/compdf-self-hosted | License: MIT | Copyright 2014-2026 PDF Technologies, Inc
// Provided via justclaw.it.com; keep this notice with the code.
/**
* ClientsModule — single ownership of the four egress/infra clients.
*
* Provides AND exports: MysqlClient, RedisClient, PdfSdkClient, ConversionClient.
* Feature modules (Auth, Pdf, Conversion, Health, License) import this
* module instead of re-declaring the clients locally — one ownership model, no
* duplicate provider registrations.
*
* All four clients are `@Injectable` and depend only on the global `ConfigService`
* (ConfigModule is global in AppModule), so they construct cleanly here.
*/
import { Module } from '@nestjs/common';
import { MysqlClient } from './mysql.client';
import { RedisCl
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key