Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hey-api/openapi-ts

✨ Turn your OpenAPI specification into a beautiful TypeScript client
https://github.com/hey-api/openapi-ts

angular axios codegen fetch generator http javascript nextjs nodejs openapi openapi3 rest swagger ts typescript xhr

Last synced: about 2 months ago
JSON representation

✨ Turn your OpenAPI specification into a beautiful TypeScript client

Awesome Lists containing this project

README

        


Logo

OpenAPI Typescript


✨ Turn your OpenAPI specification into a beautiful TypeScript client.


Generate TypeScript interfaces, REST clients, and JSON Schemas from OpenAPI specifications.

[Live demo](https://stackblitz.com/edit/hey-api-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fservices.gen.ts,src%2Fclient%2Ftypes.gen.ts)

## Features

- works with CLI, Node.js 18+, or npx
- supports OpenAPI 2.0, 3.0, and 3.1 specifications
- supports both JSON and YAML input files
- generates TypeScript interfaces, REST clients, and JSON Schemas
- Fetch API, Axios, Angular, Node.js, and XHR clients available

## Documentation

Please visit our [website](https://heyapi.vercel.app/) for documentation, guides, migrating, and more.

## GitHub Integration (coming soon)

Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.vercel.app/openapi-ts/integrations.html).

## Migrating from OpenAPI Typescript Codegen?

Please read our [migration guide](https://heyapi.vercel.app/openapi-ts/migrating.html#openapi-typescript-codegen).

## Contributing

Want to get involved? Please refer to the [contributing guide](https://heyapi.vercel.app/contributing.html).