4
tRPC - End-to-end typesafe APIs made easy | tRPC
source link: https://trpc.io/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
End-to-end typesafe APIs made easy
The client doesn't import any code from the server, only a single TypeScript type. Theimport type
declaration is fully erased at runtime. tRPC transforms this type into a fully typesafe client.🧙♂️ Automatic typesafety
Automatic typesafety & autocompletion inferred from your API-paths, their input data, & outputs.
🍃 Light & Snappy DX
No code generation, run-time bloat, or build pipeline. Zero dependencies & a tiny client-side footprint.
🐻 Add to existing brownfield project
Easy to add to your existing brownfield project with adapters for Connect/Express/Next.js.
@trpc/client
depends on some babel runtime helpers + that afetch()
polyfill/ponyfill is used if the browser doesn't support it.@trpc/react
is built on top of react-query.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK