PHPackages                             diu/neos-pwa - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. diu/neos-pwa

ActiveNeos-plugin

diu/neos-pwa
============

1.0.2(2y ago)11191MITPHP

Since Mar 8Pushed 1y agoCompare

[ Source](https://github.com/diu-digital/DIU.Neos.PWA)[ Packagist](https://packagist.org/packages/diu/neos-pwa)[ RSS](/packages/diu-neos-pwa/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (5)Used By (0)

Service Worker (PWA) for Neos
=============================

[](#service-worker-pwa-for-neos)

This package adds a basic configuration to precache content using service worker with google workbox. Furthermore, it will add a "Add to homescreen" for your devices who are supporting it.

Setup
-----

[](#setup)

Run `composer require diu/neos-pwa`

### Configuration

[](#configuration)

Copy the following files to your site package and change the values to your need:

- `Settings.Manifest.yaml`
- `Settings.Workbox.yaml` For all configuration options see:
- `Settings.MsApplication.yaml`

Add all icons for the manifest, an example is in the `Settings.Manfiest.yaml` and set name, colors ...

For the workbox setting, it is usually enough to adapt only the globPattern to your needs. We recommend to only include files from your package, don't add any Neos static files.

All necessary configurations are added to the `Neos.Neos:Page` prototype. The initialisation of the service worker is done via inline javascript before the closing body tag.

SUGGESTION: Exclude in your .gitignore `/Web/sw.js` and `/Web/workbox-*` as they should be automatically generated while your CI/CD process and is versioned by workbox-cli.

### Create workbox-config.js

[](#create-workbox-configjs)

Run `./flow pwa:create` or `./flow pwa:update`. This will create/update the workbox-config.json in your project root.

### Local testing

[](#local-testing)

We recommend to use DDEV as you need a valid https connection, but it should also work with `http://localhost` for development.

- make sure you have installed the package
- Run `npm add workbox-cli && npx workbox generateSW`(instead of npm you can also use `yarn add workbox-cli`)

### Add to your CI/CD pipeline

[](#add-to-your-cicd-pipeline)

Workbox needs your paths to static resources. Therefore, you have to provide a complete "build" environment. We suggest to add a new FLOW\_CONTEXT like `Development\Workbox\Settings.db.yaml` where you add a setting for an in-memory sqlite database:

```
    Neos:
      Flow:
        persistence:
          backendOptions:
            driver: 'pdo_sqlite'
            path: ':memory:'
            username: NULL
            password: NULL
          doctrine:
            cacheImplementation: NULL
            dbname: 'flow_functional_testing'
```

Add these build steps:

- Run `./flow resource:publish --collection static` as workbox needs the static files while building the service worker in next step
- `npm add workbox-cli && npx workbox-cli generateSW` This will generate your service worker, based on the workbox-config.js in your `/Web` directory

(instead of npm you can also use `yarn add workbox-cli`)

Roadmap
-------

[](#roadmap)

1. Autogenerate all favicon/icons based on Manifest.yaml and add them to the header

Sponsor
-------

[](#sponsor)

This Neos plugin is kindly sponsored by DI Unternehmer - Digitalagentur GmbH

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~455 days

Total

3

Last Release

980d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4df37002e22763e04e7e7b08f339210844688f2ea67980a825fb9d45143da745?d=identicon)[DIU](/maintainers/DIU)

---

Top Contributors

[![akappler](https://avatars.githubusercontent.com/u/30337968?v=4)](https://github.com/akappler "akappler (7 commits)")[![akappler-diu](https://avatars.githubusercontent.com/u/267666191?v=4)](https://github.com/akappler-diu "akappler-diu (5 commits)")[![andreas-reichel-diu](https://avatars.githubusercontent.com/u/101269956?v=4)](https://github.com/andreas-reichel-diu "andreas-reichel-diu (1 commits)")[![grizooo](https://avatars.githubusercontent.com/u/52205810?v=4)](https://github.com/grizooo "grizooo (1 commits)")[![markusguenther](https://avatars.githubusercontent.com/u/1014126?v=4)](https://github.com/markusguenther "markusguenther (1 commits)")

---

Tags

google-workboxneosneos-pluginservice-worker

### Embed Badge

![Health badge](/badges/diu-neos-pwa/health.svg)

```
[![Health](https://phpackages.com/badges/diu-neos-pwa/health.svg)](https://phpackages.com/packages/diu-neos-pwa)
```

###  Alternatives

[neos/neos-ui

Neos CMS UI written in React

2661.0M104](/packages/neos-neos-ui)[neos/neos

An open source Content Application Platform based on Flow. A set of core Content Management features is resting within a larger context that allows you to build a perfectly customized experience for your users.

116989.0k674](/packages/neos-neos)[sitegeist/kaleidoscope

Responsive-images for Neos

29352.4k10](/packages/sitegeist-kaleidoscope)[sandstorm/neostwofactorauthentication

1223.6k](/packages/sandstorm-neostwofactorauthentication)[neos/seo

SEO configuration and tools for Neos

13990.5k24](/packages/neos-seo)[neos/form-builder

Flow Form Framework integration into Neos CMS

19347.1k18](/packages/neos-form-builder)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
