Skip to main content
XenonStack

Enterprise Digital Platform

XenonStack Insights Progressive Web App Development: Architecture Guide

| Published | Updated

Progressive web app guide: HTTPS, web app manifest, service worker and cache, installable app experience

Key takeaway

  • A progressive web app installs, works offline and runs from one codebase. See how the manifest, service worker and cache fit together, plus Angular steps.

A progressive web app (PWA) is a web application built with web platform technologies that gives users an experience like that of a platform-specific app. It runs from a single codebase on many devices, and it can be installed, work offline and run background tasks.

This guide is for developers and product owners who want an app-like experience without separate iOS, Android and desktop builds. It covers what makes a web app progressive, the four building blocks, the service worker lifecycle, an Angular route to a first PWA, and where AI agents fit. It sits beside our guides on user experience design and customer and user experience.

What is a progressive web app?

The MDN guide to progressive web apps says that, like a website, a PWA can run on multiple platforms and devices from a single codebase. Like a platform-specific app, it can be installed on the device, can operate while offline and in the background, and can integrate with the device and with other installed apps.

"Progressive" means you add these capabilities in layers. A page that works in any browser stays usable, and browsers that support more features unlock more of the app-like behaviour.

TraitWebsitePWAPlatform-specific app
Single codebase across platformsYesYesUsually one build per platform
Installable on the deviceNoYesYes
Works offlineNot by defaultYes, through a service workerDepends on the app
Reached by a URLYesYesThrough a store listing

Why do teams build progressive web apps?

The appeal is reach and maintenance. One codebase serves phone, tablet and desktop, users can install the app straight from the browser, and the app can keep working when the connection is poor. Design and engineering decisions still matter: speed, accessibility and search visibility depend on how you build it. Our guide to the Google Lighthouse tool shows how to audit a page against these qualities, and website security covers the wider hygiene a PWA inherits from the web.

What are the building blocks of a PWA?

BlockWhat it doesSource detail
Web app manifestDescribes the app, customises its appearance and integrates it with the operating systemMDN lists members such as name, short_name, start_url, display, theme_color, background_color and icons
Service workerIntercepts network requests and serves responses from its own cacheMDN compares it to a proxy server
Cache APIPersistent storage for HTTP responses so assets can be reused offlineUsed from the service worker
HTTPSSecure transport required to run service workerslocalhost is treated as a secure origin for development

Beyond these, MDN lists the Background Synchronization API, which defers tasks until the network is stable, and the Push and Notifications APIs for re-engaging users. Not every browser supports every API, so check support before you rely on one.

How does a service worker work?

The MDN guide to using service workers says a service worker functions like a proxy server, letting you modify requests and responses and replace them with items from its own cache. It runs in a worker context with no DOM access, and it must be served over HTTPS.

Two-column diagram. Setup phase: register, install, activate, manifest. Runtime phase: fetch event, cache match, network fallback, response served.
  1. Register. The page calls navigator.serviceWorker.register with the script path and an optional scope.
  2. Install. The install event fires once after registration succeeds, and is generally used to populate the offline cache. MDN shows assets added with caches.open and cache.addAll inside event.waitUntil.
  3. Activate. A first service worker activates without waiting. An updated one waits until no pages still use the old version, unless it calls skipWaiting().
  4. Fetch. A fetch event fires for every resource the worker controls. A cache-first strategy answers from caches.match and falls back to fetch.

How do you build a PWA with Angular?

Angular ships a package that generates the manifest, icons and a service worker configuration for you. The steps are short, and you should confirm the current command options in the Angular documentation for your version.

  1. Create an application with the Angular CLI (ng new).
  2. Add the PWA package with ng add @angular/pwa. It creates icons, a service worker configuration and a web manifest, and updates files such as angular.json, package.json, app.module.ts and index.html.
  3. Review the generated service worker configuration. It sets which files are cached up front, which are cached lazily, and which API endpoints are cached and with what strategy.
  4. Run a production build and serve the output over HTTPS or on localhost, because service workers only run on a secure origin.
  5. Open the app in a supported browser and use the install prompt, then check the cache in the Application panel of browser developer tools.

How do AI agents change progressive web app development?

AI agents add a layer around the app rather than inside the service worker. Agents can generate and review manifests, run audits on every build, and test offline behaviour across devices. The cache and the network rules still need clear ownership, because an agent that changes caching can change what users see. Teams use ElixirClaw, the AI agents computing platform, to run and govern agent workflows like these. Teams that need an app experience their customers can trust should treat each agent change to caching, permissions or notifications as a reviewed release, as they would any other.

What should you do first?

  1. Decide which user journeys must work offline and which can fail gracefully.
  2. Write the manifest, with name, icons, start URL and display mode.
  3. Register one service worker with a small cache of core assets.
  4. Audit the result with Lighthouse and fix what it reports.
  5. Define who approves changes to caching and notifications.

To map one decision your agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is the difference between a PWA and a website?

A PWA is a web app that can be installed on the device, can work offline and in the background, and can integrate with the device, while a plain website runs only inside the browser.

Do PWAs need HTTPS?

Yes. The MDN guide says service workers are restricted to HTTPS for security reasons, and that localhost is treated as a secure origin for development.

What does a service worker do in a PWA?

It acts like a proxy server between the page and the network, so it can answer requests from its own cache. It has no DOM access.

What is a web app manifest?

It is a file that describes the app, including its name, icons, start URL and display mode, so the operating system can install and present it like an app.

How do I create a PWA with Angular?

Create an Angular app, run ng add @angular/pwa to generate the manifest, icons and service worker configuration, then build for production and serve over HTTPS or localhost.

Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue