The Layered Repository Standard
Organize files into clean, predictable layers: - `src/controllers/` or `src/routes/`: Request handling and validation - `src/services/`: Core business logic decoupled from HTTP frameworks - `src/repositories/` or `src/models/`: Database interaction queries - `src/config/`: Environment variable validation (Zod) - `tests/`: Separate unit and integration suites