xtal-fetch

JSON →
library 0.0.108 ·javascript
verified Jun 7, 2026

Vanilla web component wrapper around the native fetch API, inspired by Polymer's iron-ajax but with zero legacy dependencies and full ES6 module support. Current stable version is 0.0.108, with frequent updates. Key differentiators: lightweight (~2KB minzipped), works with any framework or no framework, supports Polymer-style template bindings, debouncing, base URL via link rel=preconnect, and a lite variant for minimal overhead. Breaks down into three subcomponents (xtal-fetch-lite, xtal-fetch, xtal-fetch.js) to reduce bundle size. Ships TypeScript types.