Skip to content

@mrzr/openapi-forge

Generate a typed TypeScript API layer — models, request functions, query keys and data-fetching hooks — from OpenAPI / Swagger documents.

Terminal window
npm i -D @mrzr/openapi-forge
npx @mrzr/openapi-forge --input swagger.json --out src/api/generated

The output is plain, readable TypeScript that is formatted with your own Prettier and is deterministic, so --check can fail CI when the committed layer is stale.