Gathering detailed insights and metrics for openapi-typescript-codegen
Gathering detailed insights and metrics for openapi-typescript-codegen
Gathering detailed insights and metrics for openapi-typescript-codegen
Gathering detailed insights and metrics for openapi-typescript-codegen
openapi-typescript
Convert OpenAPI 3.0 & 3.1 schemas to TypeScript
@pakholeung37/openapi-typescript-codegen
Library that generates Typescript clients based on the OpenAPI specification.
@openapi-codegen/typescript
OpenAPI Codegen typescript generators
swagger-typescript-api
Generate the API client for Fetch or Axios from an OpenAPI Specification
NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
npm install openapi-typescript-codegen
Typescript
Module System
Node Version
NPM Version
94.6
Supply Chain
98.6
Quality
76.1
Maintenance
100
Vulnerability
99.6
License
TypeScript (83.69%)
Handlebars (13.89%)
JavaScript (2.33%)
HTML (0.04%)
Dockerfile (0.04%)
Total Downloads
30,098,856
Last Day
7,632
Last Week
274,927
Last Month
1,250,641
Last Year
12,225,899
MIT License
3,221 Stars
2,719 Commits
540 Forks
13 Watchers
6 Branches
50 Contributors
Updated on Jul 04, 2025
Minified
Minified + Gzipped
Latest Version
0.29.0
Package Id
openapi-typescript-codegen@0.29.0
Unpacked Size
225.42 kB
Size
33.61 kB
File Count
6
NPM Version
10.5.0
Node Version
20.11.1
Published on
Apr 07, 2024
Cumulative downloads
Total Downloads
Last Day
-7.8%
7,632
Compared to previous day
Last Week
-12.5%
274,927
Compared to previous week
Last Month
4.3%
1,250,641
Compared to previous month
Last Year
14.8%
12,225,899
Compared to previous year
53
Please migrate your projects to use @hey-api/openapi-ts
Due to time limitations on my end, this project has been unmaintained for a while now. The @hey-api/openapi-ts
project started as a fork with the goal to resolve the most pressing issues. going forward they are planning to
maintain the OpenAPI generator and give it the love it deserves. Please support them with their work and make
sure to migrate your projects: https://heyapi.vercel.app/openapi-ts/migrating.html
👋 Thanks for all the support, downloads and love! Cheers Ferdi.
Node.js library that generates Typescript clients based on the OpenAPI specification.
npm install openapi-typescript-codegen --save-dev
$ openapi --help
Usage: openapi [options]
Options:
-V, --version output the version number
-i, --input <value> OpenAPI specification, can be a path, url or string content (required)
-o, --output <value> Output directory (required)
-c, --client <value> HTTP client to generate [fetch, xhr, node, axios, angular] (default: "fetch")
--name <value> Custom client class name
--useOptions Use options instead of arguments
--useUnionTypes Use union types instead of enums
--exportCore <value> Write core files to disk (default: true)
--exportServices <value> Write services to disk (default: true)
--exportModels <value> Write models to disk (default: true)
--exportSchemas <value> Write schemas to disk (default: false)
--indent <value> Indentation options [4, 2, tab] (default: "4")
--postfixServices Service name postfix (default: "Service")
--postfixModels Model name postfix
--request <value> Path to custom request file
-h, --help display help for command
Examples
$ openapi --input ./spec.json --output ./generated
$ openapi --input ./spec.json --output ./generated --client xhr
The main documentation can be found in the openapi-typescript-codegen/wiki
If you or your company use the OpenAPI Typescript Codegen, please consider supporting me. By sponsoring I can free up time to give this project some love! Details can be found here: https://github.com/sponsors/ferdikoomen
If you're from an enterprise looking for a fully managed SDK generation, please consider our sponsor:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
4 existing vulnerabilities detected
Details
Reason
4 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 4
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More