Axios vs. Fetch: Which Fetch Wrapper Should I Choose in 2025?

Jeremy
2 min read3 days ago

--

It’s 2025, and Axios has supported fetch since v1.7, making it just another fetch wrapper.

The Axios package is 35.6KB/Gzip 13.5KB— too big as a fetch wrapper!

So, I looked into popular fetch wrappers and found these:

- wretch
- ky
- ofetch

The good thing is they are well-known and very small — under ~6KB(Gzip). The problem? Each has its own API style.

Axios is popular because of its easy-to-use API and powerful interceptors.

I wanted a fetch wrapper that works like Axios.

Besides these well-known fetch wrappers, there are many others. But after searching, I finally found the perfect one: xior

Why Xiorjs?

- Tiny, with an Axios-like API
- Built-in nested query parameter encoding
- Many useful built-in plugins
- Easy to customize with plugins
- Supports custom fetch implementations (works with proxies, old browsers, Tauri apps)

Size

https://bundlejs.com/?q=xior%400.7.6&treeshake=%5B%7B+default+%7D%5D

Show me the code

Xior is written in TypeScript, used in real projects, and the author fixes issues fast!

--

--

No responses yet