All Projects → truqu → purescript-workers

truqu / purescript-workers

Licence: MIT License
An API wrapper around Web Workers (Dedicated, Shared and Service)

Programming Languages

purescript
368 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to purescript-workers

Worker Plugin
👩‍🏭 Adds native Web Worker bundling support to Webpack.
Stars: ✭ 1,840 (+7566.67%)
Mutual labels:  workers, web-worker
Webworkify Webpack
launch a web worker at runtime that can require() in the browser with webpack
Stars: ✭ 105 (+337.5%)
Mutual labels:  workers, web-worker
Via.js
Write JS code that runs in a different context. E.g. use the DOM in a Web Worker.
Stars: ✭ 412 (+1616.67%)
Mutual labels:  workers, web-worker
Sw Precache Webpack Plugin
Webpack plugin that generates a service worker using sw-precache that will cache webpack's bundles' emitted assets. You can optionally pass sw-precache configuration options to webpack through this plugin.
Stars: ✭ 1,444 (+5916.67%)
Mutual labels:  progressive-web-app, service-workers
Offline Plugin
Offline plugin (ServiceWorker, AppCache) for webpack (https://webpack.js.org/)
Stars: ✭ 4,444 (+18416.67%)
Mutual labels:  progressive-web-app, service-workers
Preact Worker Demo
Demo of preact rendering an entire app in a Web Worker.
Stars: ✭ 204 (+750%)
Mutual labels:  workers, web-worker
React Native Threads
Create new JS processes for CPU intensive work
Stars: ✭ 527 (+2095.83%)
Mutual labels:  workers, web-worker
Sw Toolbox
A collection of tools for service workers
Stars: ✭ 3,649 (+15104.17%)
Mutual labels:  progressive-web-app, service-workers
Sw Precache
Service Worker Precache is a module for generating a service worker that precaches resources. It integrates with your build process. Once configured, it detects all your static resources (HTML, JavaScript, CSS, images, etc.) and generates a hash of each file's contents. Information about each file's URL and versioned hash are stored in the generated service worker file, along with logic to serve those files cache-first, and automatically keep those files up to date when changes are detected in subsequent builds.
Stars: ✭ 5,276 (+21883.33%)
Mutual labels:  progressive-web-app, service-workers
Workbox
📦 Workbox: JavaScript libraries for Progressive Web Apps
Stars: ✭ 10,434 (+43375%)
Mutual labels:  progressive-web-app, service-workers
create-next-pwa
⚡️ Set up Next.js Progressive Web App with `npx create-next-pwa`
Stars: ✭ 59 (+145.83%)
Mutual labels:  progressive-web-app
go-worker-thread-pool
A visual working example of a Thread Pool pattern, based on a known blog article.
Stars: ✭ 24 (+0%)
Mutual labels:  workers
entropass
Maximum-security password manager
Stars: ✭ 21 (-12.5%)
Mutual labels:  progressive-web-app
workbox-microsite
Workbox Microsite
Stars: ✭ 24 (+0%)
Mutual labels:  workers
gatsby-pwa-demo
PWA Example: Progressive Web App E-Commerce with Gatsby.js
Stars: ✭ 68 (+183.33%)
Mutual labels:  progressive-web-app
laravel-docker-base
Already-compiled PHP-based Images to use when deploying your Laravel application to Kubernetes using Laravel Helm charts.
Stars: ✭ 15 (-37.5%)
Mutual labels:  workers
natural
Fastest Framework for NodeJS. Written in pure ES6+
Stars: ✭ 30 (+25%)
Mutual labels:  workers
TimeTableManager
Simple react application to create a TimeTable based only on your choice of subjects.
Stars: ✭ 30 (+25%)
Mutual labels:  progressive-web-app
zmq
ZeroMQ based distributed patterns
Stars: ✭ 27 (+12.5%)
Mutual labels:  workers
fritz
Take your UI off the main thread
Stars: ✭ 39 (+62.5%)
Mutual labels:  workers

PureScript Web Workers

This package offers bindings of the Web Workers (Dedicated, Shared & Service) APIs.

DISCLAIMER This package is still highly experimental. Do not hesitate to fill in an issue if you encounter any trouble. Any feedback is welcome!

Overview

TODO

How To: Run Examples

The examples contains few examples of the Service Worker Cookbook translated to PureScript. This is still work-in-progress and still relies on the sources provided by Mozilla included as a submodule.

Therefore,

commands are written as if you were running them from the root of the repository

  1. Make sure the submodule is installed
git submodule init
git submodule update
  1. Install dependencies of the Service Worker Cookbook
cd examples/serviceworker-cookbook
npm i
  1. Install dependencies of an example
cd examples/cache-and-update
npm i
  1. Compile the example's PureScript sources
cd examples/cache-and-update
npm run build
  1. Start the Service Worker Cookbook server
cd examples/serviceworker-cookbook
gulp start-server

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.

  1. Visit your localhost on port 3003
firefox http://localhost:3003/strategy-cache-and-update_demo.html

Changelog

Roadmap

v2.1.0

  • Implement Fetch, Request & Response API

  • Basic example for service workers from mozilla/serviceworkers-cookbook

v2.0.0

  • Internal implementation rework

  • Supports for Service Workers

  • Supports for Cache & CacheStorage

v1.0.0

  • Supports for the Dedicated Workers
  • Supports for the Shared Workers
  • Supports for the Application Cache

Documentation

Module documentation is published on Pursuit.

Some additionals links:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].