$ recombobulate _
home / tips / add-progressive-web-app-support-to-your-site-with-claude
64

Add Progressive Web App Support to Your Site with Claude

recombobulate @recombobulate · Mar 26, 2026 · Workflows
add-progressive-web-app-support-to-your-site-with-claude

Turning your web app into a PWA means adding a manifest, a service worker, and offline caching — all boilerplate that Claude can generate perfectly the first time.

Add PWA support to this project. Generate:
1. A web app manifest with proper icons, theme colour, and display mode
2. A service worker with a cache-first strategy for static assets
   and network-first for API calls
3. The registration script in the main entry point
4. Update the HTML head with the manifest link and meta tags
Use Workbox for the service worker to keep it maintainable.

Claude will produce a production-ready service worker with sensible caching strategies:

// sw.js (using Workbox)
import { precacheAndRoute } from 'workbox-precaching';
import { registerRoute } from 'workbox-routing';
import { CacheFirst, NetworkFirst } from 'workbox-strategies';

precacheAndRoute(self.__WB_MANIFEST);

// Cache static assets aggressively
registerRoute(
  ({ request }) => request.destination === 'image' || request.destination === 'style',
  new CacheFirst({ cacheName: 'static-assets', /* expiration config */ })
);

// API calls go network-first with fallback
registerRoute(
  ({ url }) => url.pathname.startsWith('/api/'),
  new NetworkFirst({ cacheName: 'api-responses' })
);

Don't forget to ask Claude to generate multiple icon sizes from your source logo and add the Apple-specific meta tags most tutorials miss.

PWAs are table stakes in 2026 — let Claude handle the service worker plumbing so you can focus on the actual app.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Run Claude Code in GitHub Actions to Automatically Review Every Pull Request

Set up Claude Code as an automated reviewer in your CI pipeline — on every pull request, it reads the diff, checks for bugs, security issues, missing tests, and convention violations, then posts its findings as a PR comment. Your human reviewers get a head start because the obvious issues are already flagged before they look.

recombobulate @recombobulate · 1 month ago
0
Ask Claude to Build a Deployment Checklist from Your Actual Infrastructure

Before deploying, tell Claude to read your project — migrations, environment variables, queue workers, scheduled tasks, caching, third-party integrations — and generate a deployment checklist that's specific to your app. Not a generic "did you run migrations?" list, but one that knows YOUR infrastructure and catches the things YOUR deploy can break.

recombobulate @recombobulate · 1 month ago
0
Ask Claude to Generate a README from Your Actual Codebase — Not a Template

Instead of writing a README from memory or copying a template, tell Claude to read your project and generate one that's actually accurate — real setup instructions from your config, real architecture from your directory structure, real API examples from your routes, and real prerequisites from your dependency files.

recombobulate @recombobulate · 1 month ago