Skip to content

docs: added axios#210

Merged
43081j merged 2 commits intoe18e:mainfrom
Tragio:main
Jul 15, 2025
Merged

docs: added axios#210
43081j merged 2 commits intoe18e:mainfrom
Tragio:main

Conversation

@Tragio
Copy link
Copy Markdown
Contributor

@Tragio Tragio commented Jun 1, 2025

Hi there 👋

This PR adds documentation for axios alternatives to help developers reduce dependencies by using native solutions or lightweight libraries.

What's included:

  • Native fetch API: The primary recommendation, now available in Node.js 18+ and all modern browsers
  • ky: Tiny HTTP client based on fetch with a convenient API
  • ofetch: Enhanced fetch with automatic parsing and interceptors

Key benefits:

  • Reduce bundle size by eliminating axios dependency (axios is ~13KB minified + gzipped)
  • Use native browser/Node.js APIs when possible

@outslept
Copy link
Copy Markdown
Contributor

outslept commented Jun 1, 2025

Love it! One note though - might be worth mentioning that ky also has interceptors (under the name "hooks") since this is often cited as one of the major reasons why devs can't migrate from axios to alternatives, at least in my experience discussing this with other devs.

@Tragio
Copy link
Copy Markdown
Contributor Author

Tragio commented Jun 2, 2025

@outslept awesome, thank you! I already added it 🚀

Copy link
Copy Markdown
Contributor

@43081j 43081j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me 👍

@43081j 43081j merged commit 43c60af into e18e:main Jul 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants