Generate OpenAPI 3.0 specs from your Express routes. Point it at your routes directory and get a complete Swagger doc.
npm install -g ai-swaggernpx 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 pathexport OPENAI_API_KEY=sk-...-o, --output <path>- Output file path (default: openapi.yaml)
MIT