Skip to content

cybernetics/winterjs

This branch is 233 commits behind wasmerio/winterjs:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5bfaab4 · Oct 28, 2023
Sep 11, 2023
Sep 23, 2023
Oct 18, 2023
Sep 23, 2023
Sep 23, 2023
Oct 26, 2023
Oct 17, 2023
Sep 23, 2023
Oct 21, 2023
Oct 26, 2023
Oct 26, 2023
Sep 19, 2023
Oct 28, 2023
Oct 21, 2023
Sep 21, 2023
Sep 21, 2023
Feb 21, 2023
Oct 26, 2023

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

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

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