# orval-labs/orval

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. 🍺

Repository: https://github.com/orval-labs/orval
Canonical: https://ross.abutalabs.com/products/orval
Homepage: https://orval.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: orval, axios-client, swagger, typescript, openapi-specification, react, angular, msw, mock, faker, codegen, react-query
Last push: 2026-08-26T14:29:17+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 2401, "days_push": 7, "days_rel": 10, "gap_med": 5.0, "n_releases_24m": 69}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6396, forks 674 (observed 2026-08-28T04:09:43.069802+00:00)

## What it is
Orval is a code generation tool that produces type-safe TypeScript API clients from OpenAPI v3 or Swagger v2 specifications in YAML or JSON format. It generates models, HTTP request functions, data-fetching hooks for frameworks like React Query, SWR, Angular, Vue, Svelte, and Solid, plus MSW mocks with Faker.js data.

## Use cases
- generate typescript client from openapi spec
- create react query hooks from swagger json
- auto-generate msw mocks from openapi yaml
- generate zod schemas from openapi specification
- stop hand-writing api client boilerplate
- generate typed axios client from swagger v2
- mock backend for frontend testing from api spec

## When to choose
- you have an OpenAPI/Swagger spec and want type-safe clients without manual boilerplate
- you use React Query, SWR, Angular, Vue, Svelte, or Solid and want generated hooks
- you need MSW mocks with Faker data to test frontend without a backend
- you want zod validation schemas generated from your API contract

## When to avoid
- your API has no OpenAPI or Swagger specification
- you need a runtime API client library rather than generated code
- your spec is invalid or heavily non-standard, as generation depends on spec quality

## Facets
- artifact type: cli-tool
- maturity: active
- function: http-client, mocking, type-system, cli
- domain: web-development, frontend, apis, developer-tools, testing
- platform: cli, cross-platform
- tags: openapi, swagger, typescript, codegen, react-query, msw, axios, zod, api-client-generator, faker, code-generation, nodejs

## Member repositories
- orval-labs/orval (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:43.069802+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:45:02.104708+00:00, confidence not recorded.
  - readme: https://github.com/orval-labs/orval (fetched 2026-08-28T04:09:43.069802+00:00, sha 8881f3c1da3a)
  - homepage: https://orval.dev (fetched 2026-08-29T08:42:10.701298+00:00, sha 4bac72c97472)
  - site_page: https://orval.dev/docs (fetched 2026-08-29T08:42:10.703898+00:00, sha 84f330a0efb5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
