swagger-gen
⚠Review·Scanned 2/18/2026
Generates OpenAPI 3.0 specs from Express routes by reading route files and using OpenAI to infer schemas. It reads ./src/routes/ (or a supplied path), requires OPENAI_API_KEY, sends file contents to OpenAI, and is invoked via npx ai-swagger ./src/routes/.
from clawhub.ai·ve04b6b3·41.2 KB·0 installs
Scanned from 1.0.0 at e04b6b3 · Transparency log ↗
$ vett add clawhub.ai/lxgicstudios/swagger-genReview findings below
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