What is NestJS?

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications.

Use the snippets below to quickly add common functionality to your NestJS applications. All snippets are production-ready and can be copied directly into your project.

Categories

Libraries

Server implementations and database services for NestJS applications

10 snippets

Decorators

Custom decorators for controllers and methods

6 snippets

Guards

Authentication and authorization guards

4 snippets

Interceptors

Request/response transformation interceptors

5 snippets

Pipes

Validation and transformation pipes

5 snippets

Filters

Exception filters for error handling

4 snippets

Middleware

Express-compatible middleware

2 snippets

Providers

Injectable services and utilities

3 snippets

Utilities

Standalone utility functions

4 snippets

Getting Started

Install the Hanma CLI to add snippets to your project:

npx hanma add  --framework nest

Or browse the categories above to find the snippet you need.