Back

tRPC — Type-safe API

This frontend calls the Hono+tRPC Worker backend with end-to-end type safety. Types are shared through the monorepo, without codegen or duplicated schemas.

Server Component — pre-rendered

Data fetched on the server via api.users.list.query() — zero client JS for this section.

3
Users
2
Posts

Client Components — React Query + tRPC

Interactive components with trpc.users.list.useQuery() — caching, automatic refetch, type-safe mutations.

Client transport

The browser cannot call service bindings directly; binding mode uses local /api/trpc proxy on the Web Worker.

Mode: external

Users

Loading...

Posts

Loading...

What does this show?