{"id":14959237,"url":"https://github.com/vite-pwa/astro","last_synced_at":"2025-05-15T19:06:33.083Z","repository":{"id":62852910,"uuid":"534986594","full_name":"vite-pwa/astro","owner":"vite-pwa","description":"Zero-config PWA Integration for Astro","archived":false,"fork":false,"pushed_at":"2025-05-01T14:26:14.000Z","size":987,"stargazers_count":234,"open_issues_count":12,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-01T15:32:39.331Z","etag":null,"topics":["astro","astro-integration","pwa","vite","vite-plugin","workbox"],"latest_commit_sha":null,"homepage":"https://vite-pwa-org.netlify.app/frameworks/astro","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":"2022-09-10T12:07:38.000Z","updated_at":"2025-04-27T14:02:45.000Z","dependencies_parsed_at":"2024-05-11T19:22:18.069Z","dependency_job_id":"2bdcb206-0f35-4045-a047-639c5b136b22","html_url":"https://github.com/vite-pwa/astro","commit_stats":{"total_commits":79,"total_committers":2,"mean_commits":39.5,"dds":"0.012658227848101222","last_synced_commit":"133e3d8574303c66afdc35cc08c64cdb25ce88a2"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fastro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fastro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fastro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fastro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vite-pwa","download_url":"https://codeload.github.com/vite-pwa/astro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254404357,"owners_count":22065641,"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":["astro","astro-integration","pwa","vite","vite-plugin","workbox"],"created_at":"2024-09-24T13:19:13.223Z","updated_at":"2025-05-15T19:06:33.051Z","avatar_url":"https://github.com/vite-pwa.png","language":"TypeScript","funding_links":["https://github.com/sponsors/antfu","https://opencollective.com/antfu"],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cp align='center'\u003e\n\u003cimg src='./hero.png' alt=\"@vite-pwa/astro - Zero-config PWA Integration for Astro\"\u003e\u003cbr\u003e\nZero-config PWA Integration for Astro\n\u003c/p\u003e\n\n\u003cp align='center'\u003e\n\u003ca href='https://www.npmjs.com/package/@vite-pwa/astro' target=\"__blank\"\u003e\n\u003cimg src='https://img.shields.io/npm/v/@vite-pwa/astro?color=33A6B8\u0026label=' alt=\"NPM version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@vite-pwa/astro\" target=\"__blank\"\u003e\n    \u003cimg alt=\"NPM Downloads\" src=\"https://img.shields.io/npm/dm/@vite-pwa/astro?color=476582\u0026label=\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://vite-pwa-org.netlify.app/frameworks/astro\" 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/vite-pwa/astro\" target=\"__blank\"\u003e\n\u003cimg alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/vite-pwa/astro?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.2.0, `@vite-pwa/astro` requires **Vite 5** and **Astro 4.0.0 or above**.\n\n\u003e Using any version older than v0.2.0 requires Vite 3.1.0+.\n\n```bash\nnpm i @vite-pwa/astro -D\n\n# yarn\nyarn add @vite-pwa/astro -D\n\n# pnpm\npnpm add @vite-pwa/astro -D\n```\n\n## 🦄 Usage\n\nAdd `@vite-pwa/astro` integration to `astro.config.mjs` and configure it:\n\n```ts\n// astro.config.mjs\nimport AstroPWA from '@vite-pwa/astro'\nimport { defineConfig } from 'astro/config'\n\n// https://astro.build/config\nexport default defineConfig({\n  integrations: [AstroPWA()]\n})\n```\nRead the [📖 documentation](https://vite-pwa-org.netlify.app/frameworks/astro) for a complete guide on how to configure and use\nthis plugin.\n\n## ⚡️ Examples\n\nYou need to stop the dev server once started and then run `npm run build \u0026\u0026 npm run preview` to see the PWA in action.\n\u003ctable\u003e\n    \u003cthead\u003e\n    \u003ctr\u003e\n    \u003cth\u003eExample\u003c/th\u003e\n    \u003cth\u003eSource\u003c/th\u003e\n    \u003cth\u003ePlayground\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n    \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eAuto Update PWA\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"https://github.com/vite-pwa/astro/tree/main/examples/pwa-simple\"\u003eGitHub\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003e\n    \u003ca href=\"https://stackblitz.com/fork/github/vite-pwa/astro/tree/main/examples/pwa-simple\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n      \u003cimg src=\"https://developer.stackblitz.com/img/open_in_stackblitz.svg\" alt=\"Open in StackBlitz\" width=\"162\" height=\"32\"\u003e\n    \u003c/a\u003e\n    \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003ePrompt for Update PWA\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"https://github.com/vite-pwa/astro/tree/main/examples/pwa-prompt\"\u003eGitHub\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003e\n    \u003ca href=\"https://stackblitz.com/fork/github/vite-pwa/astro/tree/main/examples/pwa-prompt\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n      \u003cimg src=\"https://developer.stackblitz.com/img/open_in_stackblitz.svg\" alt=\"Open in StackBlitz\" width=\"162\" height=\"32\"\u003e\n    \u003c/a\u003e\n    \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n## 👀 Full config\n\nCheck out 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; 2022-PRESENT [Anthony Fu](https://github.com/antfu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvite-pwa%2Fastro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvite-pwa%2Fastro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvite-pwa%2Fastro/lists"}