ArchDriftArchitectural smoke detector for TypeScript codebases. Detects structural erosion while you're coding, not months later in refactors.
What You'll See After Installing
What It DetectsLayer ViolationsForbidden dependencies between architectural layers. Flags when domain logic imports from API layers, or infrastructure depends on domain code. N+1 QueriesDatabase or API calls executed inside loops, indicating potential performance bottlenecks. God ClassesFiles exceeding 800 lines of code. Large Class: 801-1,500 lines. Monolith: 1,501+ lines (2,500+ for type definitions). CalibrationDetection thresholds are calibrated against an audit of 43 high-velocity TypeScript repositories, including React, Prisma, Supabase, Storybook, and Angular. This ensures signals are grounded in real-world patterns rather than arbitrary rules. Domain AwarenessArchDrift applies domain-aware heuristics to adjust analysis sensitivity based on project characteristics:
This prevents false positives in utility libraries (where large files are expected) while maintaining strict standards for frameworks. InstallationVS Code Extension
Development
Press UsageArchDrift runs automatically. Diagnostics appear in the Problems panel with severity levels:
Use Command Palette → "ArchDrift: Generate Workspace Report" for a comprehensive drift analysis. How It WorksStatic analysis of import statements, loop constructs, and file structure. Production code is identified by excluding test files, build artifacts, and files ignored by Structural Integrity IndexArchDrift summarizes detected signals into a drift snapshot designed to be compared across scans and repositories analyzed with the same methodology. Real-World ResultsSelected examples from an audit of 43 TypeScript repositories:
Most production codebases tend toward one of these profiles over time. ArchDrift shows which direction yours is moving - and whether that movement is accelerating. LicenseMIT |
