@ludin-docs/hono
v0.6.5
Published
Hono handler for ludin – OpenAPI docs with login, accounts, IP allowlist and a themeable UI.
Readme
@ludin-docs/hono
Hono handler for ludin — API docs with login, accounts & roles, IP allowlist and an audit log.
npm i @ludin-docs/core @ludin-docs/honoimport { mountLudin } from '@ludin-docs/hono';
mountLudin(app, {
spec: './openapi.yaml',
basePath: '/docs',
auth: { users: [{ email: '[email protected]', password: process.env.DOCS_ADMIN_PW!, role: 'admin' }] },
});On runtimes that do not expose the client address (Cloudflare Workers, Vercel Edge …) set trustProxy so IP rules can read X-Forwarded-For; without it every request looks address-less and is blocked.
All options and roles are documented in the main README.
MIT
