{"id":22570539,"url":"https://github.com/truqu/purescript-workers","last_synced_at":"2026-01-06T18:37:34.180Z","repository":{"id":58224444,"uuid":"96550943","full_name":"truqu/purescript-workers","owner":"truqu","description":"An API wrapper around Web Workers (Dedicated, Shared and Service)","archived":false,"fork":false,"pushed_at":"2017-09-16T12:41:11.000Z","size":148,"stargazers_count":25,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-02T15:12:41.725Z","etag":null,"topics":["progressive-web-app","purescript","service-workers","web","web-worker","workers"],"latest_commit_sha":null,"homepage":null,"language":"PureScript","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/truqu.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}},"created_at":"2017-07-07T15:18:11.000Z","updated_at":"2023-03-14T10:32:57.000Z","dependencies_parsed_at":"2022-08-31T04:10:31.185Z","dependency_job_id":null,"html_url":"https://github.com/truqu/purescript-workers","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truqu%2Fpurescript-workers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truqu%2Fpurescript-workers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truqu%2Fpurescript-workers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truqu%2Fpurescript-workers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truqu","download_url":"https://codeload.github.com/truqu/purescript-workers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246042779,"owners_count":20714293,"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":["progressive-web-app","purescript","service-workers","web","web-worker","workers"],"created_at":"2024-12-08T01:09:34.149Z","updated_at":"2026-01-06T18:37:34.136Z","avatar_url":"https://github.com/truqu.png","language":"PureScript","readme":"PureScript Web Workers [![](https://img.shields.io/badge/doc-pursuit-60b5cc.svg)](http://pursuit.purescript.org/packages/purescript-workers) \n=====\n\nThis package offers bindings of the Web Workers (Dedicated, Shared \u0026 Service) APIs.\n\n\u003e **DISCLAIMER** This package is still highly experimental. Do not hesitate to fill in an issue\n\u003e if you encounter any trouble. Any feedback is welcome!\n\n## Overview \n\nTODO\n\n## How To: Run Examples\n\nThe [examples](https://github.com/truqu/purescript-workers/tree/master/examples) contains few\nexamples of the [Service Worker Cookbook](https://serviceworke.rs/) translated to PureScript.\nThis is still work-in-progress and still relies on the [sources provided by\nMozilla](https://github.com/truqu/purescript-workers/tree/master/examples) included as a\nsubmodule.\n\nTherefore,\n\n\u003e *commands are written as if you were running them from the root of the repository*\n\n1. Make sure the submodule is installed\n\n```\ngit submodule init\ngit submodule update\n```\n\n2. Install dependencies of the Service Worker Cookbook\n\n```\ncd examples/serviceworker-cookbook\nnpm i\n```\n\n3. Install dependencies of an example\n\n```\ncd examples/cache-and-update\nnpm i\n```\n\n4. Compile the example's PureScript sources\n\n```\ncd examples/cache-and-update\nnpm run build\n```\n\n5. Start the Service Worker Cookbook server \n\n```\ncd examples/serviceworker-cookbook\ngulp start-server\n```\n\n\u003e If the server doesn't start because you don't have any GCM API Key, you can simply remove all the `push-*` examples from there and try again.\n\n6. Visit your localhost on port 3003\n\n\n```\nfirefox http://localhost:3003/strategy-cache-and-update_demo.html\n```\n\n\n## Changelog\n\n### Roadmap\n\n- Re-write in PureScript examples from the [Service Worker Cookbook](https://github.com/mozilla/serviceworker-cookbook)\n\n- Write complete example \u0026 PoC of ServiceWorkers based on [Web Fundamentals - PWA Weather](https://github.com/ArturKlajnerok/pwa-weather)\n\n- Document undocumented functions and module\n\n### v2.1.0\n\n- Implement Fetch, Request \u0026 Response API\n\n- Basic example for service workers from mozilla/serviceworkers-cookbook\n\n### v2.0.0\n\n- Internal implementation rework\n\n- Supports for Service Workers\n\n- Supports for Cache \u0026 CacheStorage\n\n#### v1.0.0\n\n- Supports for the Dedicated Workers \n- Supports for the Shared Workers\n- Supports for the Application Cache\n\n## Documentation\n\nModule documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-workers).\n\nSome additionals links:\n\n- [Web Workers API specifications](https://w3c.github.io/workers)\n- [Service Workers API specifications](https://www.w3.org/TR/service-workers-1)\n- [Fetch specifications](https://fetch.spec.whatwg.org)\n- [Service Workers examples](https://serviceworke.rs/)\n- [W3C Platform Tests](https://github.com/w3c/web-platform-tests)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruqu%2Fpurescript-workers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruqu%2Fpurescript-workers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruqu%2Fpurescript-workers/lists"}