API Design Patterns
Guides architectural decision-making for scalable and secure API development using REST, GraphQL, and tRPC standards.
API Design Patterns is a comprehensive architectural skill designed to help developers move beyond boilerplate code and think critically about their backend structures. It provides a robust framework for selecting the right API style—whether it's REST for resource-based systems, GraphQL for complex data graphs, or tRPC for type-safe TypeScript monorepos. The skill includes detailed patterns for response formatting, versioning, pagination, and authentication, ensuring that every endpoint is production-ready, secure, and well-documented.
Key Features
01Standardized response formats and error handling patterns
02Decision trees for choosing between REST, GraphQL, and tRPC
03Rate limiting and API protection strategies
040 GitHub stars
05Comprehensive authentication guidance for JWT, OAuth, and Passkeys
06Security-first design following OWASP API Top 10 standards
Use Cases
01Implementing robust security and rate-limiting layers for public-facing endpoints
02Standardizing response structures and pagination across an existing API surface
03Architecting a new backend service and selecting the optimal communication protocol