API

Type-Safe Hono RPC

End-to-end type safety between client and server without code generation using Hono & Zod.

The Hono RPC router exports its TypeScript app type directly. Frontend components import `apiClient` and enjoy full autocompletion for routes, query parameters, request bodies, and responses.

src/routes/dashboard/+page.svelte
import { client } from '$lib/api-client';

// Fully typed call with autocompletion and compile-time error checking:
const res = await client.api.projects.$get();
const data = await res.json();