Hacker News new | ask | show | jobs
by _heimdall 930 days ago
I'm thinking mainly about about SPA frameworks (metaframeworks?) like NextJS, SvelteKit, Remix, and I think NuxtJS as well though I'm less familiar.

They're all adding features where code is marshalled back to the server either through useServer() hooks, pragmas, or magic $ signs and imports.

They all create RPC calls as part of the build and bundle step. Depending on the specific implementation, that usually means taking code that otherwise looks like client code, moving it to the server bundle with a unique API signature, and swapping the RPC API call into the client code.