About Orval
Orval reads an OpenAPI specification and generates TypeScript code from it, so teams do not have to hand-write API clients. The site shows a Pet Store spec producing typed interfaces and a React Query hook, and describes the output as end-to-end TypeScript types derived from the spec.
Output is not limited to React. Orval generates hooks for React Query, SWR, Angular, Vue, Svelte and Solid, and the stack list also names Axios, Fetch, Zod, Hono and MCP. For testing, it can generate MSW handlers filled with Faker.js data, so frontends can run without a backend.
It is installed as a dev dependency, for example with bun add -d orval, and a docs site and online playground are linked. Version 8 is announced as available. Orval is MIT-licensed and funded through sponsors and backers on Open Collective and GitHub.
Key features
- Generates clients, mocks and validators from OpenAPI
- TypeScript types generated from the spec
- Hooks for React Query, SWR, Angular, Vue, Svelte and Solid
- MSW mock handlers with Faker.js data
Good fit for
- Typed API clients from OpenAPI
- React Query hooks
- Mock servers for frontend testing
Orval: questions and answers
- What is Orval used for?
- Orval is a code generator that turns OpenAPI specifications into type-safe TypeScript clients, query hooks, mocks and validators. It is a good fit for typed API clients from OpenAPI, React Query hooks and mock servers for frontend testing.
- Is Orval open source?
- Yes. Orval is open source under the MIT licence. Its source code is on GitHub at orval-labs/orval and is written mainly in TypeScript.
- Is Orval free?
- Yes. Orval is open source, so the software itself is free to use.
- Can I self-host Orval?
- Yes. Orval can be self-hosted on your own server or infrastructure.
- What are some alternatives to Orval?
- Similar open-source tools in the API Tools category include Scalar, Loopback Next and OpenWA. SaaS products in the same category include 0mcp, Apidog and Apifox.
- Is Orval actively maintained?
- Yes. The most recent commit to Orval was on 21 November 2026, and the latest release is v8.48.0, published on 14 November 2026. The project has 6.6k stars on GitHub, with 95 added in the last 30 days.
Open-source alternatives to Orval
See all
Scalar
API Tools
Scalar is an open-source API platform: 🌐 Modern RES
MITvs Postman★ 16k
Loopback Next
API Tools
LoopBack makes it easy to build modern API applications that require complex integrations.
OSSvs Backendless★ 5.1k
OpenWA
API Tools
OpenWA - The free, open source WhatsApp API Gateway with a pluggable architecture. Self-ho
MITvs Twilio★ 17k
Nango
API Tools
Connect your agents & product to 1,000 APIs.
OSSvs Merge★ 13k
Insomnia
API Tools
The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. Wi
Apache-2.0vs Postman★ 40k
OpenAPI Generator
API Tools
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs
Apache-2.0vs Stainless★ 27k
SaaS alternatives to Orval
See all
0mcp
API Tools
Platform for launching and running production MCP servers so SaaS products work with AI agents
SaaS
Apidog
API Tools
All-in-one tool for API design, debugging, testing and mocking
SaaS
Apifox
API Tools
API design, documentation, debugging, mocking and testing platform
SaaS
Apigee
API Tools
Google Cloud API management platform with gateway, analytics and monetization
SaaS
APIMatic
API Tools
SDK generation, API docs and code samples produced from API specs
SaaS
Bump.sh
API Tools
API documentation and changelog hosting from OpenAPI and AsyncAPI files
SaaS

