@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 install @nestjs/core @nestjs/common
yarn add @nestjs/core @nestjs/common
pnpm add @nestjs/core @nestjs/common
Import
import { Controller, Get } from '@nestjs/common';Quick Example
@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 |
| Category | Framework |
| Weekly Downloads | 4M+ |
| License | MIT |
| Install | npm install @nestjs/core @nestjs/common |
Related Packages
Express is the most widely used web application framework for Node.js, providing a minimal and flexi…
Fastify is a high-performance web framework for Node.js designed to be the fastest HTTP framework av…
TypeORM is a full-featured ORM for TypeScript and JavaScript that supports both Active Record and Da…
Prisma is a next-generation Node.js and TypeScript ORM that provides a declarative data modeling lan…
GraphQL is the JavaScript reference implementation of the GraphQL specification, a query language fo…
Browse npm Packages by Category
Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.