RepositoryTypeScript
suhaotian

suhaotian/xior

A liteweight fetch wrapper with plugins support and similar API to axios.

456sao
10fork
3issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: fetch-wrapper

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: request

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: xior

#1 Repository của tuần

🚀 xior - Thư viện HTTP nhẹ dựa trên fetch với plugin mạnh

dựa trên fetch

xior mang API quen thuộc từ axios nhưng nhẹ hơn và hỗ trợ plugin linh hoạt.

xior là một thư viện HTTP nhẹ được xây dựng dựa trên fetch, tương thích API với axios và hỗ trợ hệ thống plugin mạnh mẽ. Dự án nhằm cung cấp giải pháp thay thế axios nhẹ l footprint, phù hợp cho các dự án TypeScript/React hiện đại.

✨ Điểm nổi bật

  • Dựa trên fetch: sử dụng fetch native của trình duyệt hoặc môi trường JavaScript hiện đại.
  • API giống axios: hỗ trợ create, interceptors, các phương thức get/post/put/patch/delete/head/options.
  • Hỗ trợ plugin: retry lỗi, deduplication, throttle, cache, mock, mã hóa query lồng nhau.
  • Nhẹ ~6KB: dung lượng nhỏ, phù hợp cho bundle tối ưu.
  • Timeout & cancel: hỗ trợ thiết lập thời gian chờ và hủy yêu cầu.
  • Kiểu mạnh TypeScript: được định nghĩa kiểu rõ ràng, an toàn khi dùng.
  • Được kiểm thử đơn vị: đảm bảo độ tin cậy và ổn định.

💡 Vì sao đáng chú ý

xior không chỉ là bản sao của axios mà còn mở rộng với hệ thống plugin linh hoạt, cho phép tùy biến hành vi theo nhu cầu thực tế. Đặc biệt phù hợp cho dự án muốn giảm kích thước bundle nhưng vẫn giữ được trải nghiệm dev quen thuận với axios. Hỗ trợ mạnh cho SSR, React Native, Next.js và các framework hiện đại.


#HTTP #TypeScript #Fetch #Axios #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
sindresorhus/ky

🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API

17.2k
Oct 9, 2026
RepositoryTypeScript
elbywan/wretch

A tiny wrapper built around fetch with an intuitive syntax. :candy:

5.2k
Jun 19, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
RepositoryJavaScript
ladjs/frisbee

:dog2: Modern fetch-based alternative to axios/superagent/request. Great for React Native.

1.1k
Jan 4, 2026
RepositoryJavaScript
amplitude/redux-query

A library for managing network state in Redux

1.1k
Dec 12, 2023
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryTypeScript
nilbuild/developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

373.1k
Dec 1, 2026