Create Your Own Plugin

Nx is like the VSCode of build tools. The core of Nx enables project and task graph creation and analysis, orchestration and execution of tasks, computation caching, and code generation. Nx plugins extend this functionality and are built on top of the underlying Nx Devkit.

Plugins are optional

Many organizations use Nx without any plugins. If you are mainly interested in making your workspace faster or enabling distributed task execution, then plugins aren't necessary.

Youtube Link
Create a Nx Generator in 100 seconds

Learn how to setup a new local generator in less than 2 minutes

Youtube Link
Creating and Publishing Your Own Nx Plugin

Learn how to build your own Playwright

Nx plugins

Nx plugins contain executors and generators to extend the capabilities of an Nx workspace. They can be shared as npm packages or referenced directly within a single repo.

All the core plugins are written using Nx Devkit, and you can use the same utilities to write your own generators and executors.

Plugins!

The Nx team maintains a core set of plugins for many application and tooling frameworks. You can write generators and executors in a plugin to use in your own repo or share it with the community. The Nx Plugin plugin provides guidance on how you can build your own custom plugins.

Pay as you go

As with most things in Nx, the core of Nx Devkit is very simple. It only uses language primitives and immutable objects (the tree being the only exception). See Simplest Generator and Simplest Executor for examples on creating generators and executors. The Using Executors and Using Generators guides also have additional information on executors and generators.

Learn more