{"library":"koa2-swagger-ui","type":"library","category":null,"description":"koa2-swagger-ui provides a middleware for Koa v2 applications, enabling developers to easily host Swagger UI at a specified route. It integrates directly into the Koa request-response cycle, allowing for API documentation to be served alongside the application. The package is currently at version 5.12.0 and maintains an active release cadence, with multiple updates per year to bump internal Swagger UI versions and add features. Key differentiators include its tight integration with the Koa ecosystem, offering simple configuration for routes, spec loading (from URL or inline object), and customization options for the UI's appearance, such as custom CSS and CDN URLs for Swagger assets. It also supports loading OpenAPI specifications from YAML files via `yamljs`.","language":"javascript","status":"active","version":"5.12.0","tags":["javascript","swagger","docs","swagger-ui","koa","koa2","middleware","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install koa2-swagger-ui","imports":["import { koaSwagger } from 'koa2-swagger-ui';","import { KoaSwaggerUiOptions } from 'koa2-swagger-ui';","import Router from 'koa-router';"]},{"cmd":"yarn add koa2-swagger-ui","imports":[]},{"cmd":"pnpm add koa2-swagger-ui","imports":[]}],"homepage":null,"github":"https://github.com/scttcper/koa2-swagger-ui","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koa2-swagger-ui","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/koa2-swagger-ui/compatibility"}}