Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ts-rest/core

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-rest/core - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

package.json
{
"name": "@ts-rest/core",
"version": "0.1.4",
"version": "0.1.5",
"description": "RPC-like experience over a regular REST API, with type safe server implementations 🪄",

@@ -5,0 +5,0 @@ "type": "commonjs",

@@ -27,27 +27,23 @@ # ts-rest

| **Features** | REST | tRPC | tREST |
| ----------------- | ---- | ---- | --------- |
| E2E Type Safe | No | ✅ | ✅ |
| Protocol | REST | RPC | REST |
| Public API | ✅ | ❌ | ✅ |
| Zod/Yup/Joi | ❌ | ✅ | 🏗 For 1.0 |
| WebSocket Support | ❌ | ✅ | ❌ |
| **Features** | REST | tRPC | tREST |
| ----------------- | ---- | ----- | ------ |
| E2E Type Safe | ❌ | ✅ | ✅ |
| Protocol | REST | RPC | REST |
| Public API | ✅ | ❌ | ✅ |
| Zod/Yup/Joi | ❌ | ✅ | 🏗 v1.0 |
| WebSocket Support | ❌ | ✅ | ❌ |
| Cmd+Click Access | ❌ | 🏗 v10 | ✅ |
| Separate Contract | ❌ | ❌ | ✅ |
| **Client Libraries** | REST | tRPC | tREST |
| -------------------- | ---- | --------------- | --------- |
| fetch/custom | ✅ | ✅ | ✅ |
| react-query | ✅ | ✅ | 🏗 For 1.0 |
| swr | ✅ | ✅ (via plugin) | 🏗 For 1.0 |
ts-rest also supports [Nest](https://nestjs.com/), it appears adding Nest to tRPC is against the Nest controller principles, so it is not recommended.
| **Server** | REST | tRPC | tREST |
| ---------- | ---- | ---- | --------- |
| Express | ✅ | ✅ | ✅ |
| Nest | ✅ | ❌ | ✅ |
| Next | ✅ | ✅ | 🏗 For 1.0 |
| **Libraries Support** | REST | tRPC | tREST |
| --------------------- | ---- | ----------- | ------ |
| Client fetch/custom | ✅ | ✅ | ✅ |
| Client react-query | ✅ | ✅ | 🏗 v1.0 |
| Client swr | ✅ | ✅ (plugin) | 🏗 v1.0 |
| Server Express | ✅ | ✅ | ✅ |
| Server Nest | ✅ | ❌ | ✅ |
| Server Next | ✅ | ✅ | 🏗 v1.0 |
| **Dev Experience** | REST | tRPC | tREST |
| ------------------ | ---- | ----------- | ----- |
| Cmd+Click Access | ❌ | ✅ (in v10) | ✅ |
| Separate Contract | ❌ | ❌ | ✅ |
## Implementation - API

@@ -54,0 +50,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc