{"id":15413218,"url":"https://github.com/tomwayson/esri-preact-pwa","last_synced_at":"2025-10-15T07:02:12.401Z","repository":{"id":148607075,"uuid":"89834637","full_name":"tomwayson/esri-preact-pwa","owner":"tomwayson","description":"An example progressive web app (PWA) using the ArcGIS API for JavaScript built with Preact","archived":false,"fork":false,"pushed_at":"2018-04-30T19:41:02.000Z","size":622,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T07:22:25.618Z","etag":null,"topics":["arcgis-api","javascript","preact","pwa"],"latest_commit_sha":null,"homepage":"https://esri-preact-pwa.surge.sh/","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/tomwayson.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":"2017-04-30T06:47:20.000Z","updated_at":"2023-12-26T07:43:35.000Z","dependencies_parsed_at":"2023-05-20T16:45:44.412Z","dependency_job_id":null,"html_url":"https://github.com/tomwayson/esri-preact-pwa","commit_stats":{"total_commits":84,"total_committers":5,"mean_commits":16.8,"dds":"0.23809523809523814","last_synced_commit":"c9946debf7636529fbf997605a018d5a13c0db24"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomwayson%2Fesri-preact-pwa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomwayson%2Fesri-preact-pwa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomwayson%2Fesri-preact-pwa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomwayson%2Fesri-preact-pwa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomwayson","download_url":"https://codeload.github.com/tomwayson/esri-preact-pwa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249685230,"owners_count":21310568,"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":["arcgis-api","javascript","preact","pwa"],"created_at":"2024-10-01T16:56:02.864Z","updated_at":"2025-10-15T07:02:07.360Z","avatar_url":"https://github.com/tomwayson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esri-preact-pwa\n\nAn example [progressive web app (PWA)](https://developers.google.com/web/progressive-web-apps/) using the [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/) built with [Preact](https://github.com/developit/preact).\n\n[View it live](https://esri-preact-pwa.surge.sh/map)\n\n![screen shot](https://user-images.githubusercontent.com/662944/36581131-5169c904-1820-11e8-8f8f-9b0720e8d384.png)\n\nThe non-map routes get a near perfect Lighthouse performance score, and even the map route scores in the mid 70s (out of 100), which is outright decent for a web mapping application.\n\n![performance audit results](https://user-images.githubusercontent.com/662944/36581663-ebf9d8c2-1822-11e8-9bd7-68f71d4be1dc.png)\n\nThis repository was cloned from  [preact-starter](https://github.com/lukeed/preact-starter) and uses [esri-loader](https://github.com/Esri/esri-loader/) to lazy load an ArcGIS web map. See those repositories for more detailed information.\n\n## Install\n\n\u003e :exclamation: **Pro Tip:** Use [Yarn](https://yarnpkg.com/) to install dependencies 3x faster than NPM!\n\n```sh\ngit clone https://github.com/tomwayson/esri-preact-pwa\ncd tomwayson/esri-preact-pwa\nnpm install\nnpm run build\nnpm start\n```\n\n## Features\n\n* Offline Caching (via `serviceWorker`)\n* SASS \u0026 Autoprefixer\n* Asset Versioning (aka \"cache-busting\")\n* ES2015 (ES6) and ES2016 (ES7) support\n* Hot Module Replacement (HMR) for all files\n* Preact's [Developer Tools](#preact-developer-tools)\n* [Lighthouse](https://github.com/GoogleChrome/lighthouse) certified\n\n  ![lightouse](src/static/img/lighthouse.jpg)\n\n## Development\n\n### Commands\n\nAny of the following commands can (and should :wink:) be run from the command line.\n\n\u003e If using [Yarn](https://yarnpkg.com/), all instances of `npm` can be replaced with `yarn`. :ok_hand:\n\n#### build\n\n```\n$ npm run build\n```\n\nCompiles all files. Output is sent to the `dist` directory.\n\n#### start\n\n```\n$ npm start\n```\n\nRuns your application (from the `dist` directory) in the browser.\n\n#### watch\n\n```\n$ npm run watch\n```\n\nLike [`start`](#start), but will auto-compile \u0026 auto-reload the server after any file changes within the `src` directory.\n\n### Preact Developer Tools\n\nYou can inspect and modify the state of your Preact UI components at runtime using the [React Developer Tools](https://github.com/facebook/react-devtools) browser extension.\n\n1. Install the [React Developer Tools](https://github.com/facebook/react-devtools) extension\n2. [Import the `preact/devtools`](src/index.js#L23) module in your app\n3. Reload and go to the 'React' tab in the browser's development tools\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwayson%2Fesri-preact-pwa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomwayson%2Fesri-preact-pwa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwayson%2Fesri-preact-pwa/lists"}