From 86a9892bda7a8fe0225aa0e6776beb8068c91794 Mon Sep 17 00:00:00 2001 From: unnoq Date: Wed, 20 Nov 2024 17:02:27 +0700 Subject: [PATCH] docs: comparisons --- apps/content/content/docs/comparisons.mdx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/apps/content/content/docs/comparisons.mdx b/apps/content/content/docs/comparisons.mdx index 49b2d37a..03d8c408 100644 --- a/apps/content/content/docs/comparisons.mdx +++ b/apps/content/content/docs/comparisons.mdx @@ -4,4 +4,21 @@ description: How is oRPC different from other RPC or REST solutions? icon: GitCompareArrows --- -...(In progress) \ No newline at end of file +This comparison table helps you understand how oRPC differs from other popular TypeScript RPC and REST solutions. + +- ✅ First-class, built-in support +- 🟡 Lacks features, or requires third-party integrations +- 🛑 Not supported or not documented + +| | oRPC | tRPC | ts-rest | Description | +|------------|------------|---------------|---------------|---------------| +| End-to-end Type Safety | ✅ | ✅ | ✅ | Full TypeScript type inference from backend to frontend | +| SSR Support | ✅ | ✅ | ✅ | Server-side rendering compatibility | +| React Query Integration | ✅ | ✅ | 🟡 | Native support for React Query/TanStack Query | +| Vue Query Integration | 🛑 | 🛑 | 🟡 | Native support for Vue Query/TanStack Query | +| Contract-First Development | ✅ | 🛑 | ✅ | API definitions before implementation | +| File Operations | ✅ | 🟡 | 🟡 | Built-in support for file uploads/downloads | +| OpenAPI support | ✅ | 🟡 | 🟡 | Generation and consumption of OpenAPI specs | +| Server actions support | ✅ | ✅ | 🛑 | React/Next.js Actions compatibility | + +> In the future, we'll implement full Tanstack query support for Vue, Svelte, Solid, ... \ No newline at end of file