最近在看 proselog(https://github.com/proselog/proselog)的代码时看到用了 tRPC 这个库,顺手看了一下官方介绍。它要解决的问题跟 GraphQL 有点像:"Simple, strong types. Feels like a more elegant choice than plain REST or GraphQL when using TS in a monorepo."
tRPC - Move Fast and Break Nothing. End-to-end typesafe APIs made easy.End-to-end typesafe APIs for TypeScript. Write procedures on the server, call them from the client with their types, and serve them on any runtime.trpc.io
