PWA (Progressive Web App) is the on-the-cheap option for converting web pages into installable apps. Honest comparison:
| Option | Cost | Time to deploy | User install | App Store presence |
|---|---|---|---|---|
| PWA | Low (same HTML + 2 small files) | Days | Home-screen icon; browser install prompt | No |
| TWA (Trusted Web Activity) | Low-medium (small Android wrapper) | Weeks | Play Store install | Yes (Play Store) |
| Capacitor / Cordova | Medium (native shell) | Weeks-months | App Store + Play Store install | Yes (both stores) |
| Native (React Native / Flutter) | High (full native build) | Months | App Store + Play Store install | Yes (both stores) |
Honest framing. PWA is the on-the-cheap path because the existing HTML/CSS/JS the agent has built becomes the app with two small additions: a manifest.json file and a service worker. The user installs the page on their phone's home screen; the page opens full-screen; works offline; loads fast. App Store presence is the only thing PWA doesn't give you; if App Store presence is required, TWA / Capacitor is the next step up.
The manifest.json file tells the browser how the page behaves when installed as an app. The manifest references the per-member URL as the start URL; the icons are the member's branding; the theme color matches the ORB palette.
{
"name": "{{MEMBER_NAME}} · Cosmic Orb",
"short_name": "{{MEMBER_SHORT_NAME}}",
"description": "{{MEMBER_TAGLINE}}",
"start_url": "/per-member-landing-template?member={{MEMBER_SLUG}}&source=pwa",
"display": "standalone",
"background_color": "#fafaf6",
"theme_color": "#272c68",
"orientation": "portrait",
"icons": [
{
"src": "{{MEMBER_ICON_192_URL}}",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "{{MEMBER_ICON_512_URL}}",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "{{MEMBER_ICON_MASKABLE_512_URL}}",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"categories": ["business", "lifestyle", "social"],
"shortcuts": [
{
"name": "JOKE of the WEEK",
"url": "/per-member-landing-template?member={{MEMBER_SLUG}}&shortcut=joke",
"icons": [{"src": "{{JOKE_ICON_URL}}", "sizes": "96x96"}]
},
{
"name": "Refer a friend",
"url": "/per-member-landing-template?member={{MEMBER_SLUG}}&shortcut=refer",
"icons": [{"src": "{{REFER_ICON_URL}}", "sizes": "96x96"}]
},
{
"name": "Charity support",
"url": "/per-member-landing-template?member={{MEMBER_SLUG}}&shortcut=charity",
"icons": [{"src": "{{CHARITY_ICON_URL}}", "sizes": "96x96"}]
}
]
}
Per-member operator workflow.
<link rel="manifest" href="/manifest.json"> tag in the head.The service worker is a small JavaScript file that runs in the background. It enables offline support, fast loads, and push notifications. The service worker caches the page's assets on first load; subsequent loads come from the cache; updates are picked up on next visit.
// Service Worker for Cosmic Orb member pages
const CACHE_NAME = "cosmic-orb-member-v1";
const ASSETS = [
"/",
"/per-member-landing-template",
"/manifest.json",
"{{MEMBER_ICON_192_URL}}",
"{{MEMBER_ICON_512_URL}}"
];
self.addEventListener("install", event => {
event.waitUntil(
caches.open(CACHE_NAME).then(cache => cache.addAll(ASSETS))
);
});
self.addEventListener("activate", event => {
event.waitUntil(
caches.keys().then(keys =>
Promise.all(
keys.filter(key => key !== CACHE_NAME).map(key => caches.delete(key))
)
)
);
});
self.addEventListener("fetch", event => {
event.respondWith(
caches.match(event.request).then(cached => {
return cached || fetch(event.request).then(response => {
if (response.status === 200) {
const clone = response.clone();
caches.open(CACHE_NAME).then(cache => cache.put(event.request, clone));
}
return response;
});
}).catch(() => caches.match("/per-member-landing-template"))
);
});
Honest framing. The service worker is registered on the page via a small script in the HTML head. Once registered, the service worker takes over offline support, caching, and (optionally) push notifications. The service worker is a static file served at /service-worker.js; the page's HTML includes navigator.serviceWorker.register("/service-worker.js").
The per-member landing page needs three additions in its HTML head:
<head>
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#272c68">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="{{MEMBER_NAME}}">
<link rel="apple-touch-icon" href="{{MEMBER_ICON_192_URL}}">
</head>
Plus a service worker registration script at the end of the body:
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/service-worker.js")
.then(reg => console.log("Service Worker registered", reg))
.catch(err => console.error("Service Worker registration failed", err));
}
</script>
The agent's Per-Member Landing Page (Template) needs these additions applied per-member. The operator populates the per-member values (manifest, icons, theme color) at deployment.
On supported browsers, the user sees an "Install" prompt the first time they visit the per-member page. The flow:
beforeinstallprompt event.Once installed, the per-member page behaves like a native app:
The service worker can register for push notifications. The operator wires a push service (e.g., OneSignal, Firebase Cloud Messaging, or a self-hosted Web Push server). The flow:
The push-notification piece is operator-side and counsel-side work. The structural surface is named; the actual wiring is a future-session item. Push notifications are valuable for the JOKE-of-the-DAY / EMPOWER-of-the-DAY subscription surface; the JOKE content can be delivered as a push notification, not just an email.
Honest framing on what PWA does and doesn't give you:
| Capability | PWA | Native app |
|---|---|---|
| Home-screen icon | Yes | Yes |
| Full-screen launch | Yes | Yes |
| Offline support | Yes | Yes |
| Push notifications | Yes (with service worker + push service) | Yes |
| App Store presence | No | Yes |
| App Store install | No (browser install prompt) | Yes |
| Native device APIs (camera, GPS, etc.) | Partial (browser-permissioned) | Yes |
| Discoverability in app stores | No | Yes |
Honest framing. PWA gives you 90% of what a native app gives you for 10% of the cost. The 10% you're missing is the App Store presence, which is the load-bearing piece for some user-acquisition strategies. If App Store presence is required, TWA / Capacitor is the next step up; if not, PWA is the on-the-cheap path.
The agent builds the structural surface (the manifest template, the service worker template, the page-level wiring). The operator deploys at member-onboarding.
/pwa-architecture-member-pages-to-app.