Service/Repository Pattern
Separate business logic from data access. Services contain rules and validation, repositories handle database operations.
Architecture & Patterns
Consistent, predictable code isn't just easier to maintain—it's essential for effective AI collaboration.
Separate business logic from data access. Services contain rules and validation, repositories handle database operations.
All API routes use the createRouteHandler wrapper for consistent authentication and error handling.
Zod schemas co-located with services provide runtime type safety and validation.
Drizzle ORM with repository pattern abstracts data access and provides full type safety.