awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
developit avatar

developit/unfetch

0
View on GitHub↗
5,712 星标·202 分支·JavaScript·MIT·3 次浏览npm.im/unfetch↗

Unfetch

unfetch 是一个同构 HTTP 客户端和网络库,提供了一个基于 Promise 的接口,用于在浏览器和服务器环境中一致地执行网络请求。它作为 Fetch API 的轻量级实现,适用于缺乏原生网络请求支持的环境。

该库支持以文本、JSON 或二进制 Blob 的形式检索 Web 资源,同时保持较小的内存占用。它通过在原生浏览器支持不可用时将 fetch 接口安装到全局命名空间中来充当 Polyfill。

该工具涵盖了广泛的 Web 资源检索功能,包括执行 HTTP 请求、检查响应头和解析响应内容的能力。

Features

  • Isomorphic HTTP Clients - Implements a promise-based interface for performing network requests consistently across both browser and server environments.
  • Fetch Polyfills - Implements the official web fetch specification to provide a consistent API across legacy and modern environments.
  • Metric Data URL Fetches - Retrieves web resources using asynchronous promises with configurable methods, headers, and bodies.
  • Request Execution - Executes HTTP requests by switching between different implementation drivers based on the runtime environment.
  • HTTP Request Execution - Performs standard synchronous and asynchronous HTTP operations across both browser and server environments.
  • Isomorphic - Routes network calls to the appropriate underlying driver based on whether the code is running in a browser or server.
  • Network Implementation Switching - Switches between native browser APIs and server-side network modules depending on the detected execution runtime.
  • Promise-Based HTTP Clients - Provides a promise-based interface for making asynchronous network requests consistently across multiple platforms.
  • Promise-Based API Wrappers - Wraps asynchronous network operations in promises to provide a standardized interface for request and response cycles.
  • Cross-Environment Polyfills - Provides an abstract networking layer that allows the same API to function identically in Node.js and browser environments.
  • Isomorphic Networking Libraries - Provides a compact tool for retrieving web resources as text, JSON, or binary blobs across different environments.
  • Network Resource Retrievals - Retrieves web resources using asynchronous promises that resolve into standardized response objects.
  • Response Body Parsing - Provides utilities to convert raw network response payloads into structured formats such as JSON, text, or binary blobs.
  • Response Header Extractors - Extracts header keys and values from network responses to verify metadata and server instructions.
  • Global - Attaches the fetch implementation to the global object to ensure compatibility with code expecting a native API.
  • Networking Libraries - Offers a minimalist implementation for executing HTTP requests and parsing responses with a small memory footprint.
  • API Layer - Lightweight fetch polyfill for older environments.

Star 历史

developit/unfetch 的 Star 历史图表developit/unfetch 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Unfetch 的开源替代方案

相似的开源项目,按与 Unfetch 的功能重合度排序。
  • axios/axiosaxios 的头像

    axios/axios

    109,077在 GitHub 上查看↗

    Axios is an isomorphic, promise-based HTTP client designed for making asynchronous network requests across different JavaScript execution environments, including the browser and Node.js. It functions as a JSON API client that serializes JavaScript objects into JSON and parses server responses into structured data. The project features a system for managing reusable client instances with shared configurations, such as base URLs and default settings. It includes a mechanism for intercepting outgoing requests and incoming responses globally, allowing data to be transformed before it reaches the

    JavaScripthacktoberfesthttp-clientjavascript
    在 GitHub 上查看↗109,077
  • github/fetchgithub 的头像

    github/fetch

    25,881在 GitHub 上查看↗

    This project is a JavaScript fetch polyfill and HTTP client library. It implements the Fetch API in environments that lack native browser support for web requests, providing a promise-based network wrapper for executing asynchronous HTTP calls and managing responses. The library ensures a consistent interface across different JavaScript runtimes by mapping raw network data into standardized request and response objects. It utilizes the XMLHttpRequest object to perform network operations in environments where a native fetch implementation is unavailable. The tool covers HTTP request managemen

    JavaScript
    在 GitHub 上查看↗25,881
  • mikeal/r2mikeal 的头像

    mikeal/r2

    4,404在 GitHub 上查看↗

    r2 is a JavaScript HTTP client library and asynchronous request library used for executing network calls. It provides a runtime-agnostic network layer that abstracts underlying HTTP implementations to ensure consistent behavior across different JavaScript execution environments. The library functions as a JSON API client, automatically parsing response bodies and formatting outgoing payloads. It utilizes a promise-based interface to manage the lifecycle of HTTP requests and responses. The project covers REST API integration and HTTP header management, allowing users to attach custom key-valu

    JavaScript
    在 GitHub 上查看↗4,404
  • elbywan/wretchelbywan 的头像

    elbywan/wretch

    5,174在 GitHub 上查看↗

    Wretch is a chainable HTTP client library and Fetch API wrapper designed to simplify network request configuration, response parsing, and error handling. It functions as a network request manager and middleware framework for managing the end-to-end lifecycle of HTTP calls. The project is distinguished by a fluent interface for request configuration and a modular extension system. It utilizes a programmable response resolver to automate parsing and a plugin-based architecture to add new capabilities to request and response objects. The library covers a broad range of operational capabilities,

    TypeScript
    在 GitHub 上查看↗5,174
查看 Unfetch 的所有 30 个替代方案→

常见问题解答

developit/unfetch 是做什么的?

unfetch 是一个同构 HTTP 客户端和网络库,提供了一个基于 Promise 的接口,用于在浏览器和服务器环境中一致地执行网络请求。它作为 Fetch API 的轻量级实现,适用于缺乏原生网络请求支持的环境。

developit/unfetch 的主要功能有哪些?

developit/unfetch 的主要功能包括:Isomorphic HTTP Clients, Fetch Polyfills, Metric Data URL Fetches, Request Execution, HTTP Request Execution, Isomorphic, Network Implementation Switching, Promise-Based HTTP Clients。

developit/unfetch 有哪些开源替代品?

developit/unfetch 的开源替代品包括: axios/axios — Axios is an isomorphic, promise-based HTTP client designed for making asynchronous network requests across different… github/fetch — This project is a JavaScript fetch polyfill and HTTP client library. It implements the Fetch API in environments that… mikeal/r2 — r2 is a JavaScript HTTP client library and asynchronous request library used for executing network calls. It provides… elbywan/wretch — Wretch is a chainable HTTP client library and Fetch API wrapper designed to simplify network request configuration,… matthew-andrews/isomorphic-fetch — isomorphic-fetch is a cross-runtime fetch API and isomorphic HTTP client that provides a standardized request… dart-lang/http — This library provides a unified, cross-platform interface for executing HTTP requests and managing network…