Orval
A strong pick. 2nd of 9 OpenAPI tools.
Orval generates TypeScript clients from an OpenAPI or Swagger spec, along with TanStack Query, SWR and Vue Query hooks, Zod schemas and MSW mocks. It is a strong pick for frontend teams that want all of those from one config. Run version 8.21.0 or later, because older versions have critical code-injection advisories.
Best for: Frontend teams that want typed query hooks, Zod schemas and MSW mocks generated from one OpenAPI spec.
Scores
Overall7.7
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.5, likely 6.5 to 8.0
Orval is the best pick for generating frontend data-fetching hooks, validation and mocks from OpenAPI, and it is actively maintained. openapi-typescript is the simpler and more widely used choice when you only need types, and Hey API is growing faster as an SDK generator. The recent run of critical code-injection advisories lowers the score: pin a version of 8.21.0 or later and treat the spec as code.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Recommended first for hooks, schemas and mocks.
- dev.to/phil-whittaker/streamlining-umbraco-headless-development-automated-model-generation-for-content-delivery-api-with-12n9: A user found it more stable than Hey API.
- advisories: Critical advisories in September 2026.
GPT-6.2 Sol: 7.8, likely 6.5 to 8.8
Orval is a strong new-project choice when a team wants a typed frontend client, query hooks, and test mocks from a spec it controls. Frequent releases and documented production use support that choice, and openapi-typescript has ended updates. Hey API can produce a leaner SDK with interceptors, while Kubb has more complete OpenAPI 3.2 coverage in its published tests. The range reflects the impact of spec complexity, build-time security, and the amount of generated code a team needs.
- github.com/orval-labs/orval/releases/tag/v8.48.0: Current stable release continues client and schema improvements.
- github.com/PostHog/posthog/blob/master/docs/published/handbook/engineering/type-system.md: Named production team documents its use of the generated client and schemas.
- github.com/openapi-ts/openapi-typescript/issues/2874: Maintainer announced an end to updates in September 2026.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Direct comparison favors Hey API for a compact SDK with interceptors.
- kubb.dev/docs/5.x/introduction/comparison: Kubb's tests found broader OpenAPI 3.2 coverage.
- github.com/orval-labs/orval/security/advisories: Recent advisories cover several code generators.
Needed by many5.9
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Most web apps that call a documented HTTP API can use a generated typed client. Orval covers only the client and mock side of the category, not docs or linting. It leans towards frontend data-fetching libraries.
- pistack.xyz/posts/2026-10-01-orval-vs-kubb-vs-openapi-typescript-typescript-client-generators: Has the most output targets among client generators.
- github description: Generates clients from OpenAPI v3 or Swagger v2.
GPT-6.2 Sol: 5.8, likely 4.5 to 7.1
Generating typed calls from an OpenAPI spec is useful to a sizable group of web teams. Orval supports several frontend frameworks and plain Fetch, but its main workflow starts with an existing spec and centers on TypeScript client code. API and frontend surveys show demand for the surrounding workflow, with limited evidence on how many JS and TS teams maintain a suitable spec.
- postman.com/state-of-api/2025: REST is widespread among API survey respondents.
- tsh.io/state-of-frontend: Survey respondents report substantial use of Fetch, Axios, and TanStack Query.
- orval.dev/docs: Existing OpenAPI or Swagger input and multiple client targets.
Helps a lot8.0
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
No peer generates as much ready-to-use frontend code: hooks, Zod with runtime validation in v8, and mocks. Independent comparisons say it is faster than Hey API and Kubb, but its output is large. Its limits are fetch defaults that need a workaround and some edge cases such as NullEnum, and it is too heavy for teams that only need types.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Benchmark: 5.5 s, faster than Hey API and Kubb; fetch does not throw on 4xx; output is large.
- dev.to/phil-whittaker/streamlining-umbraco-headless-development-automated-model-generation-for-content-delivery-api-with-12n9: A user picked Orval over Hey API for stability, flexibility and clear docs.
- bluesky top: v8 added Zod schemas and runtime validation in the fetch client.
GPT-6.2 Sol: 7.9, likely 6.8 to 8.8
Orval 8.48.0 combines typed clients, ready-to-use query hooks, schemas, and mocks, with configuration examples that coding agents can follow. Runtime response validation depends on the client and can require extra work with a custom request function. Kubb's comparison found partial OpenAPI 3.2 coverage and slower generation on its largest test specs. Benchmarks on nearby Orval versions found that generation time and TypeScript errors varied by spec, which widens the range for complex APIs.
- github.com/orval-labs/orval/releases/tag/v8.48.0: Latest stable release adds shared Fetch support and schema improvements.
- orval.dev/llms.txt: Agent-readable index of configuration guides and examples.
- orval.dev/docs/reference/configuration/output: Runtime validation support and custom request function limitations.
- kubb.dev/docs/5.x/introduction/comparison: Peer-run large-spec benchmarks and OpenAPI 3.2 checks.
- orqc.7nohe.dev/guides/benchmarks: Orval 8.46.0 produced strict type errors on Stripe and GitHub specs.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Independent comparison found useful outputs and bulky generated files.
Holds up over time8.0
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
The project has existed since 2020 and is very active, with 1,222 commits, 74 releases and 426 contributors. Issues are kept under control: 22 open against 1,635 closed. It is community-maintained with no large corporate backer, which keeps the range from going higher.
- github commitsLastYear / releasesLastYear: 1,222 commits and 74 releases in the last year.
- github openIssues / closedIssues: 22 open issues against 1,635 closed.
- npm latestPublishedAt: Latest release on 2026-11-14.
GPT-6.2 Sol: 8.0, likely 6.8 to 9.0
Orval shipped 74 GitHub releases and logged 1,222 commits in the past year, with several contributors in the latest release. A pull request addressing a reported v8 validation problem merged within a week. The move to ESM, the higher Node.js minimum, and changed defaults made v8 an upgrade that required work. Public sponsorship is modest, and the number of people who can approve an npm release is unclear.
- github releasesLastYear, commitsLastYear, latestRelease: 74 releases, 1,222 commits, and a November 2026 stable release.
- github.com/orval-labs/orval/releases/tag/v8.48.0: Ten contributors credited on the current release.
- github.com/orval-labs/orval/issues/3112: User reported a validation regression after moving from v7.
- github.com/orval-labs/orval/pull/3126: Pull request addressing the report merged seven days later.
- orval.dev/docs/versions/v8: Documents ESM, Node.js, Fetch defaults, and config changes.
- opencollective.com/orval: MOSH and individual donors provide modest public funding.
- github.com/orval-labs/orval/pull/4525: Latest release was triggered by merging a release pull request.
Used widely5.8
How many use it, and is that growing?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
Downloads grew 7.4x in a year, well above the 4.1 median, but behind Hey API (9.9x) and openapi-typescript (9x). ecosyste.ms counts 305 dependent repositories, far fewer than openapi-typescript's 8,379. That suggests tens of thousands of projects use it, with fewer direct choices than the leaders.
- npm downloadsLast4Weeks: 15.3M now against 2.07M a year ago, a 7.4x ratio.
- dependents repos: 305 dependent repositories.
- peers openapi-typescript / Hey API: Both peers are larger and growing faster.
- github stars: 6,645 stars.
GPT-6.2 Sol: 5.1, likely 3.4 to 6.7
Four-week downloads rose from 2.07 million to 15.27 million, about 7.4× the prior year and above the 4.1× catalog median. Hey API and openapi-typescript grew faster over the same period, while Orval grew almost as fast as Kubb from a larger base. Ecosyste.ms found 305 dependent repositories and 39 packages, well below openapi-typescript's indexed repository count. Automated installs, incomplete indexing, and sparse discussion make the number of projects choosing Orval hard to pin down.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: 7.4× year-over-year growth against the 4.1× baseline.
- dependents: 305 indexed repositories and 39 npm packages.
- peers openapi-typescript, Hey API, Kubb: All three grew faster, and openapi-typescript has 8,379 indexed repositories.
- github stars, hackerNews, bluesky: 6,645 stars, two relevant Hacker News posts with zero comments, and three Bluesky links.
Vouched for6.6
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.5 to 7.0
Several independent 2026 comparisons name it the pick for hooks, Zod and mocks, and one user reports using it in production. No large company backs it publicly, and there are no survey results on it. Discussion on Hacker News and Bluesky is thin.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Independent comparison recommends it for hooks, Zod and MSW.
- pistack.xyz/posts/2026-10-01-orval-vs-kubb-vs-openapi-typescript-typescript-client-generators: Recommends it for query hooks and mocks.
- hackerNews: Two stories, each with few points.
GPT-6.2 Sol: 7.2, likely 5.9 to 8.3
PostHog documents a workflow that uses Orval for API clients, types, and Zod schemas, and Superimpress documents its use for React Query hooks. Studocu reported less boilerplate in its Next.js migration, and independent users report that the generated hooks work well. Comparative tests support Orval's range of outputs but show mixed results for generated size and speed. Broad satisfaction and retention data for Orval itself are sparse.
- github.com/PostHog/posthog/blob/master/docs/published/handbook/engineering/type-system.md: PostHog documents Orval in its frontend type generation workflow.
- docs.superimpress.com/tech/6-orval-api-client: Superimpress uses generated React Query hooks with Axios.
- medium.com/studocu-techblog/migrating-from-a-monolith-to-next-js-at-studocu-part-2-84f423e9ab7a: Studocu reported less manual client code in its 2024 migration.
- reddit.com/r/reactjs/comments/1lurk50/hows_your_team_handling_api_type_sync: Users report that generated TanStack Query hooks work well.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Independent evaluator favors Orval for hooks, schemas, and mocks together.
Safe5.5
How safe is it to depend on?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
There have been 12 advisories in 24 months. They include critical RCE through crafted specs injected into generated code, earlier command injection, and SSRF through $ref. The fixes shipped (8.21.0 and earlier patches), but the number points to weak escaping in the code generator. The risk applies mainly when the spec is untrusted. The package pulls in 26 dependencies, there is no Scorecard, and the licence is MIT.
- advisories: 12 advisories in 24 months, several of them critical RCE.
- advisories.gitlab.com/npm/orval/CVE-2026-62681: CVSS 9.8, all versions before 8.21.0 affected, fixed in 8.21.0.
- npm dependencies: 26 dependencies.
- scorecard: No OpenSSF Scorecard data.
GPT-6.2 Sol: 6.0, likely 4.6 to 7.4
The MIT license is permissive, and the generator has 26 direct dependencies. Fixes for the five critical advisories highlighted in the bundle shipped in 8.21.0 before public disclosure, and another critical October advisory was patched in 8.40.0. Repeated code execution bugs in generated output make untrusted specs a material concern. The release workflow checks for unsafe lifecycle scripts and publishes through GitHub Actions using an npm token, and the missing OpenSSF Scorecard leaves some controls unverified.
- npm license, npm dependencies, advisories, scorecard: MIT, 26 direct dependencies, 12 collected advisories, and no Scorecard result.
- github.com/orval-labs/orval/releases/tag/v8.21.0: July release shipped a fix before September disclosure.
- osv.dev/vulnerability/GHSA-fg9p-mrxr-hvq7: Fixed in 8.21.0.
- osv.dev/vulnerability/GHSA-88f2-fpv8-89q2: Fixed in 8.21.0.
- osv.dev/vulnerability/GHSA-w727-8j6c-2rj4: Fixed in 8.21.0.
- osv.dev/vulnerability/GHSA-2h9g-j24r-h63g: Fixed in 8.21.0.
- osv.dev/vulnerability/GHSA-8j6p-r8jg-mxqh: Fixed in 8.21.0.
- github.com/orval-labs/orval/security/advisories/GHSA-v36f-hqj9-q8rr: October critical advisory lists 8.40.0 as patched.
- github.com/orval-labs/orval/blob/v8.48.0/.github/workflows/release-publish.yaml: Frozen lockfile, lifecycle script checks, and token-based npm publishing.
Good
- One config file generates the client, TanStack Query, SWR or Vue Query hooks, Zod schemas, and MSW and Faker mocks.
- Custom mutators and per-operation overrides make auth, token refresh and Next.js fetch options easy to add.
- Very active project: about 1,200 commits and 74 releases in the last year, with only 22 open issues.
- Users report the output is more stable than the faster-changing Hey API.
Bad
- Twelve advisories in 24 months, several of them critical code injection from crafted specs, fixed in 8.21.0.
- Large specs produce thousands of generated files and big diffs on every schema change.
- The default fetch client does not throw on 4xx or 5xx responses, so callers must check the status or add a mutator.
- Too heavy if you only need types; openapi-typescript is faster and simpler for that.
The numbers
- npm downloads, 4 weeks
- 15M ×7.4 in a year
- GitHub stars
- 6.6k
- Commits, 12 months
- 1.2k
- npm version
- 8.48.0 Nov 2026
- Versions, 12 months
- 71
- Advisories, 24 months
- 12 of 12 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (orval-labs/orval), npm (orval), OSV and the OpenSSF Scorecard.
OpenAPI tools
- 8.1Scalar
- 7.7Orval
- 7.3Swagger UI
- 7.1Hey API
- 6.9Kubb
- 6.9zod-to-openapi
- 6.7Spectral
- 6.7Redoc
- 3.2openapi-typescript