One OpenAPI spec. Code for developers, knowledge for AI.
worma is a universal OpenAPI code generator that simultaneously produces API calling code, TypeScript types, documentation, and AI Skills β for both humans and coding agents.
Auto-generate Skills-compliant API documentation that enables coding agents (Cursor, Copilot, Claude Code, Windsurf, etc.) to call your APIs accurately β correct function names, parameters, and import paths every time.
One OpenAPI spec generates:
- API calling functions for developers to import directly
- TypeScript type definitions for type safety
- In-editor documentation via VSCode extension
- AI Skills for coding agents to read
Built-in templates for Alova, Axios, Fetch, and Ky. Switch request libraries with a single config change. Full Handlebars-based custom template support.
Install the VSCode extension to view complete API documentation on hover β parameter tables, response structures, and examples β even in plain JavaScript projects.
# Install worma for your coding agent
npx skills add alovajs/skills --skill worma-guidelines
# Or install the CLI package directly
npm i wormajs -D
npx worma init
# Edit worma.config.js with your OpenAPI URL, then:
npx worma gen