hono-rpc-examples
hono-rpc-examples copied to clipboard
🔥 Examples of Hono RPC's lightweight alternative to TRPC.
Hono RPC Examples
These examples mostly use Hono, Hono RPC, and React Query.
Hono RPC is really cool. I want to replace tRPC with this because:
- [x] It's technically still REST endpoints. Not super coupled with the "tRPC" idea.
- [x] Hono is lightweight (I'm not sure if it's more lightweight, I can't benchmark as a scrub)
- [x] Hono is DevX is nice. I think the setup is less tedious than tRPC.
Examples
- next-app - Next 14 App Router
- next-pages - Next 14 Pages Router
- react-codegen - Separate Frontend Host and Backend Host. How do we share types? Codegen. (This assumes client and server are separate repos).
- svelte4 - Svelte 4 and Kit