Problem or Motivation
Summary
The web UI (apps/webui) is already ~70% PWA-ready but lacks a service worker, which prevents Chrome from offering the "Install App" option. Adding basic PWA support would allow users to install Craft Agents as a standalone app directly from the browser.
Current State
- manifest.json already exists with display: "standalone", proper icons (192x192, 512x512), and theme colors
- HTML meta tags (apple-touch-icon, theme-color, manifest link) are already configured
- Missing: Service worker (required by Chrome for installability)
- Missing: vite-plugin-pwa or equivalent Vite integration
Proposed Solution
- Install vite-plugin-pwa as a dev dependency in apps/webui
- Add PWA configuration to apps/webui/vite.config.ts with a basic service worker (e.g., NetworkFirst strategy for API
calls, CacheFirst for static assets)
- Verify existing manifest.json meets all Chrome installability criteria
- Ensure the service worker registers correctly when served over HTTPS
Alternatives Considered
No response
Additional Context
No response
Problem or Motivation
Summary
The web UI (apps/webui) is already ~70% PWA-ready but lacks a service worker, which prevents Chrome from offering the "Install App" option. Adding basic PWA support would allow users to install Craft Agents as a standalone app directly from the browser.
Current State
Proposed Solution
calls, CacheFirst for static assets)
Alternatives Considered
No response
Additional Context
No response