{"id":21026446,"url":"https://github.com/nimblehq/service-workers-rails","last_synced_at":"2026-05-06T19:32:51.371Z","repository":{"id":145309832,"uuid":"83651161","full_name":"nimblehq/service-workers-rails","owner":"nimblehq","description":"A sample project using Service Workers in a Rails Project","archived":false,"fork":false,"pushed_at":"2017-03-03T09:26:11.000Z","size":608,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T16:09:25.748Z","etag":null,"topics":["rails","ruby","service-worker"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nimblehq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-03-02T08:01:43.000Z","updated_at":"2018-07-04T10:36:14.000Z","dependencies_parsed_at":"2024-04-19T08:00:39.137Z","dependency_job_id":null,"html_url":"https://github.com/nimblehq/service-workers-rails","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nimblehq/service-workers-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimblehq%2Fservice-workers-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimblehq%2Fservice-workers-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimblehq%2Fservice-workers-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimblehq%2Fservice-workers-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nimblehq","download_url":"https://codeload.github.com/nimblehq/service-workers-rails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimblehq%2Fservice-workers-rails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283929670,"owners_count":26918166,"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","status":"online","status_checked_at":"2025-11-11T02:00:06.610Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["rails","ruby","service-worker"],"created_at":"2024-11-19T11:44:39.932Z","updated_at":"2025-11-11T20:43:34.758Z","avatar_url":"https://github.com/nimblehq.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\nThis is a sample Progressive Web App(PWA) project built on Rails.\n\n## Setup\n\n* Disable the `debug` mode for assets in development. This is allow \nconcatenation of assets in development and so `service workers` \ncould be configured to cache the built asset files. For the purpose\nof this project, `application.js` and `application.css` are cached.\n\n* Register the `service worker`. It can be done using\n\n```\nnavigator.serviceWorker.register('/serviceWorker.js')\n```\n\nWe keep the initialiser with other `.js` files.\n\n* Prepare the `service worker`. The path for the worker should match the one provided to the `serviceWorker.register` method.\nService Workers should be publicly accessible. It can be placed inside the `assets` folder and then precompiled as a separate\nfile with `finger-print` disabled or simply placed under the `public` folder.\n\nFor the purpose of this project, we place it inside `public/`.\n\n* We use the event handlers for service workers as defined \n[here](https://developers.google.com/web/fundamentals/getting-started/codelabs/your-first-pwapp/).\n\n    Basically, the service workers have a list of relative paths to cache. Any network request to those path would be \ncached. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimblehq%2Fservice-workers-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnimblehq%2Fservice-workers-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimblehq%2Fservice-workers-rails/lists"}