Preparing for system design interviews?  Try bugzed.com →

Configurable NestJS Middleware Module Creator

JSON →
library 0.4.0 ·javascript
verified Jun 17, 2026

create-nestjs-middleware-module is a lightweight utility library designed to simplify the integration and configuration of Express or Fastify middleware into NestJS applications. It abstracts away the boilerplate of implementing `NestModule` and `MiddlewareConsumer` by providing a `createModule` function, allowing developers to define middleware factories that can accept options. The library currently supports NestJS versions 8 through 11 and requires Node.js >=18.0.0. It aims to provide an idiomatic NestJS way to encapsulate middleware logic within a modular structure, enabling configuration via `forRoot` or `forRootAsync` methods, and offering fine-grained control over routing, similar to NestJS's built-in `MiddlewareConfigProxy`. Its current stable version is 0.4.0, with releases occurring as needed to maintain compatibility with new NestJS versions.

total hits 14
actors 4 distinct systems
last hit 20d ago AhrefsBot
GPTBot
4
Script
1
Search engines
5

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany