Nx core functionality focuses on task running and understanding your project and task graph. Nx plugins build on that foundation to enforce best practices, integrate tooling, and let developers get up and running quickly. As your repository grows, you’ll find more reasons to create your own extensions:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nrwl/nx/llms.txt
Use this file to discover all available pages before exploring further.
- Standardize workflows — local generators automate repetitive scaffolding so every team member follows the same patterns.
- Eliminate duplicate config — local executors wrap tool invocations once and share them across every project.
- Scale across repos — publishable plugins let you share generators, executors, and inferred task logic with multiple monorepos or with the wider community.
Three ways to extend Nx
Local generators
Automate code scaffolding, enforce project structure, and standardize workflows within a single workspace.
Local executors
Wrap build, test, and deployment scripts in a consistent interface with schema validation and caching support.
Create a plugin
Package generators and executors into a publishable plugin that integrates a tool or framework and can be shared across repos.
When to use each approach
| Situation | Recommended approach |
|---|---|
| Automate a repetitive task in one repo | Local generator |
| Standardize a build or test script in one repo | Local executor |
| Infer tasks from a config file automatically | Plugin with createNodesV2 |
| Share logic across multiple monorepos | Publishable plugin |
| Integrate a framework for the community | Publishable plugin |
The @nx/devkit API
All plugin development uses the@nx/devkit package, which provides the building blocks for generators and executors.
- Generator utilities
- Executor utilities
- Plugin / project graph utilities
Create your first plugin
Explore further
Local generators
Create and run generators inside your workspace.
Local executors
Write custom task runners with schema validation.
Create a plugin
Package everything into a publishable Nx plugin.
Project graph plugins
Add nodes and dependencies to the Nx project graph.
