Skip to content

This is an experimental project to make it possible to write JavaScript guest applications that make use of SpiderLightning capabilities.

Notifications You must be signed in to change notification settings

danbugs/slightjs

Repository files navigation

slightjs

🔔: SlightJS has been merged upstream onto SpiderLightning/slight. For intructions on how to use it in slight, 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 through stdin.

To try it out yourself, you can do:

make keyvalue-all-in-one

Here's a video demo: youtube-thumbnail

The examples in this demo are run with slight v0.5.0.

Installation

UNIX

/bin/bash -c "$(curl -fsSL https://github.com/danbugs/slightjs/main/install.sh)"

Windows

iex ((New-Object System.Net.WebClient).DownloadString('https://github.com/danbugs/slightjs/main/install.ps1'))

Engine Download

UNIX

curl https://github.com/danbugs/slightjs/main/slightjs_engine.wasm --output slightjs_engine.wasm

Windows

curl https://github.com/danbugs/slightjs/main/slightjs_engine.wasm -O slightjs_engine.wasm

About

This is an experimental project to make it possible to write JavaScript guest applications that make use of SpiderLightning capabilities.

Topics

Resources

Stars

Watchers

Forks