Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
スキーマ駆動で、Zod OpenAPI Honoによる、API開発するために、Hono Tak...
Search
N Akita
October 17, 2025
Programming
720
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
スキーマ駆動で、Zod OpenAPI Honoによる、API開発するために、Hono Takibiというライブラリを作っている
スキーマ駆動で、Zod OpenAPI Honoによる、API開発するために、Hono Takibiというライブラリを作っている
N Akita
October 17, 2025
More Decks by N Akita
See All by N Akita
npmライブラリを自作して、感じたこと
nakita628
0
96
TypeSciprt + Express + Prisma + Node.js API開発
nakita628
0
35
Other Decks in Programming
See All in Programming
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
1
210
AI がコードを書く時代における新卒エンジニアの仕事風景 (2026) / New Graduate Engineers in the Era of AI Coding (2026)
sushichan044
0
230
SLOをサービス品質の共通言語にするために 取り組んできたこと
wakana0222
0
540
AIが無かった頃の素敵な出会いの話
codmoninc
1
200
Welcome to the "Parametricity" 🏙️ − Generic だけど Specific な世界 −
guvalif
PRO
1
180
Claude Team Plan導入・ガイド
tk3fftk
0
220
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
410
初めてのKubernetes 本番運用でハマった話
oku053
0
130
壊れたパーサから始める関数型設計と構成的なパーサ #fp_matsuri
raiga0310
2
390
地域 SRE コミュニティ最前線 - ホンマでっかSRE勉強会
tk3fftk
0
270
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
4
1.1k
「正の参照」と 「負の導出」で組む ハーネスエンジニアリング
cottpan
1
150
Featured
See All Featured
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
120k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
230
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
320
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
BBQ
matthewcrist
89
10k
Everyday Curiosity
cassininazir
0
260
Making the Leap to Tech Lead
cromwellryan
135
10k
The SEO Collaboration Effect
kristinabergwall1
1
510
Java REST API Framework Comparison - PWX 2021
mraible
34
9.5k
Transcript
スキーマ駆動で、Zod OpenAPI Hono による、API 開発するため に、Hono Takibi というライブラ リを作っている N
Akita
About Me Hono が、プログラム人生の8 割 Dvorak 歴は、7 割
Hono Takibi OpenAPI 、TypeSpec から、Zod OpenAPI Hono を生成するライブラリ
Development Background Zod OpenAPI Hono の登場 Zodios やopenapi-zod-client などのライブラリを参考 OpenAPI
→ Zodios OpenAPI openapi-zod-client Zodios
OpenAPI → Zod OpenAPI Hono 変換できるのでは?
Usage OpenAPI → Zod OpenAPI Hono OpenAPI Hono Takibi Zod
OpenAPI Hono npm i -D hono-takibi npx hono-takibi openapi.yaml -o output.ts
None
hono-takibi.config.ts hono-takibi.config.ts を用いて、出力のカスタマイズも可能 import { defineConfig } from 'hono-takibi/config'
export default defineConfig({ input: 'main.tsp', 'zod-openapi': { schema: { output: './src/schemas/index.ts', exportType: true, }, route: { output: './src/routes/index.ts', import: '../schemas', }, }, rpc: { output: './src/rpc/index.ts', import: '../client', }, })
None
Hono OpenAPI Approach Hono Hono OpenAPI OpenAPI Swagger UI Scalar
Zod OpenAPI Hono Approach Zod OpenAPI Hono OpenAPI Swagger UI
Scalar
Hono Takibi Approach OpenAPI Hono Takibi Zod OpenAPI Hono Swagger
UI Scalar
TypeSpec API 定義を簡潔に行うことができる
Summary Hono Takibi は、スキーマ駆動のAPI 開発を支援するライブラリ 先に、OpenAPI 定義を用意して、Zod OpenAPI Hono を生成
Getting Started with Hono Takibi 🔥