What problem does it solve? Building scalable server-side applications requires consistent architectural decisions across API design, data access, caching, and error handling, and ad-hoc implementations lead to N+1 queries, inconsistent error responses, and unmaintainable code. ## Core Features & Use Cases - API & Layering Patterns: Provides RESTful endpoint conventions plus repository, service, and middleware patterns for Express and Next.js API routes. - Database & Caching Guidance: Covers query optimization, N+1 prevention, transactions via Supabase RPC, and Redis cache-aside strategies. - Resilience & Security Patterns: Includes centralized error handling, retry with exponential backoff, JWT authentication, role-based access control, rate limiting, and structured logging. - Use Case: When adding a new authenticated endpoint to a Next.js app, apply the withAuth middleware, repository pattern, and centralized error handler to ship a consistent, production-shaped route. ## Quick Start Apply backend patterns to design a new authenticated REST endpoint with caching and proper error handling for my Next.js API.