API Design Patterns

0•

Guides the architectural decision-making process for designing robust, scalable, and secure APIs using modern standards like REST, GraphQL, and tRPC.

This skill provides a comprehensive framework for selecting and implementing API architectures based on specific project requirements. It moves beyond simple pattern matching to help developers think through critical design decisions, including response structuring, versioning strategies, authentication methods, and rate limiting. Whether building a TypeScript monorepo with tRPC or a public-facing RESTful service, this skill ensures consistency, security, and adherence to 2025 industry best practices through detailed decision trees and checklists.

Key Features

01Architecture selection logic for REST, GraphQL, and tRPC
02Security-first design incorporating OWASP API Top 10 principles
03Versioning strategies across URI, Headers, and Query parameters
040 GitHub stars
05Standardized response formatting and error handling patterns
06Comprehensive decision checklists for API consistency and scalability

Use Cases

01Implementing secure authentication and rate-limiting for public endpoints
02Standardizing error codes and pagination formats across an enterprise API
03Choosing the optimal API protocol for a new microservices project