{"id":15862099,"url":"https://github.com/afeiship/next-offline-sw","last_synced_at":"2026-04-30T07:43:12.761Z","repository":{"id":57122772,"uuid":"186208077","full_name":"afeiship/next-offline-sw","owner":"afeiship","description":"Offline plugin for service worker runtime helper.","archived":false,"fork":false,"pushed_at":"2024-01-05T05:34:20.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T23:03:52.590Z","etag":null,"topics":["cache","next","offline","offline-plugin","prefetch","service-worker","sw"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2019-05-12T03:44:20.000Z","updated_at":"2024-02-06T15:28:57.000Z","dependencies_parsed_at":"2024-11-20T11:04:24.575Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-offline-sw","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"711dfe9c0fc3f8d366a3fdba075d1b77d2dd8a74"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-offline-sw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-offline-sw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-offline-sw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-offline-sw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-offline-sw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246680389,"owners_count":20816689,"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":["cache","next","offline","offline-plugin","prefetch","service-worker","sw"],"created_at":"2024-10-05T22:24:37.931Z","updated_at":"2026-04-30T07:43:07.717Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-offline-sw\n\u003e Offline plugin for service worker runtime helper.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-offline-sw\n```\n\n## apis\n| api         | params  | description                                                           |\n| ----------- | ------- | --------------------------------------------------------------------- |\n| disabled    |         | You can implement it in your project(default: window.__SW_DISABLED__) |\n| install     | options | Install with sevice worker                                            |\n| uninstall   | -       | Remove all sevice worker                                              |\n| update      | -       | ApplyUpdate \u0026 delay refresh                                           |\n| applyUpdate | -       | Apply new resource                                                    |\n| refresh     | -       | Global.reload                                                         |\n\n\n## usage\n```js\nimport NxOfflineSw from '@jswork/next-offline-sw';\n\n// code goes here:\nNxOfflineSw.install();\n```\n\n## resources\n- https://github.com/NekR/offline-plugin/blob/master/docs/updates.md\n- https://stackoverflow.com/questions/33704791/how-do-i-uninstall-a-service-worker\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-offline-sw/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-offline-sw\n[version-url]: https://npmjs.org/package/@jswork/next-offline-sw\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-offline-sw\n[license-url]: https://github.com/afeiship/next-offline-sw/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-offline-sw\n[size-url]: https://github.com/afeiship/next-offline-sw/blob/master/dist/next-offline-sw.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-offline-sw\n[download-url]: https://www.npmjs.com/package/@jswork/next-offline-sw\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-offline-sw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-offline-sw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-offline-sw/lists"}