

Hono Takibi generates type-safe Hono code from OpenAPI / TypeSpec specifications.
From one document it can generate:
- Zod schemas and @hono/zod-openapi route definitions
- App entry and handler stubs
- RPC client and hooks for SWR, TanStack Query, Preact / Solid / Vue / Svelte / Angular Query
- Mock server, TypeScript types and API reference docs
📖 Documentation: hono-takibi.dev · 🔥 Playground
npm install -D hono-takibi
Pass an OpenAPI (.yaml, .yml, .json) or TypeSpec (.tsp) document and an output file:
npx hono-takibi openapi.yaml -o src/routes.ts
For anything beyond a single routes file, create hono-takibi.config.ts:
import { defineConfig } from 'hono-takibi'
export default defineConfig({
input: 'openapi.yaml',
output: './src/routes.ts',
})
input also takes an http(s) URL, with or without a file extension: a remote document is read by its content.
Projects Using Hono Takibi
Distributed under the MIT License. See LICENSE for more information.