Skip to content

Brooooooklyn/winterjs

 
 

Repository files navigation

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... ❄️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 87.1%
  • Nix 9.1%
  • JavaScript 2.6%
  • Shell 1.2%