{"id":18822807,"url":"https://github.com/a2nt/silverstripe-progressivewebapp","last_synced_at":"2025-04-14T01:22:03.512Z","repository":{"id":56938879,"uuid":"252262922","full_name":"a2nt/silverstripe-progressivewebapp","owner":"a2nt","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-12T01:37:54.000Z","size":496,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T15:21:22.522Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a2nt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2020-04-01T19:03:24.000Z","updated_at":"2022-05-22T16:53:53.000Z","dependencies_parsed_at":"2024-11-08T00:51:56.897Z","dependency_job_id":"2907c120-937e-4f7c-81c5-a5898907fd06","html_url":"https://github.com/a2nt/silverstripe-progressivewebapp","commit_stats":{"total_commits":45,"total_committers":3,"mean_commits":15.0,"dds":0.5333333333333333,"last_synced_commit":"d787b36857b9b1ed949312cdf456bb98630f700a"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fsilverstripe-progressivewebapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fsilverstripe-progressivewebapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fsilverstripe-progressivewebapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fsilverstripe-progressivewebapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a2nt","download_url":"https://codeload.github.com/a2nt/silverstripe-progressivewebapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248270154,"owners_count":21075790,"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":[],"created_at":"2024-11-08T00:51:39.018Z","updated_at":"2025-04-14T01:22:03.486Z","avatar_url":"https://github.com/a2nt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SilverStripe Progressive Web App\n\nTools to add progressive web app functionality to your silverstripe website\nAnd make it available offline\n\n## Installation\n```\ncomposer require a2nt/silverstripe-progressivewebapp\n```\n\n## Usage\n- Install the module, run dev/build and fill in the settings in the siteconfig\n- Add js to register the service worker (example can be found at client/src/app.js)\n```\nif ('serviceWorker' in navigator) {\n  var baseHref = (document.getElementsByTagName('base')[0] || {}).href;\n  var version = (document.querySelector('meta[name=\"swversion\"]') || {})\n    .content;\n  if (baseHref) {\n    navigator.serviceWorker\n      .register(baseHref + 'sw.js?v=' + version)\n      .then(() =\u003e {\n        console.log('SW: Registered');\n      });\n  }\n}\n```\n- Add the following tags to the head of your website\n```\n\u003cmeta name=\"theme-color\" content=\"#000000\" /\u003e\n\u003clink rel=\"manifest\" href=\"{$BaseHref}manifest.json\" /\u003e\n\u003cmeta name=\"swversion\" content=\"{$SWVersion}\" /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2nt%2Fsilverstripe-progressivewebapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa2nt%2Fsilverstripe-progressivewebapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2nt%2Fsilverstripe-progressivewebapp/lists"}