@ludin-docs/express
v0.6.5
Published
Express adapter for ludin – Swagger UI with login, accounts, IP allowlist and a themeable UI.
Readme
@ludin-docs/express
Express adapter for ludin — API docs with login, accounts & roles, IP allowlist and an audit log.
npm i @ludin-docs/core @ludin-docs/expressimport express from 'express';
import { ludin } from '@ludin-docs/express';
const app = express();
app.use('/docs', ludin({
spec: './openapi.yaml',
auth: { users: [{ email: '[email protected]', password: process.env.DOCS_ADMIN_PW!, role: 'admin' }] },
ipAllowlist: ['10.0.0.0/8'],
}));The mount path is read from req.baseUrl, so basePath is optional.
All options and roles are documented in the main README.
MIT
