xhfetch

JSON →
library 1.0.2 ·javascript
verified Jun 7, 2026

Minimal cancellable fetch wrapper (~600 bytes gzipped) providing a familiar fetch-like API over XMLHttpRequest. Current version 1.0.2 is stable with infrequent releases. Differentiators: tiny size, explicit cancellation via exposed XHR object, IE8+ support (with Promise polyfill). Alternative to unfetch or native fetch when cancellation is required.