{"id":13406445,"url":"https://github.com/vite-pwa/vite-plugin-pwa","last_synced_at":"2025-05-13T15:06:35.906Z","repository":{"id":37205544,"uuid":"290129345","full_name":"vite-pwa/vite-plugin-pwa","owner":"vite-pwa","description":"Zero-config PWA for Vite","archived":false,"fork":false,"pushed_at":"2025-03-29T18:57:32.000Z","size":3699,"stargazers_count":3539,"open_issues_count":152,"forks_count":224,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-06T11:30:52.045Z","etag":null,"topics":["preact","pwa","react","solidjs","svelte","vite","vite-plugin","vue","workbox"],"latest_commit_sha":null,"homepage":"https://vite-pwa-org.netlify.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vite-pwa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"antfu","open_collective":"antfu"}},"created_at":"2020-08-25T06:11:26.000Z","updated_at":"2025-05-06T10:19:39.000Z","dependencies_parsed_at":"2024-01-07T00:56:24.454Z","dependency_job_id":"18d14563-ccba-4c77-a751-af02560031e6","html_url":"https://github.com/vite-pwa/vite-plugin-pwa","commit_stats":{"total_commits":592,"total_committers":61,"mean_commits":9.704918032786885,"dds":0.5726351351351351,"last_synced_commit":"2de47c447e33df3d87084f971df3ac1911075b82"},"previous_names":["antfu/vite-plugin-pwa"],"tags_count":130,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fvite-plugin-pwa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fvite-plugin-pwa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fvite-plugin-pwa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fvite-plugin-pwa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vite-pwa","download_url":"https://codeload.github.com/vite-pwa/vite-plugin-pwa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253969226,"owners_count":21992262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["preact","pwa","react","solidjs","svelte","vite","vite-plugin","vue","workbox"],"created_at":"2024-07-30T19:02:30.494Z","updated_at":"2025-05-13T15:06:35.816Z","avatar_url":"https://github.com/vite-pwa.png","language":"TypeScript","funding_links":["https://github.com/sponsors/antfu","https://opencollective.com/antfu"],"categories":["TypeScript","Tools","vue"],"sub_categories":[],"readme":"\u003cp align='center'\u003e\n\u003cimg src='https://vite-pwa-org.netlify.app/banner_light.svg' alt=\"vite-plugin-pwa - Zero-config PWA for Vite\"\u003e\u003cbr\u003e\nZero-config PWA Framework-agnostic Plugin for Vite\n\u003c/p\u003e\n\n\u003cp align='center'\u003e\n\u003ca href='https://www.npmjs.com/package/vite-plugin-pwa' target=\"__blank\"\u003e\n\u003cimg src='https://img.shields.io/npm/v/vite-plugin-pwa?color=33A6B8\u0026label=' alt=\"NPM version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/vite-plugin-pwa\" target=\"__blank\"\u003e\n    \u003cimg alt=\"NPM Downloads\" src=\"https://img.shields.io/npm/dm/vite-plugin-pwa?color=476582\u0026label=\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://vite-pwa-org.netlify.app/\" target=\"__blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=docs%20%26%20guides\u0026color=2e859c\" alt=\"Docs \u0026 Guides\"\u003e\n\u003c/a\u003e\n\u003cbr\u003e\n\u003ca href=\"https://github.com/antfu/vite-plugin-pwa\" target=\"__blank\"\u003e\n\u003cimg alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/antfu/vite-plugin-pwa?style=social\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## 🚀 Features\n\n- 📖 [**Documentation \u0026 guides**](https://vite-pwa-org.netlify.app/)\n- 👌 **Zero-Config**: sensible built-in default configs for common use cases\n- 🔩 **Extensible**: expose the full ability to customize the behavior of the plugin\n- 🦾 **Type Strong**: written in [TypeScript](https://www.typescriptlang.org/)\n- 🔌 **Offline Support**: generate service worker with offline support (via Workbox)\n- ⚡ **Fully tree shakable**: auto inject Web App Manifest\n- 💬 **Prompt for new content**: built-in support for Vanilla JavaScript, Vue 3, React, Svelte, SolidJS and Preact\n- ⚙️ **Stale-while-revalidate**: automatic reload when new content is available\n- ✨ **Static assets handling**: configure static assets for offline support\n- 🐞 **Development Support**: debug your custom service worker logic as you develop your application\n- 🛠️ **Versatile**: integration with meta frameworks: [îles](https://github.com/ElMassimo/iles), [SvelteKit](https://github.com/sveltejs/kit), [VitePress](https://github.com/vuejs/vitepress), [Astro](https://github.com/withastro/astro), [Nuxt 3](https://github.com/nuxt/nuxt) and [Remix](https://github.com/remix-run/remix)\n- 💥 **PWA Assets Generator**: generate all the PWA assets from a single command and a single source image\n- 🚀 **PWA Assets Integration**: serving, generating and injecting PWA Assets on the fly in your application\n\n## 📦 Install\n\n\u003e From v0.17, `vite-plugin-pwa` requires **Vite 5**.\n\n\u003e From v0.16 `vite-plugin-pwa` requires **Node 16 or above**: `workbox v7` requires **Node 16 or above**.\n\n\u003e From v0.13, `vite-plugin-pwa` requires **Vite 3.1 or above**.\n\n```bash\nnpm i vite-plugin-pwa -D\n\n# yarn\nyarn add vite-plugin-pwa -D\n\n# pnpm\npnpm add vite-plugin-pwa -D\n```\n\n## 🦄 Usage\n\nAdd `VitePWA` plugin to `vite.config.js / vite.config.ts` and configure it:\n\n```ts\n// vite.config.js / vite.config.ts\nimport { VitePWA } from 'vite-plugin-pwa'\n\nexport default {\n  plugins: [\n    VitePWA()\n  ]\n}\n```\n\nRead the [📖 documentation](https://vite-pwa-org.netlify.app/guide/) for a complete guide on how to configure and use\nthis plugin.\n\nCheck out the client type declarations [client.d.ts](./client.d.ts) for built-in frameworks support.\n\n## 👀 Full config\n\nCheck out the type declaration [src/types.ts](./src/types.ts) and the following links for more details.\n\n- [Web app manifests](https://developer.mozilla.org/en-US/docs/Web/Manifest)\n- [Workbox](https://developers.google.com/web/tools/workbox)\n\n## 📄 License\n\n[MIT](./LICENSE) License \u0026copy; 2020-PRESENT [Anthony Fu](https://github.com/antfu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvite-pwa%2Fvite-plugin-pwa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvite-pwa%2Fvite-plugin-pwa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvite-pwa%2Fvite-plugin-pwa/lists"}