Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

nightwatch architecture

Changing lib/utils/chalkColors in nightwatch reaches 333 modules. 3 files call it directly. Snapshot 765afc3.

The first file to open in nightwatch is lib/utils/chalkColors. A change there reaches 333 of 487 modules.

This lead file reaches 68% of the graph. The median published proof reaches 60%.

utils/chalkColors333 · 3 fan-in
utils/alwaysDisplayError332 · 3 fan-in
transport/errors331 · 3 fan-in
settings/defaults330 · 6 fan-in
lib/utils327 · 136 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: nightwatch · Score: 87.9/100 (Healthy architecture) · 487 modules · 698 edges · JavaScript · 32 of 43 · Language score median 91.7

Cycles
9
Duplicate authorities
19
God modules
5
Layer violations
0
arc impact lib/utils/chalkColors

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for nightwatch
[![ArcSight architecture proof for nightwatch](https://arcsight.ai/badge/proof/nightwatch/)](https://arcsight.ai/repositories/nightwatch/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

nightwatch · 765afc3

RankFileFan-inBlastShare
1lib/utils/chalkColors

concentrates too many responsibilities

333368%
2lib/utils/alwaysDisplayError

concentrates too many responsibilities

333268%
3lib/transport/errors

concentrates too many responsibilities

333168%
4lib/settings/defaults

concentrates too many responsibilities, shared utility hub

633068%
5lib/utils13632767%
All ranked files
RankFileFan-inBlastShare
6lib/element/strategy320743%
7lib/element3220642%
8lib/element/locator620642%

Circular dependencies

This snapshot records 9 dependency cycles.

Nearby proofs

Snapshot notes

In nightwatchjs nightwatch, a change that begins in utils chalkColors keeps traveling until it reaches utils alwaysDisplayError, with transport errors as the third file on that walk and the client-commands-_base-command group as the group around them, snapshot mark eedfadaeee.

settings defaults is worth opening beside utils chalkColors because utils still participates when settings defaults moves, and element strategy stays in view for nightwatchjs nightwatch, snapshot mark eedfadaeee.

Review element only after utils alwaysDisplayError and element locator are both on the table, since the link from utils addDetailedError back to transport errors belongs to nightwatchjs nightwatch under snapshot mark eedfadaeee.

utils isErrorObject and utils chalkColors are later stops, and a reviewer who has already seen utils alwaysDisplayError should still look at transport errors before treating the client-commands-_base-command group as understood for nightwatchjs nightwatch, snapshot mark eedfadaeee.

transport errors closes the file list after settings defaults and utils chalkColors, which keeps the nightwatchjs nightwatch note tied to snapshot mark eedfadaeee, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • client-commands-_base-command (48 modules)
  • ROOT_CLUSTER (364 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in nightwatchjs nightwatch: utils chalkColors?
Start with utils chalkColors, because the rest of the nightwatchjs nightwatch walk leaves from that file and utils alwaysDisplayError is the next file in the same review. Commit eedfadaeee records it.
What else is on the nightwatchjs nightwatch walk besides utils chalkColors and transport errors?
transport errors and settings defaults stay on the walk with utils, which are different files from utils chalkColors inside the client-commands-_base-command group for nightwatchjs nightwatch. Commit eedfadaeee records it.
How should a reviewer use element strategy in the nightwatchjs nightwatch snapshot?
Keep element strategy, element, and element locator open together, then check utils addDetailedError before merging the nightwatchjs nightwatch change. Commit eedfadaeee records it.
Where does the nightwatchjs nightwatch review stop after utils isErrorObject?
Stop after utils isErrorObject, utils chalkColors, and utils alwaysDisplayError have been compared with transport errors, leaving the client-commands-_base-command group until those nightwatchjs nightwatch files are clear. Commit eedfadaeee records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/nightwatch/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo