unfetch

JSON →
library 5.0.0 ·javascript
verified Jun 7, 2026

A minimal 500-byte fetch polyfill that provides a subset of the standard fetch API. Version 5.0.0 is the current stable release, maintained infrequently as it is feature-complete. Unlike larger alternatives (e.g., whatwg-fetch), unfetch focuses on bare-bones functionality: it only supports text and JSON responses, uses Arrays instead of Iterables, and has no streaming support. It works as both a polyfill (auto-installs on window.fetch) and a ponyfill (importable function). TypeScript types are included. Requires a Promise polyfill for IE11 and below.