EasyDocs plugin for Fastify. 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.
npm install @easydocs/fastifyimport Fastify from 'fastify'
import { easydocs } from '@easydocs/fastify'
const app = Fastify()
await app.register(easydocs)
// Your routes — nothing changes here
app.get('/users', async () => ({ users: [] }))
await app.listen({ port: 3000 })await app.register(easydocs, {
ai: {
provider: 'openai',
model: 'gpt-4o',
},
capture: {
ignoreRoutes: ['/health'],
},
})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.