Comlink Fetch is a minimal ES6 wrapper that integrates the native Fetch API with Comlink, enabling fetch calls to be offloaded to a Web Worker for improved UI performance. Current stable version: 0.1.2. Release cadence is low (single initial release). It differentiates by providing a zero-config proxy that allows fetch to be used transparently within workers, unlike manual message passing. Only supports default import, no named exports. Note: Package is experimental and no longer actively maintained.
npm install comlink-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: wrap a worker with Comlink and perform fetch inside the worker.
Use native fetch in workers directly (modern browsers support it) or use Comlink with explicit fetch.
Use `import comlinkFetch from 'comlink-fetch'`
For bundler usage, consider using dynamic import or fork the package.
Pin comlink to version 3 or use a more recent Comlink wrapper.
Run `npm install comlink-fetch`
Change to `import comlinkFetch from 'comlink-fetch'`
Add `importScripts('path/to/comlink.js')` before comlink-fetch.