🔔: SlightJS has been merged upstream onto SpiderLightning/
slight
. For intructions on how to use it inslight
, please see this
This is an experimental project to make it possible to write JavaScript guest applications that make use of SpiderLightning capabilities.
It is comprised of:
- an
engine/
, which pre-initializes Wasm and injects slight dependencies into the JS context (i.e., w/quickjs-wasm-rs
), and - a
cli/
, which inits the pre-initialized Wasm w/ actual guest code by passing it to the engine throughstdin
.
To try it out yourself, you can do:
make keyvalue-all-in-one
The examples in this demo are run with slight v0.5.0.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/danbugs/slightjs/main/install.sh)"
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/danbugs/slightjs/main/install.ps1'))
curl https://raw.githubusercontent.com/danbugs/slightjs/main/slightjs_engine.wasm --output slightjs_engine.wasm
curl https://raw.githubusercontent.com/danbugs/slightjs/main/slightjs_engine.wasm -O slightjs_engine.wasm