Next Swagger Doc

screenshot of Next Swagger Doc
nextjs
vite

Next Swagger Doc

This package reads your JSDoc-annotated source code on NextJS API route and generates an OpenAPI (Swagger) specification.

Overview:

Next-swagger-doc is a tool designed to generate Swagger JSON API documentation from NextJS API routes. It simplifies the process of creating and organizing API documentation by reading JSDoc-annotated source code and converting it into an OpenAPI (Swagger) specification. By incorporating next-swagger-doc into your Next.js project, you can easily create a Swagger UI for viewing and interacting with your API documentation.

Features:

  • Generate Swagger JSON API: Automatically generate Swagger documentation based on JSDoc-annotated source code in NextJS API routes.
  • Built-in Swagger UI: Provides a user-friendly interface for viewing and interacting with the generated Swagger documentation.
  • Support for Multiple Libraries: Compatible with various validation libraries such as Zod, Yup, Fastest-Validator, and Joi for enhanced functionality.
  • CLI Support: Allows for generating Swagger files from the command line interface.
  • Customizable Swagger Comments: Add Swagger comments to API routes for detailed metadata inclusion in the Swagger spec.
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.