npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rxap/plugin-nestjs

v20.2.1-dev.3

Published

This npm package provides generators and executors for NestJS applications within an Nx workspace. It helps streamline the setup of NestJS projects with features like Swagger, Sentry, health indicators, and standardized configurations. It also includes ex

Readme

This npm package provides generators and executors for NestJS applications within an Nx workspace. It helps streamline the setup of NestJS projects with features like Swagger, Sentry, health indicators, and standardized configurations. It also includes executors for generating package.json files and Swagger documentation.

npm version commitizen friendly styled with prettier Libraries.io dependency status for latest release, scoped npm package npm NPM

Installation

Add the package to your workspace:

yarn add @rxap/plugin-nestjs

Execute the init generator:

yarn nx g @rxap/plugin-nestjs:init

Guides

Application

Standalone

Use the nx generate to create a new application:

NAME=app
nx g @nx/nest:application \
  --name=service-$NAME \
  --directory service/$NAME \
  --projectNameAndRootFormat as-provided \
  --tags service,nest

Initialize the application:

nx g @rxap/plugin-nestjs:init-application \
  --project service-$NAME \
  --cleanup \
  --generateMain \
  --overwrite

Standalone Microservice

Use the nx generate to create a new standalone microservice:

nx g @rxap/plugin-nestjs:microservice --name $NAME

Frontend Microservice

Run the following command to create a new frontend microservice:

nx g @rxap/plugin-nestjs:frontend-microservice --feature $FEATURE --frontend $PROJECT

Feature Microservice

Run the following command to create a new feature microservice:

nx g @rxap/plugin-nestjs:feature-microservice --feature $FEATURE --frontend $PROJECT

Generators

init

init generator

nx g @rxap/plugin-nestjs:init

Option | Type | Default | Description --- | --- | --- | --- project | string | | The name of the project to initialize with NestJS. projects | array | | The list of projects to initialize with NestJS. skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization. overwrite | boolean | false | Whether to overwrite existing files during initialization. skipProjects | boolean | false | Whether to skip executing project-specific initialization logic.

init-library

init-library generator

nx g @rxap/plugin-nestjs:init-library

Option | Type | Default | Description --- | --- | --- | --- project | string | | The name of the library project to initialize with NestJS. projects | array | | The list of library projects to initialize with NestJS. overwrite | boolean | false | Whether to overwrite existing files during initialization. skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization. skipProjects | boolean | false | Whether to skip executing project-specific initialization logic. targets | object | | Configuration for specific project targets.

init-application

init-application generator

nx g @rxap/plugin-nestjs:init-application

Option | Type | Default | Description --- | --- | --- | --- project | string | | The name of the application project to initialize with NestJS. projects | array | | The list of application projects to initialize with NestJS. sentry | boolean | true | Whether this application should use Sentry for error tracking. skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization. swagger | boolean | true | Whether this application should support Swagger/OpenAPI documentation generation. swaggerLive | boolean | false | Whether this application should start a live Swagger server in development mode. generateMain | boolean | false | Whether to generate the 'main.ts' entry point file. healthIndicator | boolean | true | Whether this application should include a health indicator endpoint. healthIndicatorList | array | | A list of specific health indicators to include. validator | boolean | true | Whether this application should use the NestJS 'ValidationPipe'. platform | string | express | The underlying HTTP server platform to use. port | number | | The default port number for the application server. apiPrefix | | | pluginBuildInfoOptions | object | | Options for the build-info plugin. pluginDockerOptions | object | | Options for the Docker plugin. sentryDsn | string | | The default Sentry DSN for error reporting. overwrite | boolean | false | Whether to overwrite existing files during initialization. jwt | boolean | false | Whether the application should use JWT authentication. openApi | boolean | false | Whether the application should use an OpenAPI client. skipProjects | boolean | false | Whether to skip executing project-specific initialization logic. apiConfigurationFile | string | | The path to the API configuration file. standalone | boolean | false | Whether the NestJS application should be a standalone application. typeorm | string | none | The TypeORM database driver to use. bootstrap | string | monolithic | The type of application bootstrap to use. transport | string | none | The transport mechanism to use for microservices communication. minio | boolean | false | Whether the application should use Minio for object storage. openai | boolean | false | Whether the application should use OpenAI integration.

swagger

swagger generator

nx g @rxap/plugin-nestjs:swagger

Option | Type | Default | Description --- | --- | --- | --- project | string | | The name of the project. overwrite | boolean | false | Whether to overwrite existing files. standalone | boolean | false | Whether the NestJS service should be standalone.

sentry

sentry generator

nx g @rxap/plugin-nestjs:sentry

Option | Type | Default | Description --- | --- | --- | --- project | string | | The name of the project. dsn | string | | The default Sentry DSN. required | boolean | false | Whether or not the Sentry DSN should be required to start the application. overwrite | boolean | false | Whether to overwrite existing files.

validator

validator generator

nx g @rxap/plugin-nestjs:validator

Option | Type | Default | Description --- | --- | --- | --- project | string | | The name of the project. overwrite | boolean | false | Whether to overwrite existing files.

open-api

open-api generator

nx g @rxap/plugin-nestjs:open-api

Option | Type | Default | Description --- | --- | --- | --- project | string | | The name of the project to add OpenApi support to. overwrite | boolean | false | Whether to overwrite existing files.

jwt

jwt generator

nx g @rxap/plugin-nestjs:jwt

