Framework4M+/wkMIT

@nestjs/core

NestJS is a progressive Node.js framework for building efficient, reliable, and scalable server-side applications. It combines elements from object-oriented pro

Installation

npm
npm install @nestjs/core @nestjs/common
yarn
yarn add @nestjs/core @nestjs/common
pnpm
pnpm add @nestjs/core @nestjs/common

Import

ESM
import { Controller, Get } from '@nestjs/common';

Quick Example

usage
@Controller()
export class AppController {
  @Get()
  getHello(): string {
    return 'Hello World';
  }
}

About @nestjs/core

NestJS is a progressive Node.js framework for building efficient, reliable, and scalable server-side applications. It combines elements from object-oriented programming, functional programming, and functional reactive programming, using TypeScript as its primary language. NestJS draws heavy inspiration from Angular's architecture, featuring modules, controllers, services, guards, pipes, interceptors, and dependency injection out of the box. The framework provides a well-structured application architecture that helps teams maintain large codebases with clear separation of concerns. NestJS is platform-agnostic, running on top of either Express or Fastify as the underlying HTTP framework. It includes first-party support for GraphQL, WebSockets, microservices (using various transport layers like Redis, NATS, Kafka, gRPC), task scheduling, event emitters, and CQRS patterns. The CLI tool generates boilerplate code for modules, controllers, and services. NestJS has become the most popular enterprise-grade Node.js framework, especially for teams migrating from Spring Boot or Angular who appreciate opinionated structure and strong typing.

Quick Facts

Package@nestjs/core
CategoryFramework
Weekly Downloads4M+
LicenseMIT
Installnpm install @nestjs/core @nestjs/common

Related Packages

Browse npm Packages by Category

Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.