Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

PM2 architecture

Changing constants in PM2 reaches 49 modules. 41 files call it directly. Snapshot 7a7fb4e.

The first file to open in PM2 is constants. A change there reaches 49 of 207 modules.

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

constants49 · 41 fan-in
tools/which34 · 6 fan-in
lib/Common31 · 21 fan-in
lib/OtelManager31 · 2 fan-in
pm2-io-bpm/serviceManager26 · 16 fan-in

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

Download the finding

Project: PM2 · Score: 91.2/100 (Excellent architecture) · 207 modules · 429 edges · JavaScript · 25 of 43 · Language score median 91.7

Cycles
12
Duplicate authorities
3
God modules
4
Layer violations
0
arc impact constants

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

README badge

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

Blast radius paths

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

PM2 · 7a7fb4e

RankFileFan-inBlastShare
1constants

concentrates too many responsibilities, shared utility hub

414924%
2lib/tools/which63416%
3lib/Common

concentrates too many responsibilities, shared utility hub, depends on an unstable module

213115%
4lib/OtelManager23115%
5modules/pm2-io-bpm/serviceManager162613%
All ranked files
RankFileFan-inBlastShare
6modules/pm2-axon/lib/sockets/sock72512%
7lib/Utility132412%

Circular dependencies

This snapshot records 12 dependency cycles.

Nearby proofs

Snapshot notes

In Unitech pm2, a change that begins in constants keeps traveling until it reaches tools which, with Common as the third file on that walk and the lib-Common group as the group around them, snapshot mark ddfbfcfceb.

OtelManager is worth opening beside constants because pm2-io-bpm serviceManager still participates when OtelManager moves, and sockets sock stays in view for Unitech pm2, snapshot mark ddfbfcfceb.

Review Utility only after tools which and paths are both on the table, since the link from modules fclone back to Common belongs to Unitech pm2 under snapshot mark ddfbfcfceb.

tools pm2-config-keys and constants are later stops, and a reviewer who has already seen tools which should still look at Common before treating the lib-Common group as understood for Unitech pm2, snapshot mark ddfbfcfceb.

Common closes the file list after OtelManager and constants, which keeps the Unitech pm2 note tied to snapshot mark ddfbfcfceb, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • lib-Common (61 modules)
  • lib-ProcessUtils (4 modules)
  • widgets-element (21 modules)
  • lib-constants (4 modules)
  • sockets-sock (13 modules)
  • src-InteractorClient (15 modules)
  • pm2-io-bpm-serviceManager (30 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 Unitech pm2: constants?
Start with constants, because the rest of the Unitech pm2 walk leaves from that file and tools which is the next file in the same review. Commit ddfbfcfceb records it.
What else is on the Unitech pm2 walk besides constants and Common?
Common and OtelManager stay on the walk with pm2-io-bpm serviceManager, which are different files from constants inside the lib-Common group for Unitech pm2. Commit ddfbfcfceb records it.
How should a reviewer use sockets sock in the Unitech pm2 snapshot?
Keep sockets sock, Utility, and paths open together, then check modules fclone before merging the Unitech pm2 change. Commit ddfbfcfceb records it.
Where does the Unitech pm2 review stop after tools pm2-config-keys?
Stop after tools pm2-config-keys, constants, and tools which have been compared with Common, leaving the lib-Common group until those Unitech pm2 files are clear. Commit ddfbfcfceb 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/pm2/" width="320" height="180" frameborder="0"></iframe>

Explore

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