@scalar/ts-to-openapi
v0.2.2
Published
Convert typescript types to openapi spec compliant json
Readme
Scalar Typescript Type to OpenAPI Spec Converter
This an extremely early version of a typescript type to OpenAPI document converter. The goal is to take types that one would normally use when developing an API and convert them to an OpenAPI document which will then be used to power the standalone Scalar API References.
Scalar is an open-source API platform for teams who want beautiful developer interfaces without vendor lock-in.
- API References — Interactive API documentation from OpenAPI and AsyncAPI specs.
- Docs — Write in Markdown/MDX, generate API references, sync with two-way Git.
- SDKs — Type-safe client libraries in TypeScript, Python, Go, PHP, Java, and Ruby.
- MCP Servers — Generate secure MCP servers from your API spec.
- API Client — Open-source, offline-first Postman alternative built on OpenAPI.
20M+ monthly npm installs · 15,500+ GitHub stars · MIT licensed · scalar.com
This package is not meant to be used directly, but will be the core technology behind framework specific integrations starting with Next.js.
