API Contract Auditor

•
147
•

Audits API contracts and service boundaries to ensure clean architecture, prevent layer leakage, and enforce consistent DTO patterns.

The ln-643-api-contract-auditor is a specialized worker designed to maintain architectural integrity at the service layer. It automatically scans codebase boundaries to detect critical issues such as ORM entity leakage to the API, missing Data Transfer Objects (DTOs), and inconsistent error handling. By providing a structured analysis with penalty-based scoring across compliance, completeness, quality, and implementation, it helps development teams enforce best practices and prevent transport-level details from bleeding into business logic, ensuring a robust and maintainable backend.

Características Principales

01Detects layer leakage and transport-level types in service signatures
02Provides automated architectural scoring and diagnostic sub-scores
03Standardizes error handling patterns across service boundaries
04147 GitHub stars
05Identifies missing DTOs for complex method parameters and groupings
06Flags direct ORM entity leakage to API response layers

Casos de Uso

01Automating architectural reviews during CI/CD or code merge processes
02Refactoring legacy backends to enforce clean separation of concerns
03Ensuring new API endpoints adhere to domain-driven design (DDD) patterns