Skip to content
Client OS
Menu

Feature

Typed API with OpenAPI

A Hono API whose routes are OpenAPI definitions, with a generated client for the web.

apps/api is a Hono app built with OpenAPIHono. Each route declares its request and response schemas with Zod, so the OpenAPI 3.1 document is generated from the same definitions the server validates against.

`pnpm openapi:dump` writes that document to packages/api-client/openapi.json, and kubb generates typed hooks and types from it. CI re-dumps the document on every pull request and fails if the committed copy fell behind the routes.