{"id":21895299,"url":"https://github.com/persianturtle/offline-first-example","last_synced_at":"2025-04-15T16:43:43.880Z","repository":{"id":114586527,"uuid":"82697329","full_name":"persianturtle/offline-first-example","owner":"persianturtle","description":"Basic offline first example intended for use on a static web app on iOS that includes HTML5 video.","archived":false,"fork":false,"pushed_at":"2017-02-23T13:48:18.000Z","size":862,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T22:35:27.303Z","etag":null,"topics":["application-cache","babel","fetch","indexeddb","offline-first","service-worker","webpack"],"latest_commit_sha":null,"homepage":"https://persianturtle.github.io/offline-first-example/dist","language":"HTML","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/persianturtle.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-02-21T15:44:26.000Z","updated_at":"2023-06-10T16:07:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"88364ba6-c819-4485-9398-e4d137e3a751","html_url":"https://github.com/persianturtle/offline-first-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persianturtle%2Foffline-first-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persianturtle%2Foffline-first-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persianturtle%2Foffline-first-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persianturtle%2Foffline-first-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/persianturtle","download_url":"https://codeload.github.com/persianturtle/offline-first-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249110738,"owners_count":21214389,"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":["application-cache","babel","fetch","indexeddb","offline-first","service-worker","webpack"],"created_at":"2024-11-28T13:34:01.087Z","updated_at":"2025-04-15T16:43:43.874Z","avatar_url":"https://github.com/persianturtle.png","language":"HTML","readme":"# offline-first-example\nBasic offline first example intended for use on a static web app on iOS that includes HTML5 video.\n\n[Demo](https://persianturtle.github.io/offline-first-example/dist): After first page load, try refreshing the page without a network connection on any device including iPhone/iPad/iOS Safari/Chrome.\n\nThis example uses `Webpack` \u0026 `Webpack Offline Plugin` which uses `Service Worker` and `Application Cache` as a fallback.\n\nThe video is loaded via the (polyfilled) `Fetch API` as an [Array Buffer](https://developer.mozilla.org/en-US/docs/Web/API/Body/arrayBuffer) because storing blobs in IndexedDB is not supported in iOS. Since we can't assign video sources to Array Buffers, [we first convert it to blob.](http://stackoverflow.com/questions/40393488/mobile-safari-10-indexeddb-blobs/40625816#40625816)\n\nThis is intended to be a bare bones example. For more a (much) more advanced offline first example, take a look at [Pokedex.org](http://www.pocketjavascript.com/blog/2015/11/23/introducing-pokedex-org).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpersianturtle%2Foffline-first-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpersianturtle%2Foffline-first-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpersianturtle%2Foffline-first-example/lists"}