Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blankeos/hono-rpc-examples

🔥 Examples of Hono RPC's lightweight alternative to TRPC.
https://github.com/blankeos/hono-rpc-examples

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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-app/) - Next 14 App Router
- [next-pages](/next-pages/) - Next 14 Pages Router
- [react-codegen](/react-codegen/) - Separate Frontend Host and Backend Host. How do we share types? Codegen. (This assumes client and server are separate repos).
- [svelte4](/svelte4/) - Svelte 4 and Kit