UI integrations
openapi-metadata
bring some utilities to easily display your API documentation.
Scalar
ts
import { generateScalarUI } from "openapi-metadata/ui";
generateScalarUI("http://localhost:3000/api");
Swagger UI
ts
import { generateSwaggerUI } from "openapi-metadata/ui";
generateSwaggerUI("http://localhost:3000/api");
Rapidoc
ts
import { generateRapidocUI } from "openapi-metadata/ui";
generateRapidocUI("http://localhost:3000/api");