Skip to content

Feature: Add PWA (Progressive Web App) Support for Chrome "Install as App" #512

@bilal-arikan

Description

@bilal-arikan

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

  1. Install vite-plugin-pwa as a dev dependency in apps/webui
  2. 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)
  3. Verify existing manifest.json meets all Chrome installability criteria
  4. Ensure the service worker registers correctly when served over HTTPS

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions