--

Hi Thomas! I appreciate the feedback. tRPC is indeed a tool for building APIs and REST is a concept. My goal with this article was to provide an alternative to having to create and manage an entire REST API (or any API for that matter). In this specific example, it's tied to Next.js where this tool plays really nicely with Next API routes. Of course, you could build those as traditional REST endpoints as well. If you do need a separate backend, you could build your API using Express and tRPC and then receive all the type-safety benefits that come with it, but you can always build a REST API as well in whatever language and framework you want. If just depends on you and what you need to do!

--

--

Brock Joseph Herion
Brock Joseph Herion

Written by Brock Joseph Herion

I am a software developer who love coding in Python, Javascript, and C#. I am a sucker for learning new technologies and tooling to make development easier.

No responses yet