The Taskless Core plugin powers the Open Source Taskless Loader and is the default pack most users use when starting with Taskless.
Packs are WebAssembly binaries that expose one or more "hooks" to the host system. In the case of Taskless, these WebAssembly hooks must expose a pre
and post
method which operate on strings containing JSON.
Taskless Packs are built as Extism plugins. This one is (currently) TypeScript based, and requires the Extism PDK to build.
- Follow the
js-pdk
instructions to install Extism's builder for JavaScript and TypeScript projects (link) - Run
pnpm install
to install the development dependnecies - Run
pnpm build
to build the plugin
In the dist
folder, you'll see the final JavaScript, along with a plugin.wasm
file (the WebAssembly binary) and a manifest.json
file that describes the plugin.
This library uses @taskless/packcheck to test the WebAssembly binary. To run the tests, run pnpm test
.