@easydocs/h3
v0.10.1
Published
OpenAPI docs for h3, Nitro & Nuxt, generated from real traffic. Local-first, self-hostable, open source.
Readme
@easydocs/h3
EasyDocs plugin for h3, Nitro, and Nuxt. 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/h3h3
import { createApp } from 'h3'
import { easydocs } from '@easydocs/h3'
const app = createApp()
app.use(easydocs())
// your routes stay the sameNitro / Nuxt
Create server/plugins/easydocs.ts:
import { easydocs } from '@easydocs/h3'
export default defineNitroPlugin((nitroApp) => {
nitroApp.h3App.use(easydocs())
})Configuration
app.use(easydocs({
ai: { provider: 'anthropic' },
capture: { ignoreRoutes: ['/health'] },
}))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.
