
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
openapi-typescript-codegen
Advanced tools
NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification.
NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification.
npm install openapi-typescript-codegen --save-dev
package.json
{
"scripts": {
"generate": "openapi ./api/openapi.json ./dist"
}
...
}
Command line
npm install openapi-typescript-codegen -g
openapi ./api/openapi.json ./dist
NodeJS API:
const OpenAPI = require('openapi-typescript-codegen');
const result = OpenAPI.generate(
'./api/openapi.json',
'./dist'
);
console.log(result);
OpenAPI Generator is a comprehensive tool that supports generating API clients, server stubs, API documentation, and configuration in various languages. Compared to openapi-typescript-codegen, it offers broader language support and more customization options.
swagger-typescript-api is a tool that generates TypeScript API clients from Swagger/OpenAPI definitions. It focuses on simplicity and ease of use, similar to openapi-typescript-codegen, but may offer different customization options and templates.
typescript-fetch is a generator for TypeScript clients using the Fetch API. It is part of the OpenAPI Generator project and provides a different approach to generating TypeScript clients compared to openapi-typescript-codegen, focusing on using the Fetch API for HTTP requests.
FAQs
Library that generates Typescript clients based on the OpenAPI specification.
The npm package openapi-typescript-codegen receives a total of 99,183 weekly downloads. As such, openapi-typescript-codegen popularity was classified as popular.
We found that openapi-typescript-codegen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.