Option | Type | Default | Description --- | --- | --- | --- project | string | | The name of the project to add JWT support to. overwrite | boolean | false | Whether to overwrite existing files.

health-indicator

health-indicator generator

nx g @rxap/plugin-nestjs:health-indicator

Option | Type | Default | Description --- | --- | --- | --- name | string | | The name of the health indicator class. project | string | | The name of the project. overwrite | boolean | false | Whether to overwrite existing files.

health-indicator-init

health-indicator-init generator

nx g @rxap/plugin-nestjs:health-indicator-init

Option | Type | Default | Description --- | --- | --- | --- project | string | | The name of the project. overwrite | boolean | false | Whether to overwrite existing files.

microservice

microservice generator

nx g @rxap/plugin-nestjs:microservice

Option | Type | Default | Description --- | --- | --- | --- name | string | | The name of the microservice. directory | string | | The directory where the microservice will be created. sentry | boolean | true | Whether this microservice should use Sentry for error tracking. skipFormat | boolean | false | Whether to skip formatting the generated files. swagger | boolean | true | Whether this microservice should use Swagger/OpenAPI for documentation. swaggerLive | boolean | false | Whether this service should start a swagger live server generateMain | boolean | true | Whether the main entry point file (`main.ts`) should be generated. healthIndicator | boolean | true | Whether this microservice should include a health indicator endpoint. healthIndicatorList | array | | A list of additional health indicators to include. validator | boolean | true | Whether this microservice should use the NestJS `ValidationPipe`. platform | string | express | port | number | | The default port number where the server will listen. apiPrefix | | | sentryDsn | string | | The default Sentry DSN for error tracking. overwrite | boolean | false | Whether to overwrite existing files, if any. jwt | boolean | false | Whether the microservice should use JWT for authentication. openApi | boolean | false | Whether the microservice should use an OpenAPI client. apiConfigurationFile | string | | The path to the API configuration file. standalone | boolean | false | Whether the NestJS service should be standalone (without a module).

feature-microservice

feature-microservice generator

nx g @rxap/plugin-nestjs:feature-microservice

Option | Type | Default | Description --- | --- | --- | --- feature | string | | The name of the frontend feature project. sentry | boolean | true | Whether this service should use Sentry for error tracking. skipFormat | boolean | false | Whether to skip formatting files with Prettier after generation. swagger | boolean | true | Whether this service should support Swagger/OpenAPI documentation generation. swaggerLive | boolean | false | Whether this service should start a live Swagger server in development mode. generateMain | boolean | false | Whether to generate the 'main.ts' entry point file. healthIndicator | boolean | true | Whether this service should include a health indicator endpoint. healthIndicatorList | array | | A list of specific health indicators to include. validator | boolean | true | Whether this service should use the NestJS 'ValidationPipe'. platform | string | express | The underlying HTTP server platform to use. port | number | | The default port number for the microservice server. sentryDsn | string | | The default Sentry DSN for error reporting. overwrite | boolean | false | Whether to overwrite existing files during generation. jwt | boolean | false | Whether the application should use JWT authentication. openApi | boolean | false | Whether the application should use an OpenAPI client. apiConfigurationFile | string | | The path to the API configuration file. standalone | boolean | false | Whether the NestJS service should be a standalone application (not part of a larger monorepo structure).

frontend-microservice

frontend-microservice generator

nx g @rxap/plugin-nestjs:frontend-microservice

Option | Type | Default | Description --- | --- | --- | --- frontend | string | | The name of the frontend project. feature | string | | The name of the frontend feature project. sentry | boolean | true | Whether this service should use Sentry for error tracking. skipFormat | boolean | false | Whether to skip formatting files with Prettier after generation. swagger | boolean | true | Whether this service should support Swagger/OpenAPI documentation generation. swaggerLive | boolean | false | Whether this service should start a live Swagger server in development mode. generateMain | boolean | false | Whether to generate the 'main.ts' entry point file. healthIndicator | boolean | true | Whether this service should include a health indicator endpoint. healthIndicatorList | array | | A list of specific health indicators to include. validator | boolean | true | Whether this service should use the NestJS 'ValidationPipe'. platform | string | express | The underlying HTTP server platform to use. port | number | | The default port number for the microservice server. sentryDsn | string | | The default Sentry DSN for error reporting. overwrite | boolean | false | Whether to overwrite existing files during generation. jwt | boolean | false | Whether the application should use JWT authentication. openApi | boolean | false | Whether the application should use an OpenAPI client. apiConfigurationFile | string | | The path to the API configuration file. standalone | boolean | false | Whether the NestJS service should be a standalone application (not part of a larger monorepo structure).

dynamic-configuration-module

Extends the module with the dynamic configuration module pattern

nx g @rxap/plugin-nestjs:dynamic-configuration-module

Option | Type | Default | Description --- | --- | --- | --- project | string | | The name of the project to add the dynamic configuration module to. overwrite | boolean | false | Whether to overwrite existing files. name | string | | The name of the module. Defaults to the project name. isGlobal | boolean | true | Whether the configuration module should be registered globally.

Executors

package-json

package-json executor

Option | Type | Default | Description --- | --- | --- | --- dependencies | array | | includeLocalProjects | boolean | false | Include local projects in the package.json file, if they have a package.json file

swagger-generate

swagger-generate executor

Option | Type | Default | Description --- | --- | --- | --- buildTarget | string | |