Back to feed
Dev.to
Dev.to
7/25/2026
Swagger docs from your existing TypeScript types — no framework required

Swagger docs from your existing TypeScript types — no framework required

Short summary

Autoswag is a new npm package that generates OpenAPI/Swagger documentation from existing TypeScript types using JSDoc annotations. It supports both TS interfaces and Zod schemas, works with any framework or vanilla JS, and operates entirely at generation time with zero runtime dependencies. The tool fills a gap between verbose JSDoc-based solutions and framework-coupled generators like tsoa.

  • Generates OpenAPI docs from TypeScript types via JSDoc annotations
  • Supports Zod schema conversion and vanilla JS typedefs
  • Zero runtime dependencies, framework-agnostic

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more