awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
orval-labs avatar

orval-labs/orval

0
View on GitHub↗
6,145 stars·636 forks·TypeScript·MIT·41 viewsorval.dev↗

Orval

Orval is an OpenAPI-to-TypeScript code generator that produces fully typed API clients, data-fetching hooks, mock data, validation schemas, and server handlers from OpenAPI or Swagger specifications. It reads any YAML or JSON API specification and generates TypeScript interfaces, HTTP request functions, and framework-specific integration code that ensures compile-time correctness for all API calls.

The project distinguishes itself by generating production-ready data-fetching hooks for React Query, Vue Query, Svelte Query, Solid Query, Angular, and SWR, complete with automatic cache invalidation, infinite query support, and signal-based reactivity. It also produces runtime validation schemas using Zod or Effect-TS, MSW mock handlers with Faker.js factories for testing, and typed Hono server handlers with built-in validation. The generation pipeline is configurable through a file or object, supporting custom HTTP clients, per-operation overrides, spec transformations, and post-generation script execution.

Beyond client and server code, Orval can generate Model Context Protocol servers from OpenAPI specs for AI agent integration, and includes a browser-based preview editor for experimenting with generation options. The tool supports multi-spec processing, file watching for automatic regeneration, Docker-based execution, and output formatting with Prettier, Biome, or oxfmt.

