feaxios is a lightweight (2KB) wrapper around the native Fetch API that provides an API almost identical to Axios, including interceptors, configurable timeouts, request/response transforms, and built-in retry support via a dedicated subpackage. Current stable version is 0.0.23, released as an early-stage package with pre-1.0 stability. Key differentiators vs Axios: 80% smaller bundle, no XMLHttpRequest dependency, zero polyfills required in modern browsers. Ideal for bundle-size-sensitive projects that want to migrate from Axios to native fetch without rewriting request logic. Ships TypeScript types. Released under MIT license.
npm install feaxiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a feaxios instance with a base URL, attach retry logic, add an auth interceptor, and make a GET request.
Ensure runtime supports native fetch (modern browsers, Node 18+). Polyfill not provided.
Access response.data directly as parsed object.
Pin version exactly or expect potential breaking changes.
Import as a different alias: `import feaxios from 'feaxios'`
Provide a function returning milliseconds: `retryDelay: (retryNumber) => retryNumber * 1000`
Use import or switch to dynamic import: import('feaxios').then(m => m.default.get(...))Ensure feaxios >= 0.0.19 and import exactly: 'feaxios/retry'
Check responseType; for non-JSON use response.text() or response.blob() via fetchOptions.
No dependency data recorded yet.