orval-labs/orval
Fork: 525 Star: 5137 (更新于 2026-01-11 04:46:12)
license: MIT
Language: TypeScript .
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. 🍺
最后发布版本: v7.18.0 ( 2026-01-10 22:17:59)
Generate Typescript clients from OpenAPI specification!
⚠️ Actively searching for contributors, if you want to help, please contact me on discord ⚠️
Code Generation
orval generates type-safe JS clients (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:
- React
- React Query
- React with swr
- Vue Query
- Svelte Query
- Solid Query
- SolidStart
- Angular
- Angular Query
- Hono
- zod
- native fetch
- mcp
Samples
You can find some samples below:
- react app
- react query
- svelte query
- vue query
- react app with swr
- angular app
- angular query
- hono
- next app with fetch
- mcp server
Playground
Try Orval out for yourself using our Playground application!
Developers
This project uses Yarn for package management and building. Here are the key scripts available for development:
Prerequisites
Before using Yarn scripts, ensure you have Yarn installed. You can install it globally using npm:
npm install -g yarn
Alternatively, you can enable Corepack (which comes with Node.js 16.10+) to manage Yarn:
corepack enable
Build Scripts
-
yarn nuke:all- Completely clean your workspace by removing all build artifacts, node_modules, and cached files. Use this when you want to start fresh. -
yarn build- Build the project and make changes available to the workspace. Run this after making code changes to compile TypeScript and prepare the project for use.
Test Scripts
-
yarn test- Run unit tests in all packages. -
yarn update-samples- Generate sample outputs using the newly built version of Orval. This regenerates the sample code based on the current build. -
yarn test:samples- Run tests in the samples directory using the newly generated output fromupdate-samples. -
yarn test:cli- Test that the generated output (not samples) is valid TypeScript. This validates the TypeScript compilation of the generated code.
Development Workflow
A typical development workflow would be:
- Make your code changes
- Run
yarn buildto compile your changes - Run
yarn testto ensure unit tests pass - Run
yarn update-samplesto regenerate sample outputs - Run
yarn test:samplesto verify samples work correctly - Run
yarn test:clito validate TypeScript compilation
If you encounter issues or want to start completely fresh:
- Run
yarn nuke:allto clean everything - Reinstall dependencies and rebuild from scratch
Sponsors
Thank you to all our sponsors! 🍻
Support orval development by Open Collective and your logo will be displayed here with a link to your website.
Backers
Thank you to all our backers! 🙏
Support us with a one-time donation and help us continue our activities on Open Collective.
Note: After becoming a sponsor or backer, please contact us on Discord to upload your logo.
Star History
All Thanks To Our Contributors:
最近版本更新:(数据更新于 2026-01-11 04:45:56)
2026-01-10 22:17:59 v7.18.0
2025-12-24 00:24:34 v8.0.0-rc.5
2025-12-22 02:51:06 v8.0.0-rc.4
2025-12-22 00:22:32 v7.17.2
2025-12-07 01:15:08 v8.0.0-rc.3
2025-11-24 22:21:39 v7.17.0
2025-11-21 22:05:59 v7.16.1
2025-11-14 22:09:30 v8.0.0-rc.2
2025-10-31 19:08:30 v7.16.0
2025-10-31 02:16:06 v8.0.0-rc.1
主题(topics):
typescript react angular swagger openapi-specification mock codegen faker axios-client msw orval react-query
orval-labs/orval同语言 TypeScript最近更新仓库
2026-01-16 10:28:49 OHIF/Viewers
2026-01-16 08:25:46 Expensify/App
2026-01-16 08:08:59 tinacms/tinacms
2026-01-16 07:25:30 BabylonJS/Babylon.js
2026-01-16 06:47:46 andreasgerstmayr/fava-dashboards
2026-01-16 02:32:17 aws/aws-cdk