hey-api
π¨βπ Turn API specifications into production-ready SDKs, validators, mocks, and more. 20+ plugins. Millions of weekly npm downloads. Used by Vercel, OpenCode,
What is hey-api?
π¨βπ Turn API specifications into production-ready SDKs, validators, mocks, and more. 20+ plugins. Millions of weekly npm downloads. Used by Vercel, OpenCode, PayPal, AWS, Autodesk, and many more.
Overview of hey-api
What it is
Hey API is an ecosystem for turning API specifications into production-ready code. It is a monorepo containing open source packages, including openapi-ts (TypeScript code generator with 20+ plugins) and openapi-python (Python code generator). The project is used by companies such as Vercel, OpenCode, PayPal, AWS, and Autodesk, and receives millions of weekly npm downloads.
Key features
- Production-grade code that compiles - Runs in any Node.js 22+ environment - Accepts any OpenAPI specification - Core plugins for SDKs - HTTP clients for Fetch API, Axios, Angular, Next.js, Nuxt, HTTPX, and more - Zod schemas, TanStack Query hooks, Pydantic models, and 20+ plugins to reduce third-party boilerplate - Highly customizable via plugins
Use cases
- Generating TypeScript SDKs from OpenAPI specifications - Generating Python SDKs and Pydantic models - Creating Zod schemas and TanStack Query hooks for validation and data fetching - Building mocks and validators from API specs - Reducing boilerplate in projects that consume APIs
Getting started
See the repository README for package-specific documentation and quick start guides.
License and pricing
MIT License. Open source.
Based on the project's public README and repository metadata.