TLDR: The backend framework as a Vite and Rsbuild plugin. You import server functions on the client side, and they are executed on the server side with full type safety. It's powered by my own tiny JSON RPC 2.0 server implementation (under 2 KB minzipped btw).