Runtimes

WinterJS

Preset: winterjs

You can easily build Nitro powered applications to run with wasmerio/winterjs runtime.

WinterJS is a JavaScript Service Workers server written in Rust, that uses the SpiderMonkey runtime to execute JavaScript (the same runtime that Firefox uses) (announcement).

🌙 WinterJS is currently supported in nightly release channel. Read the docs for using Nightly Release Channel.
🚧 WinterJS runtime is unstable and under heavy development. Follow unjs/nitro#1861 for status and information.

In order to build for this runtime, use NITRO_PRESET="winterjs" environment variable:

NITRO_PRESET="winterjs" npm run build

Make sure you have wasmer installed locally (install wasmer)

Run locally:

wasmer run wasmer/winterjs --forward-host-env --net --mapdir app:.output app/server/index.mjs