Better Auth vs Auth.js
Auth.js file packages/core/src/errors reaches 140 modules. Better Auth file src/crypto reaches 134 modules.
Snapshot
Stored analysis for both repositories.
ArcSight CLI (simulated)
$ arc analyze better-auth
Architecture Score: 78.5
Modules: 281
Cycles: 25
Hotspots: 15
Primary Pattern: Modular Monolith
$ arc analyze next-auth
Architecture Score: 84.6
Modules: 308
Cycles: 27
Hotspots: 15
Primary Pattern: Modular Monolith
Snapshot from commit 8382ce6 and a1a16a5. The browser did not re-run the scan.
| Metric | Better Auth | Auth.js |
|---|---|---|
| Architecture score | 78.5 | 84.6 |
| Architecture complexity | 39 | 23 |
| Modules | 281 | 308 |
| Dependency edges | 890 | 342 |
| Dependency cycles | 25 | 27 |
| Subsystem count | 2 | 7 |
| Layer violations | — | 3 |
| Duplicate authorities | 63 | 12 |
| Dependency density | 3.2 | 1.1 |