Zero Config · AST Analysis · Express · Fastify · Koa

@romatech/swagger

Automatic Swagger/OpenAPI documentation via TypeScript AST analysis. No decorators, no annotations — just plug and play.

Full API docs. Automatically.

server.ts
import { useSwagger, useSwaggerUi }
  from '@romatech/swagger';

useSwagger(app);
useSwaggerUi(app);

// Open /api-docs → full docs
// Types inferred from your code ✨

AST → OpenAPI. No manual work.

TypeScript Analysis

Reads your source via ts-morph. Detects routes, types, responses.

Type Inference

Interfaces, enums, union types → OpenAPI schemas. Automatic.

Multi-Status Detection

Every res.status(N).json() is documented. All HTTP codes.

Framework Detection

Express, Fastify, Koa — detected from imports automatically.

Documentation that writes itself.

No decorators. No annotations. Just your TypeScript code.