@oakbun/scalar
v4.0.0
Published
Scalar API docs plugin for the OakBun framework.
Maintainers
Readme
@oakbun/scalar
Scalar API documentation plugin for the OakBun framework. Serves an interactive OpenAPI UI from your route definitions.
Installation
bun add @oakbun/scalarUsage
import { createApp } from 'oakbun'
import { scalarPlugin } from '@oakbun/scalar'
const app = createApp({ adapter: db })
// ... register your modules ...
scalarPlugin(app, {
path: '/docs',
title: 'My API',
version: '1.0.0',
})
app.listen({ port: 3000 })
// Visit http://localhost:3000/docsLicense
MIT
