Oriel — AI & technology worth noticing, every day.

Which OpenAPI Codegen Should You Choose in 2026? 🤔 openapi-typescript vs Hey API vs Orval vs Kubb v5 🔥

Post · https://dev.to/necoz/which-openapi-codegen-should-you-choose-in-2026-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-m8c

Hoi hoi! I'm @nyaomaru, a frontend engineer who loves TypeScript, OSS, and getting lost in forests...

First seen by Oriel on .

AI summary

This comparison finds openapi-typescript simplest, Hey API most comfortable, Orval most flexible, and Kubb v5 fastest and most extensible for large TypeScript API generation.

  • On a 1,200-operation specification, Kubb generated types in 337 ms, while openapi-typescript took 438 ms, Hey API 527 ms, and Orval 866 ms.
  • For types plus Fetch SDKs, current Hey API and Kubb reduced generation time by 82.1% and 81.5% respectively compared with tested older versions.
  • openapi-typescript produced one 1.45 MB file, whereas Kubb generated 2,897 files totaling 3.13 MB; the author prefers Hey API’s more compact structure.
  • Orval provides status-discriminated errors and flexible clients, while Kubb v5 adds status narrowing, configurable throwing, unwrap(), runtime schemas, codecs, and typed SSE.
  • Kubb v5’s shared AST, resolvers, macros, Kit, and Registry support company-wide custom generation platforms, though Hey API also supports custom plugins.

#openapi #typescript #code generation #tanstack query

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Reactions

Total public reactions reported by the source; distinct from points and likes.

  • DEV Community: 102, latest observation ; +50 over observed period since

Comments

Comment count reported by the source.

  • DEV Community: 49, latest observation ; +39 over observed period since

Aliases

SourceExternal IDURL
DEV Community5095297https://dev.to/necoz/which-openapi-codegen-should-you-choose-in-2026-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-m8c Read discussion