Making your own tRPC-like library
summary
Concrete steps for building a tRPC-like layer appear: a proxy-based client that records a dotted path and args, uses the apply trap to forward calls, and maps those to Meteor-style RPC endpoints so type-aware calls become strings sent to the server. Implementation uses JS proxies, shows the exact handler code and a runnable repo, and demonstrates optional caching and integration with re query so the library actually works with existing APIs.
AI-written summary · about
related talks
05mFull-stack & Typesafe React (+Native) Apps with tRPC.io
26mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
27mUnlock the Proxy Power (Vue.js)
37mMeteor - A Full Stack Framework For Building Pure JavaScript Apps
22mUsing the Proxy API for State Management
51mProxies are Awesome!
50mMetaprogramming in JavaScript
52mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
