@easydocs/hono
v0.10.1
Published
OpenAPI docs for Hono, generated from real traffic. Local-first, self-hostable, open source.
Readme
@easydocs/hono
EasyDocs middleware for Hono. Works on Node.js, Cloudflare Workers, Bun, and Deno. Generate accurate OpenAPI 3.0 specs from your API's real traffic — local-first and self-hostable, with an offline mode (Ollama) where nothing leaves your machine.
Install
npm install @easydocs/honoUsage
import { Hono } from 'hono'
import { easydocs } from '@easydocs/hono'
const app = new Hono()
app.use(easydocs())
// Your routes — nothing changes here
app.get('/users', (c) => c.json({ users: [] }))
export default appConfiguration
app.use(easydocs({
ai: {
provider: 'ollama',
model: 'llama3.2',
baseUrl: 'http://localhost:11434/v1',
},
}))View your docs
npm install -D @easydocs/dashboard
npx @easydocs/cli dashboard
# Or export to a file
npx @easydocs/cli export > openapi.jsonSee @easydocs/core for the full configuration reference.
