arthur installs as an app, and keeps what projects load

A manifest and icons make it installable. A service worker at /sw.js,
so its scope is every page, keeps by kind of URL: content-addressed
blobs and blocks for good, as projects load them; the versioned bundle
and styles until the next build; and the last copy of the page, the API
reads and other statics, for when there is no network. A project opened
once opens again offline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FLuCjp9kNH6ovwJVXSbq9
This commit is contained in:
Olive Vaughn 2026-10-11 00:42:53 -04:00
parent bbe20b3abf
commit f0af8d392a
9 changed files with 172 additions and 1 deletions

View file

@ -14,6 +14,9 @@ urlpatterns = [
# same page; the client reads the id out of the path and opens it.
path("p/<uuid:project_id>", views.page),
path("p/<uuid:project_id>/<slug:slug>", views.page),
# The service worker, at the root so it can control every page; see
# `views.service_worker`.
path("sw.js", views.service_worker),
path("api/", include("clips.urls")),
path("blob/<str:digest>", views.blob, name="blob"),
path("admin/", admin.site.urls),