@ludin-docs/fastify
v0.6.5
Published
Fastify plugin for ludin – OpenAPI docs with login, accounts, IP allowlist and a themeable UI.
Readme
@ludin-docs/fastify
Fastify plugin for ludin — API docs with login, accounts & roles, IP allowlist and an audit log.
npm i @ludin-docs/core @ludin-docs/fastifyimport { ludin } from '@ludin-docs/fastify';
await app.register(ludin({
spec: './openapi.yaml',
auth: { users: [{ email: '[email protected]', password: process.env.DOCS_ADMIN_PW!, role: 'admin' }] },
}), { prefix: '/docs' });The mount path comes from the register prefix. Body parsing is replaced inside the plugin scope only, so the rest of your app is untouched.
All options and roles are documented in the main README.
MIT
