@easydocs/elysia
v0.10.1
Published
OpenAPI docs for Elysia (Bun), generated from real traffic. Local-first, self-hostable, open source.
Readme
@easydocs/elysia
EasyDocs plugin for Elysia (Bun-native). 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
bun add @easydocs/elysiaUsage
import { Elysia } from 'elysia'
import { easydocs } from '@easydocs/elysia'
const app = new Elysia()
.use(easydocs())
.get('/users', () => ({ users: [] }))
.listen(3000)Configuration
app.use(easydocs({
ai: { provider: 'openai', model: 'gpt-4o' },
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.
