AxiosKite is an enhanced wrapper around Axios (v2.1.0, actively maintained) that adds built-in response unwrapping, token management with automatic 401 refresh, request retry (with exponential backoff), deduplication, caching, cancellation, tracing (X-Trace-Id), field transformation (camelCase/snake_case), circuit breaker, and request queuing. It uses a curried request API, ships TypeScript definitions, and is designed for fastify/DI ecosystems. Compared to raw Axios, it offers zero-config enterprise features without sacrificing the native Axios API. New in v2: DoubleCertification, circuit breaker. First stable release: v1.0.
npm install axios-kiteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an AxiosKite instance with base URL, timeout, response unwrapping, retry, and a global bearer token interceptor, then makes a GET request.
Update constructor call to pass interceptors object: new AxiosKite({...}, {beforeRequest: ..., responseError: ...}).Set unwrapResponse: true in options if you need automatic response unwrapping.
Always call method twice: api.get(url)() or api.post(url)(body). The first call returns a function expecting optional body/query.
Replace retry: { delay: 1000 } with retry: { retryDelay: 1000 } or retry: { retryDelay: (attempt) => attempt * 1000 }.Switch to import statement: import { AxiosKite } from 'axios-kite'Call method with two sets of parentheses: api.get('/url')()Set isDoubleCertification: true in AxiosKite options and call api.doubleCertification() with refresh logic.