Vue PWA Template
Starter for SPAs with PWA support: installable on devices, works offline, updates in the background.
Setup
Scaffold with my Stack tool:
npx @davidaganov/stack
yarn dlx @davidaganov/stack
pnpm dlx @davidaganov/stack
bunx @davidaganov/stack
Why
A PWA is a web app you can install on phone or desktop so it behaves more like native: opens outside the browser chrome, works offline, can receive push notifications. Technically that is a service worker plus a Web App Manifest.
Wiring all of that from scratch is tedious. Here it is already done with vite-plugin-pwa: the service worker is generated automatically, caching strategy is set, manifest is hooked up.
What’s inside
Base stack: Vue 3, Vite, TypeScript, Vue Router, ESLint + Prettier.
Optional features you pick at generation time:
- Pinia — state store
- i18n — vue-i18n with typed locales and Polyglot Keeper to sync translations
- Tests — Vitest + Vue Test Utils
Bottom line
If you need an SPA with offline support and installability, start here. PWA plumbing is ready; everything else is optional.