Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

discord.js architecture

Changing packages/discord.js/src/errors in discord.js reaches 229 modules. 61 files call it directly. Snapshot 5bb7492.

The first file to open in discord.js is packages/discord.js/src/errors. A change there reaches 229 of 1,102 modules.

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

src/errors229 · 61 fan-in
util/BitField221 · 15 fan-in
util/Constants208 · 10 fan-in
managers/CachedManager207 · 28 fan-in
util/PermissionsBitField207 · 14 fan-in

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

Download the finding

Project: discord.js · Score: 72.3/100 (Moderate technical debt) · 1,102 modules · 3,140 edges · TypeScript · 65 of 94 · Language score median 80.1

Cycles
100+
Duplicate authorities
195
God modules
36
Layer violations
0
arc impact packages/discord.js/src/errors

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

README badge

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

Blast radius paths

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

discord.js · 5bb7492

RankFileFan-inBlastShare
1packages/discord.js/src/errors

concentrates too many responsibilities, shared utility hub

6122921%
2packages/discord.js/src/util/BitField

concentrates too many responsibilities, shared utility hub

1522120%
3packages/discord.js/src/util/Constants

concentrates too many responsibilities

1020819%
4packages/discord.js/src/managers/CachedManager2820719%
5packages/discord.js/src/util/PermissionsBitField1420719%
All ranked files
RankFileFan-inBlastShare
6packages/discord.js/src/structures/Base4420619%
7packages/discord.js/src/util/Util2920619%
8packages/discord.js/src/structures/GuildChannel920619%

Circular dependencies

This snapshot records 100+ dependency cycles.

Nearby proofs

Snapshot notes

In discordjs discord-js, a change that begins in discord.js errors keeps traveling until it reaches util BitField, with util Constants as the third file on that walk and the components-SeeNode group as the group around them, snapshot mark ecddcefdef.

managers CachedManager is worth opening beside discord.js errors because util PermissionsBitField still participates when managers CachedManager moves, and structures Base stays in view for discordjs discord-js, snapshot mark ecddcefdef.

Review src Util only after util BitField and structures GuildChannel are both on the table, since the link from errors ErrorCodes back to util Constants belongs to discordjs discord-js under snapshot mark ecddcefdef.

errors Messages and errors DJSError are later stops, and a reviewer who has already seen discord.js errors should still look at util BitField before treating the components-SeeNode group as understood for discordjs discord-js, snapshot mark ecddcefdef.

util BitField closes the file list after util Constants and discord.js errors, which keeps the discordjs discord-js note tied to snapshot mark ecddcefdef, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • components-SeeNode (16 modules)
  • util-env (6 modules)
  • formatTag-formatTag (3 modules)
  • releasePackages-generateReleaseTree (3 modules)
  • mixins-ApiItemContainerMixin (50 modules)
  • tsdoc-CommentBlock (15 modules)
  • analyzer-AstSymbol (33 modules)
  • api-Extractor (13 modules)
  • redis-BaseRedis (6 modules)
  • components-Assertions (27 modules)
  • components-Components (55 modules)
  • api-webhook (22 modules)
  • util-constants (3 modules)
  • util-loaders (6 modules)
  • util-loaders (9 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 discordjs discord-js: discord.js errors?
Start with discord.js errors, because the rest of the discordjs discord-js walk leaves from that file and util BitField is the next file in the same review. Commit ecddcefdef records it.
What else is on the discordjs discord-js walk besides discord.js errors and util Constants?
util Constants and managers CachedManager stay on the walk with util PermissionsBitField, which are different files from discord.js errors inside the components-SeeNode group for discordjs discord-js. Commit ecddcefdef records it.
How should a reviewer use structures Base in the discordjs discord-js snapshot?
Keep structures Base, src Util, and structures GuildChannel open together, then check errors ErrorCodes before merging the discordjs discord-js change. Commit ecddcefdef records it.
Where does the discordjs discord-js review stop after errors Messages?
Stop after errors Messages, errors DJSError, and discord.js errors have been compared with util BitField, leaving the components-SeeNode group until those discordjs discord-js files are clear. Commit ecddcefdef 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/discord-js/" width="320" height="180" frameborder="0"></iframe>

Explore

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