Skip to content

Add Workbox PWA manifest example#275

Draft
bcomnes wants to merge 1 commit into
staic-client-cachefrom
staic-client-cache-workbox-pwa-example
Draft

Add Workbox PWA manifest example#275
bcomnes wants to merge 1 commit into
staic-client-cachefrom
staic-client-cache-workbox-pwa-example

Conversation

@bcomnes

@bcomnes bcomnes commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a Workbox-backed static PWA example that uses Domstack's unstable manifest preview as the source for Workbox precaching.

This PR is stacked on top of #262 / staic-client-cache and intentionally contains only the Workbox PWA example plus its root README/example script/dependabot references.

Includes

  • examples/workbox-pwa workspace
  • Workbox precacheAndRoute(self.__WB_MANIFEST) runtime pattern
  • Build-time conversion from public/domstack-manifest.json into Workbox precache entries
  • Static local server for serving the already-injected public/ output on port 3001
  • README documentation for running and testing the example

Validation

  • npm --workspace @domstack/workbox-pwa-example run build
  • npm run test:neostandard
  • git --no-pager diff --check

@socket-security

socket-security Bot commented Jul 6, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​workbox-routing@​7.4.1991007489100
Addednpm/​workbox-core@​7.4.11001007489100
Addednpm/​workbox-precaching@​7.4.1991007489100
Addednpm/​workbox-strategies@​7.4.1981007489100

View full report

@coveralls

coveralls commented Jul 6, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 28766403563

Coverage decreased (-0.07%) to 93.136%

Details

  • Coverage decreased (-0.07%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 5552
Covered Lines: 5288
Line Coverage: 95.24%
Relevant Branches: 1004
Covered Branches: 818
Branch Coverage: 81.47%
Branches in Coverage %: Yes
Coverage Strength: 146.12 hits per line

💛 - Coveralls

@bcomnes bcomnes force-pushed the staic-client-cache branch from 25e5323 to 85efc29 Compare July 6, 2026 03:44
Adds a Workbox-backed static PWA example that injects the unstable Domstack manifest into Workbox's precache manifest and serves the generated output for local offline testing.
@bcomnes bcomnes force-pushed the staic-client-cache-workbox-pwa-example branch from 1b9030e to 34f676b Compare July 6, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants