backend-trpc-openapi
Installation
SKILL.md
tRPC + OpenAPI Integration
Overview
Generate REST endpoints and OpenAPI documentation from your tRPC routers. Get the best of both worlds: type-safe internal API with tRPC, REST/Swagger for external consumers.
Package: trpc-to-openapi (active fork of archived trpc-openapi)
Requirements: tRPC v11+, Zod
Key Benefit: Single source of truth — define once in tRPC, expose as both RPC and REST.
When to Use This Skill
✅ Use tRPC + OpenAPI when:
- Internal apps use tRPC, but need REST for third parties
- Need Swagger/OpenAPI documentation
- Mobile apps (non-React Native) need REST endpoints
- Microservices with mixed languages need interop
- Public API requires REST standard