I built a starter template "create-rpc" [1] to help my freelancer friends to easily setup RPC API for Typescript projects.
The core is powered by meta-programming, aka code that further generates code.
It auto generate typed client SDK with named types for API input and output. And it comes with JWT integrated out of the box.
Compared to traditional untyped restful API over http, it helps developer to prototype and evolve the application with inferred type hint.
Upcoming improvement will be runtime type checking with cast.ts [2] or ts-type-check [3]
[1] https://www.npmjs.com/package/create-rpc