Skip to content

Nx is a build system for monorepos. It helps you develop faster and keep CI fast as your codebase scales.

Monorepos have many advantages and are especially powerful for AI-assisted development. But as teams and codebases grow, monorepos are hard to scale:

  • Slow builds and tests - Hundreds or thousands of tasks compete for CI resources.
  • Complex task pipelines - Projects depend on each other, so tasks need to run in the right order — and that's hard to manage by hand.
  • Flaky CI - Longer pipelines lead to random failures and inconsistent results between local and CI environments.
  • Architectural erosion - Without clear boundaries, unwanted dependencies creep in and projects become tightly coupled.

Nx reduces friction across your entire development cycle with intelligent caching, task orchestration, and deep understanding of your codebase structure.

At its core, Nx:

  1. Runs tasks fast - Caches results so you never rebuild the same code twice.
  2. Understands your codebase - Builds project and task graphs showing how everything connects.
  3. Orchestrates intelligently - Runs tasks in the right order, parallelizing when possible.
  4. Enforces boundaries - Module boundary rules prevent unwanted dependencies between projects.
  5. Handles flakiness - Automatically re-runs flaky tasks and self-heals CI failures.
Terminal window
nx build myapp # Run a task
nx build myapp # Run again - instant cache hit
nx run-many -t build test # Run across all projects
How does Nx run tasks?

Nx is modular. Start with just the CLI and add capabilities as your needs grow.

ComponentWhat It Does
Nx CoreTask runner with local caching. Works with any tech stack.
Nx PluginsTechnology-specific automation (generators, executors, dependency detection).
Nx ConsoleEditor extension for VSCode/JetBrains with visual UI and AI assistance.
Nx CloudRemote caching, affected commands, and self-healing CI.
Can I add Nx to a single-project repo?
Choose Your Path

Starting fresh?Create a new workspace

Have an existing project?Add Nx to your project

Want hands-on learning?Follow a tutorial

Prefer video?Learn with our video courses

Stay up to date with our latest news by ⭐️ starring us on Github, subscribing to our Youtube channel, joining our Discord, subscribing to our monthly tech newsletter or follow us on X, Bluesky and LinkedIn.