Automatic Swagger/OpenAPI documentation via TypeScript AST analysis. No decorators, no annotations — just plug and play.
import { useSwagger, useSwaggerUi }
from '@romatech/swagger';
useSwagger(app);
useSwaggerUi(app);
// Open /api-docs → full docs
// Types inferred from your code ✨
Reads your source via ts-morph. Detects routes, types, responses.
Interfaces, enums, union types → OpenAPI schemas. Automatic.
Every res.status(N).json() is documented. All HTTP codes.
Express, Fastify, Koa — detected from imports automatically.
No decorators. No annotations. Just your TypeScript code.