{"enrichment":{"faq":[{"a":"implementing-api-patterns guides you through building REST APIs using FastAPI, a modern Python framework that automatically generates OpenAPI documentation. FastAPI provides decorators for defining endpoints, automatic request validation, and built-in support for async operations. The skill covers structuring your routes, handling different HTTP methods, and leveraging FastAPI's Swagger UI integration for interactive API documentation.","q":"How do I build a REST API with FastAPI?"},{"a":"implementing-api-patterns compares GraphQL vs REST to help you decide. REST is ideal for simple, resource-oriented APIs with predictable access patterns. GraphQL excels when frontends need flexible data fetching, reducing over-fetching and under-fetching. The skill explains trade-offs in complexity, caching, and tooling, helping you select based on your use case, team expertise, and performance requirements.","q":"Should I choose GraphQL or REST for my backend?"},{"a":"implementing-api-patterns covers pagination approaches including cursor-based and offset-based methods. Cursor-based pagination is more efficient for large datasets and handles insertions better, while offset-based is simpler to implement. The skill explains when to use each, how to implement them across REST and GraphQL, and best practices for maintaining consistency and performance.","q":"What are the best API pagination strategies?"},{"a":"implementing-api-patterns teaches rate limiting using token bucket algorithms and sliding windows, plus HTTP caching strategies. You'll learn to implement rate limiting middleware, set appropriate cache headers, and use tools like Redis for distributed caching. The skill covers both client-side and server-side approaches to protect your API and improve performance.","q":"How do I add rate limiting and caching to my API?"},{"a":"implementing-api-patterns recommends frameworks based on your language: FastAPI for Python, Axum for Rust, Gin for Go, and Hono for edge computing. Each excels in different contexts\u2014Rust's Axum and async-graphql offer extreme performance, Go's Gin provides simplicity and speed, while Hono targets serverless and edge environments. The skill helps match framework choice to your performance and deployment needs.","q":"Which framework should I use for high-performance APIs?"},{"a":"implementing-api-patterns covers gRPC setup for high-performance service-to-service communication. You'll learn protocol buffers for defining services, implementing gRPC servers in languages like Rust (Tonic) and Go, and using connect-go for browser compatibility. The skill explains when gRPC outperforms REST, how to structure microservices, and strategies for versioning and backward compatibility.","q":"How do I implement gRPC for microservices communication?"}],"shadow_tags":["backend-frameworks","type-safety","performance-optimization","protocol-selection","api-documentation","data-fetching","service-communication","edge-deployment","request-handling","schema-validation"],"summary_rewrite":"Select and implement the optimal API pattern for your backend needs. This skill guides you through REST, GraphQL, gRPC, and tRPC with framework recommendations for Python, TypeScript, Rust, and Go, plus pagination, caching, rate limiting, and OpenAPI documentation strategies."},"files":[{"bytes":11977,"path":"skills/implementing-api-patterns/SKILL.md","sha256":"0695ad2f71ef0cf9c4e5eaa08c41045a992d06b177c045daa66124377caa3050","url":"https://skillfed.io/files/ancoleman/ai-design-components/implementing-api-patterns/19d79427/SKILL.md"}],"id":"ancoleman/ai-design-components/implementing-api-patterns","links":{"html":"https://skillfed.io/ancoleman/ai-design-components/implementing-api-patterns","md":"https://skillfed.io/ancoleman/ai-design-components/implementing-api-patterns.md","repo":"https://github.com/ancoleman/ai-design-components"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":59,"language":"Python","last_updated":"2025-12-11","license":"MIT","name":"implementing-api-patterns","publisher":"ancoleman","stars":390},"relations":{"categories":["backend-development","api-design","microservices"],"similar":[{"id":"vasilyu1983/AI-Agents-public/software-backend"},{"id":"samhvw8/dot-claude/backend-development"},{"id":"samhvw8/dotfiles/backend-development"},{"id":"binjuhor/shadcn-lar/backend-development"},{"id":"siviter-xyz/dot-agent/backend-engineer"},{"id":"vasilyu1983/AI-Agents-public/dev-api-design"},{"id":"mrgoonie/claudekit-skills/backend-development"},{"id":"oakoss/agent-skills/trpc"},{"id":"modu-ai/moai-adk/moai-domain-backend"},{"id":"ancoleman/ai-design-components/designing-apis"}]},"slug":{"owner":"ancoleman","repo":"ai-design-components","skill":"implementing-api-patterns"},"version":"19d79427"}
