Skip to content
Eugene Lazutkin edited this page Aug 8, 2026 · 4 revisions

double-meh-sw ://

Node.js CI NPM version

double-meh-sw is the service-worker sibling of double-meh: one worker owning what only a service worker can — a shared cache tier served to every tab, cross-tab request coalescing, transparent request bundling for pages without the library, an invalidation hub, a version-upgrade flow, and the io:fetch message transport whose requests survive page navigation.

// sw.js — bundle this, serve the output from your origin, register it with {type: 'module'}
import {install} from 'double-meh-sw/sw.js';

install({
  version: '2026.07.04',
  cache: {cacheName: 'app-shared'},
  bundler: {url: '/bundle', match: '/api/'}
});

Everything degrades to plain fetches by design — the worker is a performance adornment, never a semantic layer. Pages running double-meh keep ownership of their own bundling (io:hello client-wins); pages without it get zero-integration acceleration.

Search

🔍 Search this wiki — ranked, deep-linked search via wiki-search; install the bookmarklet to search in place. Fallback: GitHub wiki search.

Documentation

Deploying

  • The assemblyinstall(options), serve order, respondWith gating, degradation rules

Modules

  • Cache tier — the shared Cache API tier: serve-first, invalidation
  • Coalescing — cross-tab in-flight dedup
  • Bundle window — transparent micro-window bundling
  • Messages — the io:* contract, client-wins, the io:fetch transport

Protocol

Project

Clone this wiki locally