Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

Auth.js architecture

Changing packages/core/src/errors in Auth.js reaches 140 modules. 19 files call it directly. Snapshot a1a16a5.

The first file to open in Auth.js is packages/core/src/errors. A change there reaches 140 of 308 modules.

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

src/errors140 · 19 fan-in
lib/symbols140 · 9 fan-in
vendored/cookie140 · 3 fan-in
src/warnings140 · 3 fan-in
src/providers139 · 102 fan-in

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

Download the finding

Project: Auth.js · Score: 84.6/100 (Healthy architecture) · 308 modules · 342 edges · TypeScript · 33 of 94 · Language score median 80.1

Cycles
27
Duplicate authorities
12
God modules
4
Layer violations
3
arc impact packages/core/src/errors

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

README badge

ArcSight architecture proof for Auth.js
[![ArcSight architecture proof for Auth.js](https://arcsight.ai/badge/proof/next-auth/)](https://arcsight.ai/repositories/next-auth/)

Blast radius paths

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

Auth.js · a1a16a5

RankFileFan-inBlastShare
1packages/core/src/errors

concentrates too many responsibilities, shared utility hub

1914045%
2packages/core/src/lib/symbols

concentrates too many responsibilities, shared utility hub

914045%
3packages/core/src/lib/vendored/cookie

concentrates too many responsibilities

314045%
4packages/core/src/warnings314045%
5packages/core/src/providers10213945%
All ranked files
RankFileFan-inBlastShare
6packages/core/src/types3713945%

Circular dependencies

This snapshot records 27 dependency cycles.

Nearby proofs

Snapshot notes

In nextauthjs next-auth, a change that begins in core errors keeps traveling until it reaches src symbols, with vendored cookie as the third file on that walk and the config-auth.config group as the group around them, snapshot mark faeefefbba.

core warnings is worth opening beside core errors because core providers still participates when core warnings moves, and core types stays in view for nextauthjs next-auth, snapshot mark faeefefbba.

Review utils cookie only after src symbols and utils logger are both on the table, since the link from utils webauthn-utils back to vendored cookie belongs to nextauthjs next-auth under snapshot mark faeefefbba.

core errors and src symbols are later stops, and a reviewer who has already seen vendored cookie should still look at core warnings before treating the config-auth.config group as understood for nextauthjs next-auth, snapshot mark faeefefbba.

core warnings closes the file list after core providers and core errors, which keeps the nextauthjs next-auth note tied to snapshot mark faeefefbba, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • config-auth.config (6 modules)
  • src-root (4 modules)
  • src-entities (3 modules)
  • src-types (143 modules)
  • lib-types (4 modules)
  • lib-client (3 modules)
  • lib-env (5 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 nextauthjs next-auth: core errors?
Start with core errors, because the rest of the nextauthjs next-auth walk leaves from that file and src symbols is the next file in the same review. Commit faeefefbba records it.
What else is on the nextauthjs next-auth walk besides core errors and vendored cookie?
vendored cookie and core warnings stay on the walk with core providers, which are different files from core errors inside the config-auth.config group for nextauthjs next-auth. Commit faeefefbba records it.
How should a reviewer use core types in the nextauthjs next-auth snapshot?
Keep core types, utils cookie, and utils logger open together, then check utils webauthn-utils before merging the nextauthjs next-auth change. Commit faeefefbba records it.
Where does the nextauthjs next-auth review stop after core errors?
Stop after core errors, src symbols, and vendored cookie have been compared with core warnings, leaving the config-auth.config group until those nextauthjs next-auth files are clear. Commit faeefefbba 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/next-auth/" width="320" height="180" frameborder="0"></iframe>

Explore

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