@hono-openapi/scalar
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

Hono Openapi Scalar

Hono Openapi is a drop in zero configuration extension for Hono. It automatically generates OpenApi documentation which is exposed via the modern Scalar frontend or the traditional Swagger Ui.

The Scalar package contains bindings to display the scalar ui frontend. For further information and documentation take a look at the main repository.

scalar example

Versioning

This package does not bundle scalar directly but rather points to a CDN: https://cdn.jsdelivr.net/npm/@scalar/api-reference . This ensures that always the newest version is included without the need to republish a package and that the actual bundle size is tiny as the scalar package is a dependency of core.

If you want to pin a version or host it yourself you can always overwrite the script locations with

scalar({
  cdnUrl: '.....',
});

Package Sidebar

Install

npm i @hono-openapi/scalar

Weekly Downloads

12

Version

0.0.8

License

none

Unpacked Size

38.7 kB

Total Files

6

Last publish

Collaborators

  • kilian19