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.
| Trait | Website | PWA | Platform-specific app |
|---|---|---|---|
| Single codebase across platforms | Yes | Yes | Usually one build per platform |
| Installable on the device | No | Yes | Yes |
| Works offline | Not by default | Yes, through a service worker | Depends on the app |
| Reached by a URL | Yes | Yes | Through 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?
| Block | What it does | Source detail |
|---|---|---|
| Web app manifest | Describes the app, customises its appearance and integrates it with the operating system | MDN lists members such as name, short_name, start_url, display, theme_color, background_color and icons |
| Service worker | Intercepts network requests and serves responses from its own cache | MDN compares it to a proxy server |
| Cache API | Persistent storage for HTTP responses so assets can be reused offline | Used from the service worker |
| HTTPS | Secure transport required to run service workers | localhost 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.
- Register. The page calls
navigator.serviceWorker.registerwith the script path and an optional scope. - Install. The install event fires once after registration succeeds, and is generally used to populate the offline cache. MDN shows assets added with
caches.openandcache.addAllinsideevent.waitUntil. - Activate. A first service worker activates without waiting. An updated one waits until no pages still use the old version, unless it calls
skipWaiting(). - Fetch. A fetch event fires for every resource the worker controls. A cache-first strategy answers from
caches.matchand falls back tofetch.
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.
- Create an application with the Angular CLI (
ng new). - Add the PWA package with
ng add @angular/pwa. It creates icons, a service worker configuration and a web manifest, and updates files such asangular.json,package.json,app.module.tsandindex.html. - 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.
- Run a production build and serve the output over HTTPS or on localhost, because service workers only run on a secure origin.
- 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?
- Decide which user journeys must work offline and which can fail gracefully.
- Write the manifest, with name, icons, start URL and display mode.
- Register one service worker with a small cache of core assets.
- Audit the result with Lighthouse and fix what it reports.
- 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.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE