api-patterns
Installation
SKILL.md
API Integration Patterns
Pick the protocol by data shape, ownership, and runtime constraints. Avoid mixing patterns without a clear boundary.
Selection Guide
- REST:
- Standard CRUD, broad client compatibility, simple caching.
- GraphQL:
- Flexible read models, multi-client data composition, schema governance.
- WebSocket:
- Bi-directional real-time channels with low-latency updates.
- SSE:
- Server-to-client streaming where client push is unnecessary.
- tRPC:
- End-to-end TypeScript contracts in monorepos.