Docs → Hono Integration
🔗
Hono Integration
Middleware for Hono apps
Use the `toon` middleware for Hono to parse and respond with TOON.
Hono Middleware
import { Hono } from "hono"; import { toon } from "toonkit2/hono"; const app = new Hono(); app.use("*", toon()); app.post("/devices", (c) => c.json({ ok: true, received: c.req.toon() }));