forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/forge-web/assets/sw.jsClear filter

2026-10-21

✨ feat: the page recovers on its own when the server restartsAhmet Kaan Gümüş · 8ae0722
✨ feat: the page recovers on its own when the server restarts

Every page holds a stream to /-/alive. While it is down a bar says the server is
restarting and the page stays put. Soft navigations are kept and made again when the
server is back; a form post is never sent again and the bar asks for a new submit.
A full load during an outage gets an offline page from the service worker, which
reloads itself once the server answers. Every event stream sends retry: 1000, and
streams closed by a proxy's error are reopened by the page after 1, 2, then 3 s.
✨ feat: web push notifications with a service worker and per-device settingsAhmet Kaan Gümüş · 8a4b8e7
✨ feat: web push notifications with a service worker and per-device settings

Each inbox notification also goes to the user's devices that turned push on. Pushes are encrypted with web-push-native (RFC 8291, RFC 8292), sent from a spawned task, and carry only a short title, body and link. Devices are managed on the notifications settings page, which updates live. Adds a service worker at /sw.js, a web app manifest and icons.