Could have a look at the following 3 places:

  • express-openapi-validator: Recommended tool. Although the name indicates it's just a validator. It actually can handle the routing work. Just implement the plain handler functions and EOV will take care of request validation and request routing according to the OAS you give;
  • OpenAPI Generator: widely used openapi codegen tools with custom generators to support various languages and frameworks. For Node.js, there is a nodejs-exporess-server, but it's marked beta. Actually it's based on express-openapi-validator.
  • openapi.tools: a collection of numerous OpenAPI tools to try, including quite a few server codegen tools;

express-openapi-validator is widely used and actively maintained so I think the quality is solid. The quality of the tools in the latter 2 places remain unknown.

Answer from Yuefeng Li on Stack Overflow
🌐
GitHub
github.com › OpenAPITools › openapi-generator
GitHub - OpenAPITools/openapi-generator: OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3) · GitHub
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3) - OpenAPITools/openapi-generator
Starred by 26.1K users
Forked by 7.5K users
Languages   Java 92.4% | TypeScript 2.1% | Kotlin 1.6% | Shell 1.0% | ANTLR 0.5% | Handlebars 0.4%
🌐
OpenAPI Generator
openapi-generator.tech › generators list
Generators List | OpenAPI Generator
February 14, 2026 - typescript-nestjs-server (beta) asciidoc · cwiki · dynamic-html · html · html2 · markdown (beta) openapi · openapi-yaml · plantuml (beta) avro-schema (beta) graphql-schema · ktorm-schema (beta) mysql-schema · postgresql-schema (beta) postman-collection (beta) protobuf-schema (beta) wsdl-schema (beta) apache2 ·
Discussions

How to generate an Express + TypeScript API from OpenAPI 3.0 specification? - Stack Overflow
I wrote specifications for my REST ... a server app from editor.swagger.io, but the generated code is javascript, so I can't use the typings from my models! Is there a tool that can generate, from an OpenAPI 3.0 specification, an express app written in typescript... More on stackoverflow.com
🌐 stackoverflow.com
schemantic – Generate TypeScript types + API client from OpenAPI (FastAPI friendly)
Curious what the difference between yours and any of the existing ones is. This is what I use: https://openapi-ts.dev/introduction More on reddit.com
🌐 r/reactjs
2
11
September 14, 2025
Anyone have experience with generating OpenAPI TypeScript code for use directly in a Lambda?
I just got started with this: https://openapi-ts.pages.dev it has a typescript generator and accompanied (type-safe) fetch-based client. It is especially lightweight which seems to be what you're looking for. More on reddit.com
🌐 r/aws
7
3
August 8, 2023
Open source open api to typescript generator

Wish the opposite existed

More on reddit.com
🌐 r/webdev
2
3
October 27, 2023
🌐
npm
npmjs.com › package › @openapi-generator-plus › typescript-express-example-server-generator
@openapi-generator-plus/typescript-express-example-server-generator - npm
December 15, 2025 - An OpenAPI Generator Plus template for a TypeScript API server using Express to serve example responses.
      » npm install @openapi-generator-plus/typescript-express-example-server-generator
    
🌐
OpenAPI Generator
openapi-generator.tech › docs › generators › typescript
Documentation for the typescript Generator | OpenAPI Generator
February 4, 2026 - These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to configuration docs for more details
🌐
GitHub
github.com › OpenAPITools › openapi-generator › blob › master › docs › generators › typescript-node.md
openapi-generator/docs/generators/typescript-node.md at master · OpenAPITools/openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3) - openapi-generator/docs/generators/typescript-node.md at master · ...
Author   OpenAPITools
Find elsewhere
🌐
Simonireilly
blog.simonireilly.com › posts › typescript-openapi
Typescript with the OpenAPI specification - Simon's Blog
We have our specification file from the above link. So lets review some of the tools we can ue to get our types from the specification: Link: https://github.com/OpenAPITools/openapi-generator · Generate clients, and stub servers in multiple languages from the OpenAPI specification.
🌐
npm
npmjs.com › package › openapi-typescript-codegen
openapi-typescript-codegen - npm
Node.js library that generates Typescript clients based on the OpenAPI specification.
      » npm install openapi-typescript-codegen
    
Published   Dec 22, 2025
Version   0.30.0
🌐
GitHub
github.com › OpenAPITools › openapi-generator › blob › master › docs › generators › typescript.md
openapi-generator/docs/generators/typescript.md at master · OpenAPITools/openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3) - openapi-generator/docs/generators/typescript.md at master · ...
Author   OpenAPITools
🌐
GitHub
github.com › openapi-ts › openapi-typescript
GitHub - openapi-ts/openapi-typescript: Generate TypeScript types from OpenAPI 3 specs · GitHub
Tools for consuming OpenAPI schemas in TypeScript. Generate TypeScript types from static OpenAPI schemas
Starred by 8.1K users
Forked by 640 users
Languages   TypeScript
🌐
GitHub
github.com › ferdikoomen › openapi-typescript-codegen
GitHub - ferdikoomen/openapi-typescript-codegen: NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification · GitHub
Node.js library that generates Typescript clients based on the OpenAPI specification.
Starred by 3.4K users
Forked by 543 users
Languages   TypeScript 83.5% | Handlebars 13.8% | JavaScript 2.7%
🌐
Reddit
reddit.com › r/reactjs › schemantic – generate typescript types + api client from openapi (fastapi friendly)
r/reactjs on Reddit: schemantic – Generate TypeScript types + API client from OpenAPI (FastAPI friendly)
September 14, 2025 -

