Nx manages TypeScript and polyglot monorepos with task graph awareness, local and remote caching, and CI helpers. It can be added to existing npm, pnpm, or yarn workspaces.
Overview
Nx is a monorepo tool for JavaScript, TypeScript, and additional languages through plugins. Its core maps projects and dependencies so builds, tests, and lint tasks run only where changes matter, reusing cached outputs when inputs are unchanged.
Running init in an existing workspace adopts current package.json scripts, caches their results, and layers graph-based affected commands without mandatory restructuring. Plugins discover tasks for stacks such as Vite, Webpack, Jest, Vitest, ESLint, Gradle, Maven, and .NET, configuring cache boundaries automatically.
CI integrations connect to providers like GitHub Actions or GitLab for remote caching, distributed task execution, affected-only pipelines, and split end-to-end tests. Nx Cloud extends this with remote cache and task packing features described on the product site. An optional self-healing CI agent analyzes failures and proposes fixes linked through MCP.
The CLI is the primary interface for local development and agent-driven workflows, with documentation guiding incremental adoption from small repos to large enterprise monorepos.
Key features
- Project graph and affected commands
- Local and remote task caching
- Polyglot plugin ecosystem
- Incremental workspace adoption
- CI provider integrations
- Nx Cloud remote execution
- Ultracache input tracking
- Self-healing CI agent option
Use cases
- Speeding up large monorepo builds
- Adopting caching in existing workspaces
- Coordinating polyglot project tasks
- Optimizing CI with affected runs
- Agent-assisted verification loops