{"repo":"hairyf/genapi","free":true,"listed":false,"github":"https://github.com/hairyf/genapi","clone":"git clone https://github.com/hairyf/genapi.git","description":"API pipeline generator, which is used to convert OpenApi (v2~v3) and any input sources into TS/JS APIs, and currently supports axios, fetch, ky, got, ofetch","language":"TypeScript","stars":45,"topics":["swagger","typescript","api-generator","generator","javascript","openapi","angular","axios","codegen","fetch"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"genapi [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![JSDocs][jsdocs-src]][jsdocs-href] [![License][license-src]][license-href] 中文 English English Docs A lightweight API code generator—only the code you need. Features - 🚀 Multiple HTTP Clients - Support for axios, fetch, ky, got, ofetch, tanstack-query, uni - 🔄 TypeScript & JavaScript - Generate both TS and JS APIs with full type definitions - 📋 Schema Mode - Type-safe fetch APIs with schema-based typing (supports fetch and ofetch presets) - 📖 Multiple Data Sources - Support for OpenAPI 2.0/3.x, Swagger and other input sources - 🔧 Interactive CLI - Use genapi init for guided setup with preset selection - 🛠️ Customizable Pipeline - Flexible pipeline system for customizing the generation process - 🔀 Transform & Patch - Batch transform operations and types, or make exact-match modifications - 🎭 Mock Data - Automatically generate mock methods for each API function (requires better-mock ) - 🌐 Multiple Services - Support for projects with multiple API services via servers configuration - ⚡️ Type Safety - Full TypeScript support with type inference and IntelliSense - 📦 Zero Config - Works out of the box with sensible defaults, customize as needed Usage Init Project Just run the following command to init your project: Or install and configure manually: Create genapi.config.ts : Then run to generate API code like: For more ","default_branch":null,"files":null,"tree":[],"storefront":"/r/hairyf","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hairyf/genapi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}