Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ai-swagger

Generate OpenAPI 3.0 specs from your Express routes. Point it at your routes directory and get a complete Swagger doc.

Install

npm install -g ai-swagger

Usage

npx ai-swagger ./src/routes/
# Generates openapi.yaml from all route files

npx ai-swagger ./src/routes/users.ts -o docs/api.yaml
# Single file, custom output path

Setup

export OPENAI_API_KEY=sk-...

Options

  • -o, --output <path> - Output file path (default: openapi.yaml)

License

MIT