Repository navigation
Conversation
Adds a web manifest (standalone display, theme color, app icon) and registers the service worker on load so Beacon is installable and opens offline. The existing streaming worker gains app-shell caching rather than adding a second worker that would fight it for the root scope: navigations are network-first with a cached-shell fallback, content-hashed assets are cache-first, and /p2p/, /api/, /socket.io/, media, and range requests are all left untouched so streaming and live data keep working. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes Beacon installable (address-bar install → app window, home-screen icon) and able to open offline.
manifest.webmanifest): standalone display, theme color, name/description, and an app icon.app-icon.svg): a simple beacon mark with maskable safe-zone padding. Placeholder-quality on purpose — easy to swap for real art later.sw.jsgains app-shell caching. Navigations are network-first with a cached-shell offline fallback; content-hashed build assets are cache-first. Critically,/p2p/,/api/,/socket.io/, media, and any Range request are all left untouched, so stream-while-downloading and live data are unaffected.Verified in a real browser: the page is SW-controlled, the manifest parses (standalone, icon, theme color), and there are no console errors. Ran the SW-sensitive specs explicitly (streaming, P2P transfer, video playback) — all pass — plus the full Playwright suite green with no failures.
The icon is deliberately a placeholder; point me at real art (or a direction) and I'll swap it.
🤖 Generated with Claude Code