Native (Installed by Default)
@nestjs/core
@nestjs/common
@nestjs/platform-express (or @nestjs/platform-fastify older versions)
rxjs
reflect-metadata
Core Functionality & Utilities
npm install @nestjs/config
npm install @nestjs/mapped-types
npm install class-validator class-transformer
npm install joi
API Documentation
npm install --save @nestjs/swagger
npm install --save swagger-ui-express
Data Management (Choose one or more based on your database)
Relational Databases (TypeORM)
npm install @nestjs/typeorm typeorm pg # PostgreSQL
npm install mysql2
npm install sqlite3
npm install oracledb
npm install mssql # SQL Server
NoSQL Databases (Mongoose)
npm install @nestjs/mongoose mongoose
Authentication & Authorization JWT(JSON Web Token)
npm install @nestjs/jwt @nestjs/passport passport passport-jwt bcrypt
npm install --save-dev @types/passport-jwt @types/passport @types/bcrypt @types/jsonwebtoken
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
GraphQL
npm install --save @nestjs/graphql
npm install --save @apollo/server # Apollo Server v4 (Recommended)
npm install --save apollo-server-express # Apollo Server v3 (Legacy)
npm install --save graphql
WebSockets
npm install --save @nestjs/websockets
npm install --save ws # For the underlying WebSocket implementation
npm install --save @nestjs/platform-socket.io # If using Socket.IO
Inter-Service Communication (Choose based on your strategy)
NestJS Microservices Core
npm install --save @nestjs/microservices
Transport Layers
npm install --save @nestjs/platform-socket.io # For Socket.IO based microservices
npm install --save redis # For Redis transport
npm install --save cache-manager
npm install --save @nestjs/cache-manager
npm install --save ioredis # Recommended Redis client
npm install --save amqplib # For RabbitMQ transport
npm install --save nats # For NATS transport
npm install --save kafkajs # For Kafka transport
npm i --save @grpc/grpc-js @grpc/proto-loader
npm install --save protobufjs # Required for gRPC
Observability & Monitoring
npm install --save @nestjs/terminus
npm install --save @nestjs/prometheus
npm install --save prom-client
npm install --save @nestjs/throttler
npm install --save helmet
npm install --save cors
npm install --save @nestjs/schedule
npm install --save winston
npm install --save pino
Testing (Development Dependencies)
npm install --save-dev @nestjs/testing
npm install --save-dev jest
npm install --save-dev ts-jest
npm install --save-dev supertest
npm install --save-dev @types/jest
npm install --save-dev @types/node
Development Tools (Development Dependencies)
npm install --save-dev @nestjs/cli
npm install --save-dev prettier
npm install --save-dev eslint
npm install --save-dev @typescript-eslint/eslint-plugin
npm install --save-dev @typescript-eslint/parser
npm install --save-dev eslint-config-prettier
npm install --save-dev eslint-plugin-prettier
npm install --save-dev eslint-plugin-import
npm install --save-dev eslint-plugin-unused-imports
npm install --save-dev rimraf
npm install --save-dev concurrently
npm install --save-dev nodemon
npm install --save-dev dotenv
npm install --save-dev @nestjs/schematics
npm install --save-dev run-script-webpack
npm install --save-dev webpack
npm install --save-dev webpack-cli
npm install --save-dev webpack-node-externals
npm install --save-dev source-map-support
npm install --save-dev ts-loader
npm install --save-dev fork-ts-checker-webpack-plugin
npm install --save-dev husky
npm install --save-dev lint-staged
npm install --save-dev commitizen
npm install --save-dev cz-conventional-changelog
npm install --save-dev semantic-release
npm install --save-dev @semantic-release/commit-analyzer
npm install --save-dev @semantic-release/release-notes-generator
npm install --save-dev @semantic-release/changelog
npm install --save-dev @semantic-release/git
npm install --save-dev @semantic-release/npm
npm install --save-dev npm-run-all
npm install --save-dev cross-env
Optional Integrations & Features
npm install --save-dev fastify-adapter # Alternative HTTP platform
npm install --save-dev @nestjs/serve-static # Serving static files
npm install --save-dev typeorm-naming-strategies # Custom naming strategies for TypeORM
npm install --save-dev nestjs-paginate # Pagination for APIs
npm install --save-dev cache-manager-redis-store # Redis store for cache-manager
npm install --save-dev nestjs-bull # Background job processing with Bull
npm install --save-dev bull # Underlying Bull library
npm install --save-dev @nestjs/cqrs # Command Query Responsibility Segregation
npm install --save-dev nestjs-event-store # Event Sourcing
npm install --save-dev @nestjs/platform-ws # Native WebSockets platform
npm install --save-dev graphql-tools # GraphQL utility library
npm install --save-dev graphql-subscriptions # GraphQL Subscriptions
npm install --save-dev apollo-server-express # Apollo Server v2 (Legacy)
npm install --save-dev nestjs-i18n # Internationalization
npm install --save-dev nest-morgan # HTTP request logging with Morgan
npm install --save-dev morgan # Underlying Morgan library
npm install --save-dev compression # Response compression middleware
Top comments (0)