Comparison
Compare rest-rpc with other popular TypeScript REST/RPC libraries.
- ✅ First-class supported feature
- 🟡 Lacks first-class support
- 🛑 Not supported
| Feature | rest-rpc | ts-rest | oRPC | tRPC |
|---|---|---|---|---|
| REST contract as the source of truth | ✅ | ✅ | 🟡 | 🛑 |
| REST-first contract with RPC-style calls | ✅ | 🟡 | 🛑 | 🛑 |
| Contract-first development | ✅ | ✅ | ✅ | 🛑 |
| Framework-independent contract | ✅ | ✅ | ✅ | 🟡 |
| Typed expected HTTP outcomes | ✅ | ✅ | ✅ | 🟡 |
| Standard Schema-compatible validation | ✅ | 🟡 | ✅ | 🟡 |
| Framework-neutral TanStack Query options | ✅ | 🟡 | ✅ | 🟡 |
| OpenAPI generated from the TypeScript contract | ✅ | ✅ | ✅ | 🟡 |
| Typed non-JSON request and response bodies | ✅ | 🟡 | ✅ | 🟡 |
| Typed streaming HTTP responses | ✅ | 🟡 | ✅ | ✅ |
| Typed WebSocket routes in the same contract tree | ✅ | 🛑 | ✅ | ✅ |