Features

  • Type-Safe Client Generators - Generates fully typed TypeScript API clients, hooks, and mocks from OpenAPI specifications.
  • Model Schema Generators from OpenAPI - Generates Zod validation schemas for every model in an OpenAPI spec for runtime type checking.
  • Schema Generators from OpenAPI - Generates Zod and Effect-TS schemas from OpenAPI specs for runtime API validation.
  • Effect Schema - Generates Effect-TS schemas from OpenAPI specs and decodes runtime data against them.
  • TypeScript Type Generators - Generates TypeScript interfaces and types from OpenAPI schemas for type-safe API interactions.
  • OpenAPI Client SDK Generators - Generates fully typed API clients including models and HTTP client code from OpenAPI specifications.
  • Schema-Driven Code Generators - Controls all generation options through a configuration file or object, including input source and output structure.
  • HTTP Request Code Generators - Creates ready-to-use, typed HTTP request functions for every API endpoint defined in the specification.
  • API Client Generators - Generates type-safe API clients, hooks, and mocks from an OpenAPI specification via a configuration file.
  • Code from Specification Generators - Reads OpenAPI or Swagger specifications and produces TypeScript API clients, hooks, and mocks.
  • TanStack - Generates fully typed TanStack Query hooks for every API path defined in an OpenAPI specification.
  • API Mocking - Generates MSW handlers and Faker.js mock factories from OpenAPI specs for testing.
  • OpenAPI Mock Generators - Generates MSW handlers and Faker.js mock factories from OpenAPI specs for testing.
  • Resource Function Generators - Creates reactive httpResource functions that return Angular HttpResourceRef signals for retrieval-style operations.
  • Angular - Generates injectable Angular service classes with typed methods from OpenAPI specifications.
  • Angular Service Generators - Creates injectable Angular services with typed HTTP methods using HttpClient from OpenAPI specs.
  • Zod Response Validators - Validates API responses against generated Zod schemas at runtime to catch data mismatches.
  • Data Fetching Hooks - Creates type-safe data fetching hooks for React Query, Vue Query, Svelte Query, and more.
  • Multi-Framework Hook Generators - Generates data-fetching hooks for React Query, Vue Query, Svelte Query, Solid Query, Angular, and SWR.
  • React Query Hooks - Generates type-safe React Query hooks from OpenAPI specifications for API integration.
  • Frontend Query Library Hooks - Produces data-fetching hooks tailored to multiple frontend query libraries from a single spec.
  • Infinite Data Fetching - Generates infinite query functions with configurable pagination parameters for loading paginated data.
  • OpenAPI to TypeScript Converters - Converts OpenAPI specifications into fully typed TypeScript type definitions and client code.
  • Per-Tag Behavior Overrides - Applies custom mutators, query options, or mock data to all operations sharing an OpenAPI tag.
  • MCP Servers - Generates MCP servers from OpenAPI specs so AI agents can interact with APIs through generated tools.
  • OpenAPI Generators - Generates Model Context Protocol servers from OpenAPI specifications for AI agent integration.
  • OpenAPI Specification Transformers - Applies custom transformations to OpenAPI documents before code generation to repair or augment them.
  • Request Payload Validators - Generates Zod schemas that validate outgoing request payloads before they are sent to the API.
  • Hono Server Stub Generators - Generates Hono route handlers and validators from OpenAPI specs for server-side implementation.
  • Per-Operation Query Option Overrides - Applies custom query settings, such as infinite scrolling, to individual API operations instead of globally.
  • Per-Operation Validation Rule Scopings - Applies Zod settings like coercion or strict mode to a single endpoint or all endpoints sharing a tag.
  • Mutation-Based Cache Invalidation - Invalidates specified cached queries when named mutations succeed, reducing manual cache management.
  • Angular Mutation Functions - Generates Angular injectable mutation functions with automatic cache invalidation from OpenAPI specs.
  • Pre-Generation Spec Transformations - Runs a custom sync or async function on the OpenAPI document before validation to repair or augment it.
  • API Endpoint Filtering - Selects a subset of API endpoints from the specification to include in the generated output.
  • Per-Operation Client Customizations - Overrides specific operations with custom mutators, mock data, and parameter options like URL encoding.
  • Pipeline Customizers - Configures the entire code generation pipeline including HTTP clients, mutators, and post-generation scripts.
  • Property-Level Mock Value Customizations - Overrides mock generation for specific properties using name, regex, or path matching, with scoping per schema, tag, or operation.
  • Multi-Spec Processors - Processes several OpenAPI specifications in a single run with independent configurations.
  • Effect Schema Generators - Generates Effect-TS schemas for request parameters, bodies, and responses from OpenAPI specifications.
  • Generated Code Organizers - Organizes generated API client code into separate files per endpoint, tag, or schema with configurable output paths.
  • MSW Handler Generation - Produces mock handlers for MSW from the API specification to develop frontend features without a live backend.
  • Mock Data Generators - Produces realistic mock data for API endpoints using configurable faker-based property generators.
  • Angular Signal Queries - Integrates Angular signals with generated queries for automatic re-execution on signal changes.
  • Handler Template Generators - Creates handler stubs with built-in Zod validation for server-side implementation.
  • Effect Schema Generators - Produces Effect schema modules from OpenAPI specs for runtime validation alongside generated HTTP clients.
  • Standard Schema Response Validators - Validates API responses against generated Zod schemas at runtime to catch type mismatches.
  • Conditional Data Fetching - Disables generated data hooks when conditions are not met, preventing unnecessary network requests.
  • Pluggable - Provides a pluggable HTTP client architecture that swaps between fetch, Axios, or custom implementations.
  • Composable Generators - Creates useInfiniteQuery composables for paginated endpoints with configurable cursor parameters.
  • Hook Generators - Creates useInfiniteQuery hooks for paginated endpoints that load data in pages.
  • Primitive Generators - Creates infinite query hooks with configurable pagination parameters and stale times.
  • Store Generators - Produces infinite query stores that support cursor-based pagination using a specified query parameter.
  • Per-Operation Behavior Overrides - Applies custom mutators, query options, or mock data to a specific API operation by its ID.
  • Angular Query Functions - Generates Angular injectable query functions wrapping TanStack Query for type-safe data fetching.
  • Generators and Scaffolding - Generates, validates, and mocks frontend code from OpenAPI specs.

Star history

Star history chart for orval-labs/orvalStar history chart for orval-labs/orval

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Orval

