API Design Patterns & Architecture

0•

Guides the selection and implementation of modern API architectures including REST, GraphQL, and tRPC with standardized best practices.

This skill provides a comprehensive framework for designing scalable, secure, and maintainable APIs by helping developers navigate complex architectural decisions. It moves beyond simple pattern copying by offering decision trees for choosing between REST, GraphQL, and tRPC based on specific project needs. The skill covers essential design elements such as resource naming, response envelope patterns, versioning strategies, and robust authentication protocols like JWT and OAuth. It also includes guidance on security audits via OWASP standards and provides a validation script to ensure implementation consistency across your project.

Key Features

010 GitHub stars
02Multi-strategy versioning guidance (URI, Header, and Query-based)
03Context-aware selection between REST, GraphQL, and tRPC architectures
04Comprehensive security patterns covering JWT, OAuth, and Passkeys
05Automated API endpoint validation via integrated Python scripts
06Standardized response formatting for consistent pagination and error handling

Use Cases

01Standardizing documentation and response formats across a distributed development team
02Choosing the optimal API paradigm for a new TypeScript monorepo or microservice
03Auditing and refactoring existing API endpoints for security and performance