{"id":13810478,"url":"https://github.com/vite-pwa/sveltekit","last_synced_at":"2025-04-14T04:08:55.369Z","repository":{"id":61924374,"uuid":"533860531","full_name":"vite-pwa/sveltekit","owner":"vite-pwa","description":"Zero-config PWA Plugin for SvelteKit","archived":false,"fork":false,"pushed_at":"2025-03-29T20:38:34.000Z","size":1640,"stargazers_count":352,"open_issues_count":19,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T04:08:48.123Z","etag":null,"topics":["pwa","sveltekit","vite","vite-plugin","workbox"],"latest_commit_sha":null,"homepage":"https://vite-pwa-org.netlify.app/frameworks/sveltekit","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},"funding":{"github":"antfu","open_collective":"antfu"}},"created_at":"2022-09-07T17:01:16.000Z","updated_at":"2025-04-08T14:03:35.000Z","dependencies_parsed_at":"2023-02-01T06:15:17.213Z","dependency_job_id":"874b3fc6-c185-431c-9a88-d3d618aca359","html_url":"https://github.com/vite-pwa/sveltekit","commit_stats":{"total_commits":108,"total_committers":2,"mean_commits":54.0,"dds":0.0092592592592593,"last_synced_commit":"ec0f0368715bbf1ff04fa2fcf3520ad8c1529552"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fsveltekit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fsveltekit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fsveltekit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-pwa%2Fsveltekit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vite-pwa","download_url":"https://codeload.github.com/vite-pwa/sveltekit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819404,"owners_count":21166477,"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":["pwa","sveltekit","vite","vite-plugin","workbox"],"created_at":"2024-08-04T02:00:55.483Z","updated_at":"2025-04-14T04:08:55.350Z","avatar_url":"https://github.com/vite-pwa.png","language":"TypeScript","funding_links":["https://github.com/sponsors/antfu","https://opencollective.com/antfu"],"categories":["TypeScript","vite"],"sub_categories":[],"readme":"\u003cp align='center'\u003e\n\u003cimg src='./hero.png' alt=\"@vite-pwa/sveltekit - Zero-config PWA for SvelteKit\"\u003e\u003cbr\u003e\nZero-config PWA Plugin for SvelteKit\n\u003c/p\u003e\n\n\u003cp align='center'\u003e\n\u003ca href='https://www.npmjs.com/package/@vite-pwa/sveltekit' target=\"__blank\"\u003e\n\u003cimg src='https://img.shields.io/npm/v/@vite-pwa/sveltekit?color=33A6B8\u0026label=' alt=\"NPM version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@vite-pwa/sveltekit\" target=\"__blank\"\u003e\n    \u003cimg alt=\"NPM Downloads\" src=\"https://img.shields.io/npm/dm/@vite-pwa/sveltekit?color=476582\u0026label=\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://vite-pwa-org.netlify.app/frameworks/sveltekit\" 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/sveltekit\" target=\"__blank\"\u003e\n\u003cimg alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/vite-pwa/sveltekit?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.3.0, `@vite-pwa/sveltekit` supports SvelteKit 2 (should also support SvelteKit 1).\n\n\u003e From v0.2.0, `@vite-pwa/sveltekit` requires **SvelteKit 1.3.1 or above**.\n\n```bash\nnpm i @vite-pwa/sveltekit -D\n\n# yarn\nyarn add @vite-pwa/sveltekit -D\n\n# pnpm\npnpm add @vite-pwa/sveltekit -D\n```\n\n## 🦄 Usage\n\nAdd `SvelteKitPWA` plugin to `vite.config.js / vite.config.ts` and configure it:\n\n```ts\n// vite.config.js / vite.config.ts\nimport { sveltekit } from '@sveltejs/kit/vite'\nimport { SvelteKitPWA } from '@vite-pwa/sveltekit'\n\nexport default {\n  plugins: [\n    sveltekit(),\n    SvelteKitPWA()\n  ]\n}\n```\n\nRead the [📖 documentation](https://vite-pwa-org.netlify.app/frameworks/sveltekit) for a complete guide on how to configure and use\nthis plugin.\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; 2022-PRESENT [Anthony Fu](https://github.com/antfu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvite-pwa%2Fsveltekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvite-pwa%2Fsveltekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvite-pwa%2Fsveltekit/lists"}