Type-safe Axios client generator from OpenAPI specs, v2.1.2. Actively maintained with monthly releases. Distinguishes itself by providing a zero-config CLI with interactive TUI, result-based error handling (no try/catch), watch mode for auto-regeneration, and CI-friendly non-interactive mode. Generates fully typed API clients with autocomplete for endpoints, parameters, and responses. Requires Node >=20 and Vite >=5 as a peer dependency.
npm install chowbea-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes chowbea-axios, generates client from OpenAPI spec, and demonstrates type-safe API calls with result-based error handling.
Edits should be made to src/api/api.client.ts, api.instance.ts, api.error.ts, or api.helpers.ts only.
Add --non-interactive flag (e.g., npx chowbea-axios init --non-interactive)
Split spec or use file reference with $ref.
Upgrade Node.js to version 20 or later.
Use the Vite plugin or run 'chowbea-axios watch' with explicit file path.
Run 'npx chowbea-axios fetch' to generate the client.
Use 'import { api } from './src/api/api.client'' (named import).Add operationId to all operations in the OpenAPI spec.
Use '--ignore-ssl-errors' flag or configure NODE_TLS_REJECT_UNAUTHORIZED=0 in environment.