nestjs-expert

Guide Nest.js architecture, modules, DI, middleware, guards, interceptors, and testing.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/hvngroup/directus_b2b_crm --skill nestjs-expert-hvngroup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-expert
Source: https://github.com/hvngroup/directus_b2b_crm/tree/main/.agent/skills/nestjs-expert
Command: npx skills add https://github.com/hvngroup/directus_b2b_crm --skill nestjs-expert-hvngroup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nest.js project teams often struggle with module architecture, dependency injection patterns, and enterprise-grade integration. This skill provides expert guidance to design scalable, maintainable Nest.js applications and resolve architectural decisions proactively.

Core Features & Use Cases

  • Architectural design & module boundaries for Nest.js projects
  • Dependency injection strategies, providers, and forwardRef handling
  • Testing strategies (Jest/Supertest), middleware, guards, interceptors, and database integration (TypeORM/Mongoose) with Passport.js authentication

Quick Start

Outline your Nest.js app's module layout and DI tokens to begin a scalable project.

Frequently Asked Questions about nestjs-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize Nest.js modules for scalable enterprise applications?

Organizing scalable Nest.js modules requires defining clear architectural boundaries and structuring dependency injection tokens to separate domain concerns. This approach ensures maintainable architecture, proactive decision making, and robust validation across enterprise-grade projects.

What is the best way to handle dependency injection and forwardRef in Nest.js?

Handling dependency injection in Nest.js involves structuring providers and utilizing forwardRef to resolve circular dependencies. This strategy enables modular design and ensures robust validation workflows within your application's architectural boundaries.

How do I configure Passport.js authentication with guards in Nest.js?

Configuring Passport.js authentication with guards in Nest.js secures endpoints by validating user credentials before route access. Guards intercept requests to enforce authentication policies, providing robust full-stack security for enterprise applications.

Does this Nest.js architecture guidance support TypeORM and Mongoose database integration?

Yes, this Nest.js architecture guidance supports database integration using both TypeORM and Mongoose. It provides expert recommendations for structuring modules and providers to interact seamlessly with these databases in enterprise-grade applications.

How do I set up Jest and Supertest testing strategies for Nest.js?

Setting up testing strategies for Nest.js involves configuring Jest and Supertest to perform unit, integration, and e2e considerations. This ensures robust validation workflows and proactive decision making for your architectural design and module boundaries.

When should I use interceptors vs middleware in Nest.js?

Use interceptors in Nest.js for binding extra logic before or after method execution, and middleware for pre-processing requests. Choosing correctly between them ensures scalable architectural design and robust validation workflows across your application.