# Consuming the wallpaper library — wallpapers.hungrymuse.com This hub is the single living home of the Hungry Muse backdrop library (Rob's order, 2026-11-25). Every site and app that offers wallpapers draws them from here; a fix made here reaches every consumer on its own. ## URLs (stable) - Library root: `https://wallpapers.hungrymuse.com/v1//` (backdrop.css, backdrop-engine.js, media, markup — the scene package) - Shared loader: `https://wallpapers.hungrymuse.com/loader/glass-backdrops.js` (plus `seasonal.js`, `optimize-glass.js` in the same folder) - Library manifest (scene list, kinds, file lists): `https://wallpapers.hungrymuse.com/manifest.json` - Version manifest (tiny, polled): `https://wallpapers.hungrymuse.com/hub-manifest.json` - Per-file stamps (fetched only after a change): `https://wallpapers.hungrymuse.com/hub-files.json` - Gallery: `https://wallpapers.hungrymuse.com/` Declare the base once, the house way: ```js window.GLASS_BACKDROP_BASE = 'https://wallpapers.hungrymuse.com/v1/'; window.GLASS_BACKDROP_KEY = 'wk-glass-backdrop'; // or the app's standing key ``` then load the loader from the hub. An app keeps only its picker wiring and its per-device choice persistence; no app tree carries scene files. ## Refresh pushes itself (Rob, 2026-11-25) Nobody refreshes by hand and nobody clears a cache. Consumers load one extra script from the hub: ```html ``` What it does: 1. On load, and then every 60 seconds, it fetches ONLY `hub-manifest.json` (about 2 KB, `cache: 'no-store'`). The manifest carries a content-derived library `version` and one stamp per scene — it changes only when library content actually changes. 2. Unchanged version → nothing else is fetched, ever. An idle consumer's only traffic is the tiny manifest poll. 3. Changed version → if the visitor's current scene stamp moved, the watcher fetches `hub-files.json` (only then) to name that scene's files and re-applies the current scene in place through the shared loader (`GlassBackdrops.set(id)`), or fires a `wallpaper-refresh` event for hosts without the loader. No page reload. 4. Assets are served with fresh-data headers (`Cache-Control: no-cache, must-revalidate`, `Expires: 0`) and the manifest carries per-file version stamps, so on a re-apply unchanged assets answer 304 and only the files that actually changed move bytes. 5. Loader-code changes are detected (the manifest's `loader_stamp`) and logged; scene content pushes live, loader code takes full effect on the next natural page load — swapping the running loader mid-session is not safe. Every poll and re-apply is logged with timestamps to `window.__wpRefreshLog` (and `console.info`) — that log is the acceptance instrumentation for the push. ## Cache mode The hub serves fresh-data headers on everything while backdrop change work is in flight (Rob's 2026-11-12 cache-change canon). Consumers must not append their own cache-busting query strings; the versioned path (`v1/`) and the manifest stamps are the scheme.