Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Orval

$ orval Community Low Risk
Orval · Design & Docs · MIT · macos / linux / windows

Orval generates type-safe TypeScript API clients, TanStack Query / SWR hooks, Zod validation schemas, and MSW mock handlers from OpenAPI v3 or Swagger v2 specifications. Agents can target specific config files with --config (-c) and individual targets with --project (-p).

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g orval
CLI vs MCP Decision CLI Only

Full-stack TypeScript client, Zod, and MSW code generation runs locally on repository files via orval without MCP overhead.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Runs headlessly with --config and --project flags and clear exit codes, though it has no --dry-run or --json summary mode and --watch blocks continuously.

  • Headless --config (-c) and --project (-p) targeting
  • Lacks --dry-run and --json output
Trust & Safety 21 / 25

Writes generated TypeScript/Zod/MSW files directly to paths specified in orval.config.ts without a built-in --dry-run flag.

  • Overwrites target output files defined in config
Setup & Portability 13 / 15

Cross-platform Node package via npm or npx orval (plus ghcr.io/orval-labs/orval container image).

  • Standard npm / npx installation
Utility & Efficiency 14 / 15

Generates complete frontend integration layers (Axios/Fetch clients, React Query hooks, Zod schemas, MSW mocks) in a single command.

  • Supports Fetch, Axios, TanStack Query, SWR, Zod, and MSW
Maintenance & Lineage 8 / 10

Actively maintained community project (orval-labs/orval) under MIT.

  • Frequent releases in orval-labs/orval
Docs & Verifiability 8 / 10

Comprehensive configuration and CLI reference at orval.dev.

  • Official docs at orval.dev

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; reads local orval.config.* and OpenAPI specifications.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Orval Agent Rules
- Always inspect `orval.config.ts` output paths before running `orval`, as it overwrites configured target files.
- Use `--project <name>` to scope regeneration to one API target; never pass `--watch` in foreground agent calls.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect available CLI flags and config options
orval --help

Prints supported Orval CLI flags without reading specs or writing generated code.

Controlled Writes & Previews

Generate clients for a single Orval project target
orval --config orval.config.ts --project petstore

Runs code generation only for the petstore project defined in orval.config.ts.

Strengths for Agents

  • + All-in-one generator for TypeScript HTTP clients, TanStack Query/SWR hooks, Zod schemas, and MSW mocks.
  • + --config and --project let agents regenerate a single API target cleanly.
  • + Supports both OpenAPI v3 and Swagger v2 specs.

Caveats & Pitfalls

  • ! No --dry-run flag; running orval immediately overwrites configured output files.
  • ! Passing --watch (-w) blocks indefinitely waiting for file changes.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI