nestjs-cls

JSON →
library 6.2.1 ·javascript
verified Jun 7, 2026

nestjs-cls is a continuation-local storage module for NestJS that leverages Node.js AsyncLocalStorage to provide request-scoped context across the entire application without relying on request-scoped providers. Version 6.2.1 supports NestJS 10-11, Node.js >=18, and ships TypeScript types. Unlike manual injection of request objects, nestjs-cls automatically propagates context across all providers, including those that are singleton-scoped, making it ideal for logging, tenant resolution, and database transaction management in asynchronous flows.