I just published the first release of a project I’ve been working on: schemantic – a TypeScript code generator for OpenAPI.

🔹 What it does:

  • Takes any OpenAPI v3 schema (from URL or file)

  • Generates strongly typed models (types.ts)

  • Generates a typed axios API client (api-client.ts)

  • (Optional) React hooks for queries/mutations (hooks.ts)

  • Customizable with a small plugin system (branded types, zod validation, perf monitoring, request dedup, etc.)

🔹 Why I built it:
I've been working a lot more with FastAPI, and while it’s great that it auto-exposes an OpenAPI schema, I wanted a simple, typed, and extensible way to consume those APIs in TypeScript without hand-rolling clients or relying on heavyweight tools. This is geared heavily towards FastAPI, but will will work with any openapi.json.

# From a running FastAPI app
npx schemantic generate --url http://127.0.0.1:8000/openapi.json --output ./src/generated --hooks

This drops types.ts, api-client.ts, and (if you want) hooks.ts into your project.

🔹 Repo & docs:
GitHub: https://github.com/Cstannahill/schemantic
npm: https://www.npmjs.com/package/schemantic

This is the very first release (v0.1.0), so I’d love any feedback — whether you try it out on a project, compare it to tools like Orval or openapi-typescript, or just glance at the repo. This is an open-source project, and contribution is always welcome!

If you think this could be useful, please give it a spin! 🚀

🌐
Reddit
reddit.com › r/aws › anyone have experience with generating openapi typescript code for use directly in a lambda?
r/aws on Reddit: Anyone have experience with generating OpenAPI TypeScript code for use directly in a Lambda?
August 8, 2023 -

Context:

  • API is specified "API first", as OpenAPI 3.0 or 3.1 YAML files

  • no API gateway, the lambda(s) would be published via a function-URL with a simple Lambda concurrency limit

  • DoS attacks are not a concern, 429 responses are fine

  • no authorization, the API endpoints are publicly available

I am specifically avoiding using a large, opinionated framework - not Serverless, not SAM or any of the others. Just pure TypeScript - maybe with usage of a library for the parsing/formatting of data structures.

Mostly I want something to generate the interfaces for the endpoints (i.e. data structures for request/response bodies) and the code to parse/assert that the objects conform to the YAML API specification.

It seems like the openapi-generator project doesn't really have any support for this yet - lots of client generators for TypeScript, but doesn't seem like there's anything for the server side.

I'm looking for any publicly available examples or codebases that folks might know of.

🌐
The Guild
the-guild.dev › blog › announcing-fets-client
Consume OpenAPI in TypeScript Without Code Generation (The Guild)
April 23, 2023 - You can check out this file to see how it’s being used and how to generate the OpenAPI spec: feTS server example. Key features of feTS Client include type safety out of the box, no runtime overhead, support for different JavaScript environments, and IDE TypeScript support.
🌐
GitHub
github.com › Himenon › openapi-typescript-code-generator
GitHub - Himenon/openapi-typescript-code-generator: TypeScript code generator via OpenAPI scheme. · GitHub
TypeScript AST is used to generate the code, which is accurately converted to TypeScript code. Since the parameters extracted from OpenAPI can be used freely, it can be used for automatic generation of API Client and Server Side code, load balancer ...
Starred by 207 users
Forked by 16 users
Languages   TypeScript 98.4% | JavaScript 1.6%
🌐
HackerOne
hackerone.com › blog › generating-typescript-types-openapi-rest-api-consumption
Generating TypeScript Types with OpenAPI for REST API Consumption | HackerOne
March 3, 2024 - OpenAPI Generator: The OpenAPI Generator project offers extensive documentation on how to generate client libraries, server stubs, API documentation, and other useful components from an OpenAPI Specification.
🌐
GitHub
github.com › hey-api › openapi-ts
GitHub - hey-api/openapi-ts: 🌀 OpenAPI to TypeScript codegen. Production-ready SDKs, Zod schemas, TanStack Query hooks, and 20+ plugins. Used by Vercel, OpenCode, and PayPal.
3 weeks ago - 🌀 OpenAPI to TypeScript codegen. Production-ready SDKs, Zod schemas, TanStack Query hooks, and 20+ plugins. Used by Vercel, OpenCode, and PayPal. - hey-api/openapi-ts
Starred by 4.5K users
Forked by 346 users
Languages   TypeScript
🌐
Openapistack
openapistack.co › generating types
Generating types | openapi-stack
--backend Generate types for openapi-backend --client Generate types for openapi-client-axios (default) EXAMPLES $ openapi typegen --client ./openapi.yml > openapi.d.ts $ openapi typegen --backend ./openapi.yml > openapi.d.ts · You can directly ...