Blankeos / hono-rpc-examples

🔥 Examples of Hono RPC's lightweight alternative to TRPC.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  • It's technically still REST endpoints. Not super coupled with the "tRPC" idea.
  • Hono is lightweight (I'm not sure if it's more lightweight, I can't benchmark as a scrub)
  • 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

About

🔥 Examples of Hono RPC's lightweight alternative to TRPC.


Languages

Language:TypeScript 80.5%Language:JavaScript 8.6%Language:Svelte 7.3%Language:HTML 2.5%Language:CSS 1.1%