API Design Patterns

0•

Provides expert guidance on API architectural decisions, design principles, and implementation best practices for modern web services.

The API Patterns skill empowers developers to architect robust, scalable, and secure web services by providing a comprehensive framework for strategic decision-making. Rather than promoting rigid templates, it helps users evaluate the technical trade-offs between REST, GraphQL, and tRPC while enforcing production-grade standards for response formatting, versioning, authentication, and rate limiting. Whether starting a new microservice or refactoring a legacy backend, this skill ensures consistency and follows industry standards like the OWASP API Top 10 to prevent common design pitfalls and security vulnerabilities.

Key Features

01Standardized response structures for pagination, error handling, and data envelopes
02Automated API endpoint validation via built-in validation scripts
03Implementation guides for URI, Header, and Query-based versioning strategies
040 GitHub stars
05Security patterns for JWT, OAuth, Passkeys, and rate-limiting protection
06Architectural decision trees for choosing between REST, GraphQL, and tRPC

Use Cases

01Selecting the optimal API protocol for a new TypeScript fullstack project using tRPC vs REST
02Conducting a security audit against the OWASP API Top 10 for existing backend endpoints
03Designing a consistent error reporting and pagination system for a public-facing API