awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
JakeChampion avatar

JakeChampion/fetch

0
View on GitHub↗

Fetch

This project is a polyfill for the standard fetch API. It adds a promise-based fetch function, along with the Request, Response and Headers interfaces, to older browsers that lack native support. It checks at load time whether a built-in implementation exists and activates only when one is missing, so native versions are left untouched.

Requests are carried over the older XMLHttpRequest interface, with their events wrapped in promises so code written for the modern API runs unchanged. It follows the standard model: any completed HTTP reply resolves the promise, including 404 and 500 statuses, and only a network failure causes rejection. Abort signals can cancel in-flight requests, including in older browsers whose built-in fetch has no abort support. A credentials option controls whether cookies and login details are sent with same-site or cross-domain requests, with guidance for older browsers whose defaults differed. When the browser cannot expose the final post-redirect address, the polyfill falls back to a server-supplied header to report it.

Beyond the core, it covers sending forms, JSON and multipart uploads with files, and reading replies as text, JSON or HTML. It attaches fetch and its related classes to the global object, so existing code finds them without imports. It ships as both a global script and an importable module, and can be installed through a package manager and loaded ahead of the application entry point in a Webpack build.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Fetch Polyfills - Adds a promise-based fetch function along with Request, Response and Headers interfaces to older browsers that lack native support.
  • XMLHttpRequest Transports - Carries every request over the older XMLHttpRequest interface and wraps its events in promises so modern calling code runs unchanged.
  • Legacy Browser Polyfills - Lets modern promise-based network code run unchanged in older browsers lacking built-in support, so one codebase serves old and new environments.
  • Credentialed Cross-Origin Requests - Offers a single credentials option controlling whether cookies and login details travel with same-site or cross-domain requests.
  • Promise-Based HTTP Clients - Sends HTTP requests and reads text, JSON, form or multipart replies through standard promise chains instead of nested callbacks.
  • Request Abort Signals - Listens to a standard abort signal and cancels the underlying network request, rejecting the promise with a recognisable abort error.
  • HTTP Error Status Semantics - Treats 404 and 500 replies as normal results, with guidance on rejecting non-2xx statuses in a custom response handler.
  • Conditional Loading - Checks at load time whether a native implementation exists and installs itself only when it is missing.
25,821 stars·2,811 forks·JavaScript·MIT·4 views

Star history

Star history chart for jakechampion/fetchStar history chart for jakechampion/fetch

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does jakechampion/fetch do?

This project is a polyfill for the standard fetch API. It adds a promise-based fetch function, along with the Request, Response and Headers interfaces, to older browsers that lack native support. It checks at load time whether a built-in implementation exists and activates only when one is missing, so native versions are left untouched.

What are the main features of jakechampion/fetch?

The main features of jakechampion/fetch are: Fetch Polyfills, XMLHttpRequest Transports, Legacy Browser Polyfills, Credentialed Cross-Origin Requests, Promise-Based HTTP Clients, Request Abort Signals, HTTP Error Status Semantics, Conditional Loading.

Which projects share features with jakechampion/fetch?

Projects with overlapping indexed features include: github/fetch — This project is a JavaScript fetch polyfill and HTTP client library. It implements the Fetch API in environments that… developit/unfetch — unfetch is an isomorphic HTTP client and network library that provides a promise-based interface for performing… bitinn/node-fetch — node-fetch is a lightweight HTTP client library that implements the browser-standard Fetch API for Node.js. It… mzabriskie/axios — Axios is a promise-based HTTP client used to make asynchronous network requests in both browser and Node.js… es-shims/es5-shim — es5-shim is an ECMAScript 5 polyfill library and standard library shim. It serves as a JavaScript compatibility layer… stefanpenner/es6-promise — es6-promise is an ES6 promise polyfill and JavaScript compatibility layer. It provides a standardized interface for…

Projects sharing features with Fetch

These projects share indexed features with Fetch. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • github/fetchgithub avatar

    github/fetch

    25,881View on 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
    View on GitHub↗25,881
  • developit/unfetchdevelopit avatar

    developit/unfetch

    5,696View on GitHub↗

    unfetch is an isomorphic HTTP client and network library that provides a promise-based interface for performing network requests consistently across both browser and server environments. It serves as a lightweight implementation of the Fetch API for environments that lack native support for making network requests. The library enables the retrieval of web resources as text, JSON, or binary blobs while maintaining a small memory footprint. It functions as a polyfill by installing the fetch interface into the global namespace when native browser support is unavailable. The tool covers broad ca

    JavaScript
    View on GitHub↗5,696
  • bitinn/node-fetchbitinn avatar

    bitinn/node-fetch

    8,861View on GitHub↗

    node-fetch is a lightweight HTTP client library that implements the browser-standard Fetch API for Node.js. It provides a promise-based interface for making asynchronous network requests to retrieve or send data from server-side environments. The project specializes in memory-efficient data handling by utilizing request and response streaming. This allows for the incremental processing of large network payloads through native system streams to prevent memory exhaustion. The library covers a broad range of networking capabilities, including the use of custom HTTP agents for DNS and SSL config

    JavaScript
    View on GitHub↗8,861
  • mzabriskie/axiosmzabriskie avatar

    mzabriskie/axios

    109,096View on GitHub↗

    Axios is a promise-based HTTP client used to make asynchronous network requests in both browser and Node.js environments. It functions as a multi-environment network adapter that abstracts the transport layer to ensure consistent behavior across different runtimes. The project distinguishes itself through a request lifecycle management system that allows for the cancellation of active requests, the setting of timeouts, and the monitoring of upload and download transfer progress. It includes a mechanism for intercepting network traffic, enabling the transformation of outgoing requests and inco

    JavaScript
    View on GitHub↗109,096
Compare all 30 related projects→