Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

Mongoose architecture

Changing lib/error/mongooseError in Mongoose reaches 121 modules. 41 files call it directly. Snapshot ab4e363.

The first file to open in Mongoose is lib/error/mongooseError. A change there reaches 121 of 272 modules.

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

error/mongooseError121 · 41 fan-in
helpers/isBsonType107 · 15 fan-in
helpers/symbols96 · 22 fan-in
helpers/clone93 · 23 fan-in
helpers/getConstructorName90 · 15 fan-in

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

Download the finding

Project: Mongoose · Score: 85.7/100 (Healthy architecture) · 272 modules · 809 edges · JavaScript · 36 of 43 · Language score median 91.7

Cycles
23
Duplicate authorities
1
God modules
13
Layer violations
6
arc impact lib/error/mongooseError

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

README badge

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

Blast radius paths

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

Mongoose · ab4e363

RankFileFan-inBlastShare
1lib/error/mongooseError

concentrates too many responsibilities, shared utility hub

4112144%
2lib/helpers/isBsonType

concentrates too many responsibilities, shared utility hub

1510739%
3lib/helpers/symbols

concentrates too many responsibilities

229635%
4lib/helpers/clone239334%
5lib/helpers/getConstructorName159033%
All ranked files
RankFileFan-inBlastShare
6lib/error/cast158933%
7lib/options/propertyOptions128732%
8lib/helpers/get218531%

Highest fan-in

lib/utilsfan-in 52

Circular dependencies

This snapshot records 23 dependency cycles.

Nearby proofs

Snapshot notes

In Automattic mongoose, a change that begins in error mongooseError keeps traveling until it reaches helpers isBsonType, with helpers symbols as the third file on that walk and the ROOT_CLUSTER group as the group around them, snapshot mark eddabeadbf.

helpers clone is worth opening beside error mongooseError because helpers getConstructorName still participates when helpers clone moves, and error cast stays in view for Automattic mongoose, snapshot mark eddabeadbf.

Review options propertyOptions only after helpers isBsonType and helpers get are both on the table, since the link from helpers isPOJO back to helpers symbols belongs to Automattic mongoose under snapshot mark eddabeadbf.

utils and array methods are later stops, and a reviewer who has already seen error mongooseError should still look at types arraySubdocument before treating the ROOT_CLUSTER group as understood for Automattic mongoose, snapshot mark eddabeadbf.

types buffer closes the file list after documentArray methods and error mongooseError, which keeps the Automattic mongoose note tied to snapshot mark eddabeadbf, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • ROOT_CLUSTER (251 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 Automattic mongoose: error mongooseError?
Start with error mongooseError, because the rest of the Automattic mongoose walk leaves from that file and helpers isBsonType is the next file in the same review. Commit eddabeadbf records it.
What else is on the Automattic mongoose walk besides error mongooseError and helpers symbols?
helpers symbols and helpers clone stay on the walk with helpers getConstructorName, which are different files from error mongooseError inside the ROOT_CLUSTER group for Automattic mongoose. Commit eddabeadbf records it.
How should a reviewer use error cast in the Automattic mongoose snapshot?
Keep error cast, options propertyOptions, and helpers get open together, then check helpers isPOJO before merging the Automattic mongoose change. Commit eddabeadbf records it.
Where does the Automattic mongoose review stop after utils?
Stop after utils, array methods, and types arraySubdocument have been compared with error mongooseError, leaving the ROOT_CLUSTER group until those Automattic mongoose files are clear. Commit eddabeadbf 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/mongoose/" width="320" height="180" frameborder="0"></iframe>

Explore

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