Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ts-rest – E2E type safety, no code-gen, supports all your favourite frameworks (ts-rest.com)
1 point by oliverbutler on Jan 22, 2023 | hide | past | favorite | 2 comments


We've just established a core team, continuing to create a strong community and are looking to seek feedback for API improvements!

ts-rest provides an RPC-like client side interface over your existing REST APIs, as well as allowing you define a separate contract implementation rather than going for a 'implementation is the contract' approach, which is best suited for smaller or simpler APIs.

If you have non typescript consumers, a public API, or maybe want to add type safety to your existing REST API? ts-rest is what you're looking for!


This is almost useless for now. In real world, people are using openapi generator to generate all kinds of rest clients.

The issue with tRPC, is it couldn't be generated from a specification.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: