Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

orval

orval-labs2.1mMIT7.16.1TypeScript support: included

A swagger client generator for typescript

rest, client, swagger, open-api, fetch, data fetching, code-generation, angular, react, react-query, svelte, svelte-query, vue, vue-query, msw, mock, axios, vue-query, vue, swr, zod, hono

readme

npm version NPM Downloads License: MIT tests orval Gurubase

orval - Restfull Client Generator

Visit orval.dev for docs, guides, API and beer!

⚠️ Actively searching for contributors, if you want to help, please contact me on discord ⚠️

Code Generation

orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats.

Supported clients

generate models, requests, hooks, mocks and more, for these supported clients:

Samples

You can find some samples below:

Playground

Try Orval out for yourself using our Playground application!

Star History

<picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=orval-labs/orval&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=orval-labs/orval&type=Date" /> Star History Chart </picture>

All Thanks To Our Contributors: