# System map — nrwl/nx

> Canonical page: https://codevetter.com/unpack/nx/system-map

# System map — nrwl/nx

Scanned commit bedd602304d762fd160b5f2a6a81990aa1903ccb (2026-10-02). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

The principal product boundary is the installed Nx CLI, with TypeScript orchestration and Rust native services. Project discovery and hashing can run through a daemon or inside the invoking process. Artifact storage, database state, executor processes, and browser visualization have distinct ownership boundaries. Distribution includes npm packages and platform binaries, while documentation is a separate Astro application.
- The published nx package exposes nx and nx-cloud binaries under dist/bin and distributes command implementations, schemas, executor registries, and generator registries. — [packages/nx/package.json#L12-26](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/package.json#L12-L26) [packages/nx/package.json#L43-46](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/package.json#L43-L46)
- bin/nx.ts owns platform checks, workspace discovery, environment initialization, local installation resolution, and delegation; initLocal routes arguments into the shared Yargs commandsObject. — [packages/nx/bin/nx.ts#L63-119](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/bin/nx.ts#L63-L119) [packages/nx/bin/nx.ts#L154-186](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/bin/nx.ts#L154-L186) [packages/nx/bin/init-local.ts#L45-65](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/bin/init-local.ts#L45-L65)
- The Cargo workspace contains packages/nx; its npm manifest declares N-API binaries for Linux, macOS, Windows, and FreeBSD, and native/index.js intercepts loading of Nx native modules. — [Cargo.toml#L2-11](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/Cargo.toml#L2-L11) [packages/nx/package.json#L172-191](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/package.json#L172-L191) [packages/nx/src/native/index.js#L84-106](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/src/native/index.js#L84-L106)
- createProjectGraphAsync chooses cached graph reuse or createProjectGraphAndSourceMapsAsync; the latter requests daemon state when enabled and otherwise coordinates construction with a file lock. — [packages/nx/src/project-graph/project-graph.ts#L295-316](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/src/project-graph/project-graph.ts#L295-L316) [packages/nx/src/project-graph/project-graph.ts#L356-393](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/src/project-graph/project-graph.ts#L356-L393) [packages/nx/src/project-graph/project-graph.ts#L430-448](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/src/project-graph/project-graph.ts#L430-L448)
- runCommand wraps execution with plugin hooks; defaultTasksRunner creates TaskOrchestrator, which owns scheduling, cache access, executor process runners, and continuous-task state. — [packages/nx/src/tasks-runner/run-command.ts#L530-588](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/src/tasks-runner/run-command.ts#L530-L588) [packages/nx/src/tasks-runner/default-tasks-runner.ts#L138-165](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/src/tasks-runner/default-tasks-runner.ts#L138-L165) [packages/nx/src/tasks-runner/task-orchestrator.ts#L103-142](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/src/tasks-runner/task-orchestrator.ts#L103-L142)
- Native NxCache indexes artifacts through a database connection; getDbConnection uses shared workspace data, while getLocalDbConnection explicitly scopes running-task state to a worktree. — [packages/nx/src/tasks-runner/cache.ts#L104-112](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/src/tasks-runner/cache.ts#L104-L112) [packages/nx/src/utils/db-connection.ts#L25-55](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/src/utils/db-connection.ts#L25-L55) [packages/nx/src/tasks-runner/task-orchestrator.ts#L117-124](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/src/tasks-runner/task-orchestrator.ts#L117-L124)
- The browser graph has React Router project, task, and project-details surfaces; Astro documentation uses Starlight, Markdoc, React, and Netlify, with plugin references generated from package metadata. — [graph/client/src/app/routes.tsx#L219-242](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/graph/client/src/app/routes.tsx#L219-L242) [graph/client/src/app/routes.tsx#L303-309](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/graph/client/src/app/routes.tsx#L303-L309) [astro-docs/README.md#L7-23](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/astro-docs/README.md#L7-L23) [astro-docs/src/plugins/plugin.loader.ts#L185-215](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/astro-docs/src/plugins/plugin.loader.ts#L185-L215)
- Root scripts define pnpm-driven build, test, e2e, and local-registry workflows; native builds use @monodon/rust:napi, and release publication runs in the npm-registry GitHub environment after native build jobs. — [package.json#L6-32](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/package.json#L6-L32) [packages/nx/project.json#L38-55](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/packages/nx/project.json#L38-L55) [.github/workflows/publish.yml#L586-599](https://github.com/nrwl/nx/blob/bedd602304d762fd160b5f2a6a81990aa1903ccb/.github/workflows/publish.yml#L586-L599)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
