@skipruntime/native
v0.0.19
Published
This package provides a Node native add-on with bindings to the Skip runtime. _Either_ this package or its WebAssembly analogue [`@skipruntime/wasm`](https://www.npmjs.com/package/@skipruntime/wasm) is required to run a Skip reactive service.
Keywords
Readme
@skipruntime/native
This package provides a Node native add-on with bindings to the Skip runtime.
Either this package or its WebAssembly analogue
@skipruntime/wasm is
required to run a Skip reactive service.
See the docs for more details.
Installation
Installing the native add-on version of the Skip runtime is done in two steps:
- Install the
libskipruntimenative library; and then - Install the
@skipruntime/nativenpm package. The versions of the two must match.
Installation can be performed by executing:
# calculate the version of the skipruntime
VERSION=$(npm install --dry-run @skipruntime/native | grep native | cut -d' ' -f3) \
# install the skipruntime binary release
&& wget --quiet --output-document=- \
https://raw.githubusercontent.com/skiplabs/skip/refs/tags/v${VERSION}/bin/install_runtime.sh \
| bash - \
# install the skipruntime native node addon package
&& npm install @skipruntime/nativeThis command uses npm install --dry-run to determine the version of the runtime to install, but any mechanism that ensures the versions match will suffice.
If the versions of the npm package and binary runtime do not match, npm install @skipruntime/native will fail with an error such as:
npm error /usr/bin/ld: cannot find -lskipruntime-1.0.0: No such file or directoryIt may be helpful to consult the small Dockerfile that installs the native node addon and runs a trivial Skip service.
Note that, if this package is installed alongside the @skiplabs/skip meta-package, you will pull in both this native add-on and the WebAssembly runtime; if a minimal installation is required, then specify exactly the component packages that you need and avoid @skiplabs/skip.
Support
Join the Discord to talk to other community members and developers or ask any questions.
