extism-fsnotify
https://user-images.githubusercontent.com/7517515/188239556-029f5142-0cb8-4bfb-a5b2-e4bbe29e25c6.mp4
Use the filesystem as a computing environment.
make build-plugins # requires Rust toolchain
make run # requires Go toolchain
Demo: construct programmable directories on your filesystem.
The host program runs a recursive watcher, to build the initial structure, and all new directories
with files + .wasm are watched and computed.
For each file create operation, the .wasm is loaded and passed the file that triggered the event.
This program treats a directory, a written file, and a single .wasm module as the unit of computation.
Data types
- Host -> Plug-in
{
"event_file_name": "path/to/file.md",
"event_file_data": "<base64 encoded file>"
}
- Plug-in -> Host
{
"op": "create",
"output_file_name": "path/to/file.md",
"output_file_data": "<base64 encoded file>"
}