← 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%.
Median 60%. Thick bar is blast share. Thin bar is fan-in.
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/errorsUnder 3 minutes to first arc impact on a TypeScript monorepo (internal runs).
README badge
[](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
| Rank | File | Fan-in | Blast | Share |
|---|---|---|---|---|
| 1 | packages/ concentrates too many responsibilities, shared utility hub | 61 | 229 | 21% |
| 2 | packages/ concentrates too many responsibilities, shared utility hub | 15 | 221 | 20% |
| 3 | packages/ concentrates too many responsibilities | 10 | 208 | 19% |
| 4 | packages/ | 28 | 207 | 19% |
| 5 | packages/ | 14 | 207 | 19% |
All ranked files
| Rank | File | Fan-in | Blast | Share |
|---|---|---|---|---|
| 6 | packages/ | 44 | 206 | 19% |
| 7 | packages/ | 29 | 206 | 19% |
| 8 | packages/ | 9 | 206 | 19% |
Circular dependencies
This snapshot records 100+ dependency cycles.
Nearby proofs
- date-fns architecture 77.8/100 · 1,120 modules
- Leon architecture 80.1/100 · 1,199 modules
- gemini-cli architecture 68.5/100 · 1,240 modules
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 breaksarc scanFind issuesarc fixApply fixesarc finishResolve remainingarc watchKeep clean
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.
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