Hype Stack types flow from the database schema all the way to your React components. No manual type wiring, no drift between backend and frontend.
Prisma schema -> Kysely types -> Hono routes -> HyperFetch SDK -> React hooks
useFetch, useSubmit) infer params, body, and response types from the SDKWhen you define a backend route with Zod validation:
app.post(
"/projects",
zValidator("json", createProjectSchema),
async (c) => {
const data = c.req.valid("json");
const project = await createProject(data);
return c.json(project);
}
);
The frontend SDK picks up the types automatically:
const { submit } = useSubmit(sdk.projects.$post);
// submit() knows the body shape and return type
No code generation step. No OpenAPI spec. The types are inferred at compile time through TypeScript's type system.
sdk.<path>.$methodThat's it. Change a field name in the Zod schema and the frontend breaks at compile time, not in production.