These projects share indexed features with Orval. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • astahmer/openapi-zod-clientastahmer avatar

    astahmer/openapi-zod-client

    1,172View on GitHub↗

    This project is a command-line tool that automates the creation of type-safe TypeScript HTTP clients directly from OpenAPI specifications. By transforming service definitions into structured source code, it ensures end-to-end type synchronization and enforces runtime data integrity across network boundaries. The generator distinguishes itself by mapping OpenAPI data structures into Zod validation schemas, allowing for consistent schema-driven type mapping and response validation. It supports deduplicated source synthesis to minimize redundancy in the generated output and provides template cus

    TypeScriptapiaxioscli
    View on GitHub↗1,172
  • hey-api/openapi-tshey-api avatar

    hey-api/openapi-ts

    4,128View on GitHub↗

    openapi-ts is a tool and orchestrator used to convert OpenAPI specifications into type-safe TypeScript SDKs and HTTP client implementations. It automatically generates typed interfaces and request functions from API definitions to ensure consistency between the server and the client. The project employs a transport-agnostic client interface, decoupling high-level API calls from the underlying network library. It uses a plugin-based generation pipeline and a custom plugin architecture to allow for the customization of output types and validation schemas. The system provides capabilities for n

    TypeScriptangularaxioscodegen
    View on GitHub↗4,128
  • apple/swift-openapi-generatorapple avatar

    apple/swift-openapi-generator

    1,935View on GitHub↗

    The Swift OpenAPI Generator is a build-time tool that produces type-safe Swift client and server code directly from OpenAPI specification documents. By integrating with build systems through native plugins, it automates the creation of strongly-typed interfaces and protocol stubs that map network operations to native methods, ensuring that application code remains strictly consistent with defined data schemas. The project distinguishes itself through a protocol-oriented architecture that decouples business logic from specific transport implementations. It utilizes a pluggable transport layer

    Swiftios-swiftopenapiplugin
    View on GitHub↗1,935
  • acacode/swagger-typescript-apiacacode avatar

    acacode/swagger-typescript-api

    4,093View on GitHub↗

    swagger-typescript-api is a utility that parses OpenAPI definitions to generate strongly typed data models and service wrappers for web applications. It transforms OpenAPI specifications into type-safe TypeScript API clients, removing the need for manual request and response boilerplate. The generator produces interchangeable client logic via pluggable transport adapters, allowing users to switch between Fetch and Axios for network requests. It uses template-based source emission to inject generated types and methods into a consistent client structure. The project handles the mapping of Open

    TypeScript
    View on GitHub↗4,093
Compare all 30 related projects→

Frequently asked questions

What does orval-labs/orval do?

Orval is an OpenAPI-to-TypeScript code generator that produces fully typed API clients, data-fetching hooks, mock data, validation schemas, and server handlers from OpenAPI or Swagger specifications. It reads any YAML or JSON API specification and generates TypeScript interfaces, HTTP request functions, and framework-specific integration code that ensures compile-time correctness for all API calls.

What are the main features of orval-labs/orval?

The main features of orval-labs/orval are: Type-Safe Client Generators, Model Schema Generators from OpenAPI, Schema Generators from OpenAPI, Effect Schema, TypeScript Type Generators, OpenAPI Client SDK Generators, Schema-Driven Code Generators, HTTP Request Code Generators.

Which projects share features with orval-labs/orval?

Projects with overlapping indexed features include: astahmer/openapi-zod-client — This project is a command-line tool that automates the creation of type-safe TypeScript HTTP clients directly from… hey-api/openapi-ts — openapi-ts is a tool and orchestrator used to convert OpenAPI specifications into type-safe TypeScript SDKs and HTTP… apple/swift-openapi-generator — The Swift OpenAPI Generator is a build-time tool that produces type-safe Swift client and server code directly from… acacode/swagger-typescript-api — swagger-typescript-api is a utility that parses OpenAPI definitions to generate strongly typed data models and service… ricosuter/nswag — NSwag is an OpenAPI toolchain for .NET that provides a suite of generators for converting OpenAPI specifications and… mock-server/mockserver-monorepo — This project is a multi-protocol API simulation and mocking system designed to replace external dependencies during…