Haroenv / winterjs

Winter is coming... ❄️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WinterJS

The JavaScript server that runs Service Workers according to the Winter Community Group specification.

Note: WinterJS is not officially endorsed by WinterCG, despite sharing "Winter" in their name. There are many runtimes supporting WinterCG, WinterJS being one among those

Running WinterJS with Wasmer

The WinterJS server is published in Wasmer as wasmer/winterjs.

You can run the HTTP server locally with:

wasmer run wasmer/winterjs --net --mapdir=tests:tests tests/simple.js

Where simple.js is:

addEventListener('fetch', (req) => {
  return "hello";
});

Running WinterJS Natively

You can run WinterJS natively by simply doing

cargo run -- tests/simple.js

And then access the server in https://localhost:8080/

How WasmerJS works

Wasmer Winter is powered by SpiderMonkey and Axum to bring a new level of awesomeness to your Javascript apps.

To compile the app to WebAssembly WinterJS is using the WASIX standard.

About

Winter is coming... ❄️


Languages

Language:Rust 87.2%Language:Nix 9.1%Language:JavaScript 2.6%Language:Shell 1.1%