[Feature/Draft] Add Slipstream Plugin Support#4175
Draft
dgrkotsonis wants to merge 3 commits intostagingfrom
Draft
[Feature/Draft] Add Slipstream Plugin Support#4175dgrkotsonis wants to merge 3 commits intostagingfrom
dgrkotsonis wants to merge 3 commits intostagingfrom
Conversation
dgrkotsonis
commented
Mar 17, 2026
| let cors = CorsLayer::new() | ||
| .allow_origin(Any) | ||
| .allow_methods([Method::GET, Method::POST, Method::OPTIONS]) | ||
| .allow_methods([Method::GET, Method::POST, Method::PUT, Method::DELETE, Method::OPTIONS]) |
Collaborator
Author
There was a problem hiding this comment.
Would we prefer to keep these methods as-is? I can rework the routes if so
dgrkotsonis
commented
Mar 18, 2026
| @@ -0,0 +1,198 @@ | |||
| # Slipstream Plugins | |||
Collaborator
Author
There was a problem hiding this comment.
Is there a better place to put this file rather than creating this new docs dir? (Unlike snarkVM there isn't a specific plugins crate to put this in)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wires the Slipstream plugin system (implemented currently on a feature branch in snarkVM) into snarkOS so that node operators can load one or more streaming plugins at startup and manage
them at runtime via authenticated REST endpoints. Validator and Client nodes both support plugins; Prover nodes do not (they do not finalize blocks).
This PR tracks snarkVM's stream_plugin_testing branch and adds the corresponding plumbing in snarkOS on a new add_slipstream_plugin_support branch. (TODO: Update once snarkVM changes merged in)
Changes
Cargo / feature wiring
corresponding snarkvm features.
CLI
Node layer
into FinalizeStore, and the service is stored in an Arc<Mutex<Option<...>>> field. shut_down() takes and joins the service to trigger clean on_unload calls on all plugins.
REST API
Error mapping: PluginNotLoaded → 404, PluginAlreadyLoaded → 422, all others → 500.
Tests / docs
Usage
Build with plugin support
cargo build --features history -p snarkos
Start a client node with two plugins
snarkos start --client \
--slipstream-config ~/.aleo/plugins/postgres/plugin.json5 \
--slipstream-config ~/.aleo/plugins/metrics/plugin.json5
List loaded plugins
curl -H "Authorization: Bearer $JWT" \
http://localhost:3030/mainnet/slipstream/plugins
Load a plugin at runtime
curl -X POST -H "Authorization: Bearer $JWT" \
-H "Content-Type: application/json" \
-d '{"config_file":"/path/to/plugin.json5"}' \
http://localhost:3030/mainnet/slipstream/plugins
Notes